AGENTS.md

Written for version 0.1.14. Part of Rules for working, which lists the sources.

What it is. The rules for working in the repository, for everyone: the people on the project and any AI agents working for them. It covers conventions, data handling and checks. It opens by dividing the documentation into four places, each covering its own topic without repeating the others:

Where Covers
analysis-plan.md What the analysis is meant to do
ARCHITECTURE.md How the code is built: scripts, data flow, and the objects passed between them
AGENTS.md How to work in the repository: rules, conventions and checks
GitHub Issues Open scientific decisions (decision issues), gaps between code and plan, and known defects

Where it lives. At the top of the repository. The project website shows it on a page that only includes the root file, so you edit the root file, never the page.

What’s in it. The plugin’s template has these sections. Parts in angle brackets are filled in for each project.

Who edits it. Anyone, through a pull request. Widening what agents may do with a restricted source is a person’s change, made as described above.

What the assistant does with it. It reads AGENTS.md, the plan and ARCHITECTURE.md before making changes. During setup it adapts the template to the project. It fills the data sources table from the code that actually loads the data, not from memory, and asks about any source whose package or access terms are unclear. It asks who the deciders are, and if materials such as an IRB protocol name investigators, suggests them for the person to confirm. If no one is named yet, the line stays marked as still to fill, and decision issues can be drafted but not settled.