Skip to content

AGENTS.md: add guidance for AI agents and contributors#88

Open
dscho wants to merge 1 commit intomainfrom
add-an-AGENTS.md-file
Open

AGENTS.md: add guidance for AI agents and contributors#88
dscho wants to merge 1 commit intomainfrom
add-an-AGENTS.md-file

Conversation

@dscho
Copy link
Member

@dscho dscho commented Feb 25, 2026

AI-assisted contributions are a reality of open source in 2025 and beyond. Contributors will use AI tools — and that includes the maintainers themselves. The risk is not AI usage per se, but low-quality AI slop: contributions where the human hits "accept" without sufficient context being available to the model, resulting in changes that miss conventions, break patterns, or misunderstand the project's architecture and relationships.

This AGENTS.md is designed to raise the floor on AI-assisted contributions by providing enough context that even when a human contributor fails to steer carefully, the model has the information it needs to produce something reasonable. It documents the repository structure, build process, content conventions, commit message expectations, the relationship with sister sites (git-scm.com, gitgitgadget.github.io), the version update automation, URL stability requirements, and other details that an AI agent could not infer from a narrow code sample alone.

This file documents the repository's structure, build process, and
conventions to help AI agents work effectively with this codebase. It
covers the Hugo-based site architecture, the custom output formats for
download URLs and version files, the CSS/JS setup, content conventions,
and the CI/CD workflows.

Importantly, it describes the relationship between this site and its
sister sites git-scm.com and gitgitgadget.github.io: the git-scm.com
Hugo conversion (PR #1804, Oct 2023–Sep 2024) was the pioneering effort,
gitgitgadget.github.io followed in March 2025 (PR #23) inspired by that
work and explicitly as a blueprint for this site, and this site's own
conversion landed days later (PR #56). A major motivation was retiring
the GitHub wiki that had become a spam magnet, moving content into this
repository so that contributions go through pull requests with proper
review. Cross-pollination between the three sites is ongoing and
encouraged; for example the Pagefind-based search and Playwright UI
tests on git-scm.com are likely models for future functionality here.

The file also documents URL stability expectations (always add aliases
when renaming pages), the version update mechanism (bump-version.js
invoked by the release automation, not by humans), the redirect template
that preserves query strings and anchors, and commit message conventions
including that the Assisted-by trailer must name the AI model, not the
product.

Assisted-by: Claude Opus 4.6
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho requested review from mjcheetham and rimrul February 25, 2026 12:10
@dscho
Copy link
Member Author

dscho commented Feb 25, 2026

Note that the contents of this PR assume that #87 has been merged already.

@dscho
Copy link
Member Author

dscho commented Feb 25, 2026

For context, I should clarify that I used early iterations of this AGENTS.md file to produce both #86 and #87.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant