growth-hacker
CLAUDE.md1 starsChanged 5 months agoMITView on GitHub
This is the root routing contract for Claude Code and Codex.
In this repository6 other files it gives its agents.
The file
We split this CLAUDE.md into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Keep sibling CLAUDE.md and AGENTS.md files aligned.
- Very specific: line 8
Treat docs/spec.md as stable product truth, tasks/current.md as a derived status snapshot, and tasks/todo.md as the deferred-goal ledger.
- Very specific: line 9
Treat tasks/lessons.md, tasks/research.md, and .ai/harness/policy.json as durable workflow context.
- Very specific: line 10
Use .ai/context/context-map.json and .ai/context/capabilities.json to discover functional-block contracts.
- Very specific: line 11
Do not infer local CLAUDE.md or AGENTS.md files from broad physical layouts such as apps/*, packages/*, or services/*.
- Distinctive: line 12
Put capability-specific ownership, entrypoints, and verification commands in explicitly selected functional-block contracts.
- Distinctive: line 13
Keep root context concise.
- Very specific: line 14
Treat _ref/ as ignored external reference material and _ops/ as ignored local operations state.
- Distinctive: line 15
Prefer repo-local workflow artifacts over tool-specific chat memory.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.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
Repo Agent Context
This is the root routing contract for Claude Code and Codex.
Root Workflow Contract
- Keep sibling
CLAUDE.mdandAGENTS.mdfiles aligned. Claude Code consumesCLAUDE.md; Codex consumesAGENTS.md. - Treat
docs/spec.mdas stable product truth,tasks/current.mdas a derived status snapshot, andtasks/todo.mdas the deferred-goal ledger; current execution stays in the active plan's## Task Breakdown. - Treat
tasks/lessons.md,tasks/research.md, and.ai/harness/policy.jsonas durable workflow context. - Use
.ai/context/context-map.jsonand.ai/context/capabilities.jsonto discover functional-block contracts. - Do not infer local
CLAUDE.mdorAGENTS.mdfiles from broad physical layouts such asapps/*,packages/*, orservices/*. - Put capability-specific ownership, entrypoints, and verification commands in explicitly selected functional-block contracts.
- Keep root context concise; route deep implementation detail into plans, task notes, research, workstreams, or architecture docs.
- Treat
_ref/as ignored external reference material and_ops/as ignored local operations state. - Prefer repo-local workflow artifacts over tool-specific chat memory.
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.

