Skip to content

Add AGENTS.md and update the docs - #1550

Open
LunarCapsule127 wants to merge 4 commits into
cellml:mainfrom
LunarCapsule127:agents-md
Open

LunarCapsule127 wants to merge 4 commits into
cellml:mainfrom
LunarCapsule127:agents-md

Conversation

@LunarCapsule127

@LunarCapsule127 LunarCapsule127 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Addresses issue #1519.

As discussed on the issue, this adds an AGENTS.md at the root of the repository: a plain Markdown file that AI coding tools read before they start work, and that people can read just as easily.

For anything the documentation already covers, AGENTS.md points to the right file in docs/. Following Hugh's review, the rules that are followed in practice but weren't written down yet now go straight into the docs: the pull request rules into docs/contributing.rst, which also moves from develop and Buildbot to main and GitHub Actions, the code rules into docs/coding_standards.rst, and the test rules and how to run each CI check locally into docs/testing.rst, which replaces the Buildbot instructions and fills in its TODOs. Every command and target comes from the CMake files and .github/workflows/ci.yml.

The last section, "A local environment", is new rather than an existing rule: the project has no guidance yet on virtual environments or containers, and it's what I needed when testing #1516 in Docker. It may fit better in the contributing guide, so please keep, move or drop it as you see fit. Please change anything else you'd like worded differently too. It's meant as a first version for you and @agarny to shape. 🙂

@hsorby

hsorby commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

I think the code and pull requests sections need to be changes directly into those documents.
We shouldn't need those sections in the AGENTS document.

@LunarCapsule127 LunarCapsule127 changed the title Add AGENTS.md with the project's current working rules Add AGENTS.md and update the contributing and coding standards docs Dec 2, 2026
@LunarCapsule127

Copy link
Copy Markdown
Contributor Author

Thanks Hugh @hsorby , that makes sense. Done in 0796d18: the pull request rules are now in docs/contributing.rst (which also moves from develop and Buildbot to main and GitHub Actions), and the code rules are in docs/coding_standards.rst. AGENTS.md just points to them now, and I've updated the title and description to match. The Tests section has the same kind of rules. Would you like me to move those into docs/testing.rst as well? That page still describes Buildbot, so I could bring it up to date at the same time, here or in a separate PR.

@hsorby

hsorby commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Yes please move the testing into the testing docs as well. This PR is fine for updating that document.

@hsorby hsorby changed the title Add AGENTS.md and update the contributing and coding standards docs Add AGENTS.md and update the docs Dec 2, 2026
@LunarCapsule127

Copy link
Copy Markdown
Contributor Author

@hsorby Thank you and no worries at all! I've moved the test rules into docs/testing.rst in 955a255, together with how to run each CI check locally. That replaces the Buildbot instructions and fills in the TODOs there. In place of Buildbot, it now explains how to run the CI workflow by hand on your own fork. AGENTS.md now keeps only the pointers to the docs, the project layout and the notes on a local environment.

Are there any other changes you'd like? For example, docs/review_process.rst still asks reviewers to check Buildbot, and a few pages still have TODOs (the labels in contributing.rst, setup.rst, versions.rst and coverage_statistics.rst). I'm happy to update any of them here or in a separate PR, whichever you prefer.

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.

2 participants