agentleFS
Ethan-YSEthan-YS/project-brain/templates/AGENTS.md

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.

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
  1. Very specific:

    Only STATUS.md / HANDOFF.md → single-workstream branch

    line 9
  2. Distinctive:

    Read these in order:

    line 14
  3. Very specific:

    Read the corresponding STATUS_<workstream>.md + HANDOFF_<workstream>.md after the user answers.

    line 25
  4. Very specific:

    Don't silently modify any file in brain/.

    line 29
  5. Distinctive:

    When the user says "update the project brain":

    line 36
  6. Distinctive:

    Wait for user's approval per item

    line 39
  7. Distinctive:

    Write the approved updates

    line 40
  8. Distinctive:

    When the user signals window-switch:

    line 42
  9. Very specific:

    Write a new brain/HANDOFF.md capturing still-warm-not-yet-written thoughts

    line 44
  10. Distinctive:

    When a decision feels made: ask "does this count as decided?" — don't assert "we decided X."

    line 46
  11. Distinctive:

    If this project uses multi-workstream mode, scope STATUS / HANDOFF / handoffs to the current workstream:

    line 50
  12. Distinctive:

    If the user switches workstream mid-session: re-read the new one's files.

    line 55

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

[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:

  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 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":

  1. Identify what happened in the session
  2. Propose a list with reasons (what to update + why each)
  3. Wait for user's approval per item
  4. Write the approved updates

When the user signals window-switch:

  1. Archive existing brain/HANDOFF.md to brain/handoffs/<timestamp>.md
  2. Write a new brain/HANDOFF.md capturing 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.