agent-relay-protocol / templates
AGENTS.md0 starsChanged 7 days agoMITView on GitHub
Source of truth for coding agents. Read on every turn: keep it under ~150 lines. If a linter can enforce it, it does not go here. {{CMD_CHECK}} is the only source of truth: format + lint + types + tests. If it fails, the work is not finished. The same commands live in .arp/config.toml. {{ARP_BLOCK}}
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
If it fails, the work is not finished.
- Very specific: line 60
verify commands: see .arp/config.toml ([verify])
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
{{PROJECT_NAME}}
Source of truth for coding agents. Read on every turn: keep it under ~150 lines. If a linter can enforce it, it does not go here.
1. What it is
{{PURPOSE}}
<!-- 2-3 lines: what problem it solves and for whom. No marketing. -->2. Stack
- Language: {{LANGUAGE}}
- Framework: {{FRAMEWORK}}
- Package manager: {{PACKAGE_MANAGER}}
- Data / services: {{SERVICES}}
<!-- The package manager matters: pnpm and npm are not interchangeable. -->3. Commands
| To | Command |
| Install dependencies | {{CMD_INSTALL}} |
| Run in development | {{CMD_DEV}} |
| Verify (mandatory) | {{CMD_CHECK}} |
| One single test | {{CMD_TEST_ONE}} |
{{CMD_CHECK}} is the only source of truth: format + lint + types + tests.
If it fails, the work is not finished. The same commands live in .arp/config.toml.
4. Structure
{{STRUCTURE}}<!-- Only the directories that matter and what goes in each. 5-8 lines. -->5. Conventions
{{CONVENTIONS}}
<!-- ONLY what no linter can enforce: naming, error handling, how a test is
structured. If the formatter fixes it by itself, it does not go here. -->6. Business rules
{{BUSINESS_RULES}}
<!-- Domain constraints the code does not explain by itself.
E.g. "amounts are Decimal, never float: the tax authority requires exactly 2 decimals". -->7. Do not touch
{{DO_NOT_TOUCH}}
<!-- Generated files, applied migrations, infrastructure configs. -->Working charter
{{CHARTER}}
<!-- How this project works, set before any feature:
- verify commands: see `.arp/config.toml` ([verify])
- main user flows: see `.arp/flows.toml`
- rules that compute or decide something, each one gets TDD (test first, seen failing):
- <rule> — <where it lives>
-->{{ARP_BLOCK}}
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

