Skip to content

Add AGENTS.md with contribution guidance for coding agents - #550

Open
Iamrodos wants to merge 1 commit into
josegonzalez:masterfrom
Iamrodos:add-agents-md
Open

Iamrodos wants to merge 1 commit into
josegonzalez:masterfrom
Iamrodos:add-agents-md

Conversation

@Iamrodos

Copy link
Copy Markdown
Contributor

More pull requests here are now written with coding agents, and that is only going to grow. This adds an AGENTS.md to set those contributions up for success and make them easier to review. It doesn't introduce new rules; it writes down what has already been happening in review.

The guidance is based on review feedback across the roughly 50 pull requests from the last year, especially @josegonzalez's comments. For example, "simple to read/understand, follows patterns in the codebase, doesn't break existing functionality" (#474), splitting large pull requests (#500), and preferring the standard library (#533). The rest comes from recurring review points: keeping the format of existing backups unchanged, skipping rather than saving wrong data, failing early in parse_args, and tests sized to the change. Two items came from looking at the AGENTS.md files of comparable projects: write for readers who weren't in the agent's session, and check for an open pull request before starting a competing one.

AGENTS.md is read natively by Codex, Cursor and GitHub Copilot, and by Claude Code when there is no CLAUDE.md, so a single file covers the common tools.

Also in this PR:

  • The Development section of README.rst points to AGENTS.md.
  • The flake8 command in the README Testing section now matches CI (--ignore=E501,E203,W503).

Document the conventions that reviews of past pull requests have settled
on, so agent-written contributions follow them and are easier to review.
Point to it from the README, and match the README flake8 command to CI.
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