The rules in AGENTS.md
AGENTS.md at the repo root binds every agent and every person who changes this repo. Read it in full before you start. This page says what each section is for. It does not repeat the rules, and where this page and AGENTS.md differ, AGENTS.md is right.
What we’re building
Section titled “What we’re building”This section lists what a change may not trade away. People keep using their own coding agents, and those sessions land in the shared record. Each person’s cloud agents share one computer, each in a seat with a desktop and a browser. Pipelines are versioned code that changes only with a person’s approval. Agents check their own work, and nothing lands unverified. A change that takes away something agents or people can do is a regression. Say so in the change’s first line and in your report, and leave the call to the repo’s owner.
How every session starts
Section titled “How every session starts”This section says that engineering work runs on the playbook plugin, and how to start a session inside it. How a session loads the playbooks explains the reason.
Read first
Section titled “Read first”This section names the files to read before you change anything. They are the coding standards in .claude/skills/coding-standards/SKILL.md, the document that says what each part does, and the data-model document. Reviewers judge every change by the standards’ “Types are the spec”, “No shortcuts” and “Structure” sections, and each finding names the rule it breaks.
The product is Agents, and the teammates it runs are agents. Never name the app Agents studied, a project, a company or a person it learned from. node test/names.ts enforces this and runs first in npm run check. Tools Agents installs and runs may be named.
The live system is off limits
Section titled “The live system is off limits”Checks and proofs use the test database and their own ports. This section lists what you may not touch, such as the live services, the live database, the network settings, containers you did not make, the real forge, and secret values.
Changing the schema
Section titled “Changing the schema”Describe the change in the data-model document first, then add a new migration with the next number. Never edit a migration that exists.
Working beside other agents
Section titled “Working beside other agents”This section lists the agents-git commands and what each one does. Start work in a copy, Run the checks and Send a change through the loop cover them. It also lists the hooks that run by themselves, and a short list of things no tool holds, such as taking a lock by hand or building the live box image.
The coding framework
Section titled “The coding framework”This section describes how Agents runs a coding agent’s change to any repo with a policy. It has a table of the hard gates, a list of protected paths, the review and verdict rules, and the sandbox. What every pull request passes and Run a change through a repo policy cover the same ground from the outside.
Before you say done
Section titled “Before you say done”This section is a checklist.
- Typecheck, lint and the name guard pass, with no rule switched off.
- The checks for what you changed pass.
- Every check you added or changed was seen failing, then restored and seen passing.
- Anything that touches the running system has been tried on it, by the repo’s owner or with their go-ahead.
- Docs say only what was proven, and name what is not done.
- Your feature is in the feature map, and you proved it once end to end with
bin/agentsctl. - Every action a person can take in your feature has an agent tool, a command in the
agentsCLI, a feature-map entry and docs.
How changes land
Section titled “How changes land”main changes only through a pull request. Send a change through the loop and What every pull request passes cover the steps.
Writing and UI design
Section titled “Writing and UI design”These two sections hold the prose rules for docs, comments, commit messages, pull requests and UI text, and the design rules for the app. node test/style.ts fails on most of them.
- No em dash. A colon introduces a list or an example and never joins two halves of a sentence.
- Sentence case headings, no decorative emoji, and none of the banned words.
- No accent color on a border, outline, ring or stroke in any state. Show selection with a brighter neutral surface, heavier type or a checkmark.
- No tinted fill with a border of the same color, no color per item, and no gradient between two accents.
When you finish, report
Section titled “When you finish, report”End with a report that names what you built and every file you changed, each check you added or changed and how you saw it fail, what you decided and why, what the repo’s owner must decide, and what is not done or not enforced.