project-brain / templates
AGENTS.md174 starsChanged 5 months agoMITView on GitHub
This file follows the AGENTS.md convention — a project-level guide for AI coding agents (Codex CLI, Aider, Continue, etc.) that respect this convention. Decide single- or multi-workstream (look at file naming under brain/): - Only STATUS.md / HANDOFF.md → single-workstream branch - Multiple STATUS_<workstream>.md → multi-workstream branch (v2.1) Read these in order: 1. brain/MAP.md — project map 2. brain/STATUS.md — current state 3. brain/HANDOFF.md if exists — previous session's still-warm thoughts Brief report: project recognized + current progress + last…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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.
In this repository3 other files it gives its agents.
- templates/CLAUDE.mdCLAUDE.md
- templates-zh/CLAUDE.mdCLAUDE.md
- project-brainSkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Only STATUS.md / HANDOFF.md → single-workstream branch
- Distinctive: line 14
Read these in order:
- Very specific: line 25
Read the corresponding STATUS_<workstream>.md + HANDOFF_<workstream>.md after the user answers.
- Very specific: line 29
Don't silently modify any file in brain/.
- Distinctive: line 36
When the user says "update the project brain":
- Distinctive: line 39
Wait for user's approval per item
- Distinctive: line 40
Write the approved updates
- Distinctive: line 42
When the user signals window-switch:
- Very specific: line 44
Write a new brain/HANDOFF.md capturing still-warm-not-yet-written thoughts
- Distinctive: line 46
When a decision feels made: ask "does this count as decided?" — don't assert "we decided X."
- Distinctive: line 50
If this project uses multi-workstream mode, scope STATUS / HANDOFF / handoffs to the current workstream:
- Distinctive: line 55
If the user switches workstream mid-session: re-read the new one's files.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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] — AGENTS.md
This file follows the AGENTS.md convention — a project-level guide for AI coding agents (Codex CLI, Aider, Continue, etc.) that respect this convention.
On session start
Decide single- or multi-workstream (look at file naming under brain/):
- Only
STATUS.md/HANDOFF.md→ single-workstream branch - Multiple
STATUS_<workstream>.md→ multi-workstream branch (v2.1)
Single-workstream
Read these in order:
brain/MAP.md— project mapbrain/STATUS.md— current statebrain/HANDOFF.mdif exists — previous session's still-warm thoughts
Brief report: project recognized + current progress + last blocker.
Multi-workstream (v2.1)
First read shared files: brain/MAP.md + brain/PROJECT.md.
Then ask the user which workstream this session works on. Don't guess.
Read the corresponding STATUS_<workstream>.md + HANDOFF_<workstream>.md after the user answers.
Update protocol
Don't silently modify any file in brain/.
Judgment division (core principle):
- The user decides "should we record now" (high-level pacing)
- The agent decides "specifically what to record" (file-specific judgment)
- The user approves or rejects the agent's proposal
When the user says "update the project brain":
- Identify what happened in the session
- Propose a list with reasons (what to update + why each)
- Wait for user's approval per item
- Write the approved updates
When the user signals window-switch:
- Archive existing
brain/HANDOFF.mdtobrain/handoffs/<timestamp>.md - Write a new
brain/HANDOFF.mdcapturing still-warm-not-yet-written thoughts
When a decision feels made: ask "does this count as decided?" — don't assert "we decided X."
Multi-workstream (v2.1)
If this project uses multi-workstream mode, scope STATUS / HANDOFF / handoffs to the current workstream:
STATUS_<current>.md/HANDOFF_<current>.md/handoffs/<current>/
PROJECT.md / MAP.md / DECISIONS.md / topics/ stay shared across workstreams.
If the user switches workstream mid-session: re-read the new one's files; don't carry over memory.
Build / test / dev commands
⚠️ TODO ⚠️ — fill in main commands (run, build, test, lint, etc.)
Project red lines (read before writing code)
⚠️ TODO ⚠️ — fill in red lines, or confirm "no explicit red lines for this project"
Reference
Full methodology: https://github.com/Ethan-YS/project-brain/blob/main/METHODOLOGY.md
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.

