pi-cartographer
AGENTS.md0 starsChanged 6 months agoMITView on GitHub
Scope: this file is project-wide. Put subtree-specific guidance in the nearest child AGENTS.md; skill-authoring rules belong in skills/AGENTS.md. - Tests must never write to or mutate the repository's real .plan/ directory or other persistent planning artifacts. - Use a mock filesystem, tempfile/mktemp, or another /tmp directory for test arrange/setup data. - When a test needs a project layout, scaffold a minimal mock project during Arrange, run the action against that mock root, and assert inside it. - Do not point…
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,736 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 repository10 other files it gives its agents.
- skills/AGENTS.mdAGENTS.md
- dashboardSkill
- designSkill
- implementSkill
- index-projectSkill
- interviewSkill
- model-configSkill
- planSkill
- proposalSkill
- requirementsSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use a mock filesystem, tempfile/mktemp, or another /tmp directory for test arrange/setup data.
- Distinctive: line 12
When a test needs a project layout, scaffold a minimal mock project during Arrange, run the action against that mock root, and assert …
- Very specific: line 14
Do not point tests, validation fixtures, or generated-artifact exploratory commands at $PWD if they create .plan/, .plan/_index/, …
- Distinctive: line 17
If manual verification would create generated artifacts, use a temp copy/mock project unless the user explicitly asks to modify real repo …
- Distinctive: line 25
Do not manually append receipts, hand-edit fact/plan status JSONL, or cross lifecycle gates as prose-only steps unless a wrapper is …
- Distinctive: line 28
After validation receipts, auditor PASS capture, status updates, and the phase commit are complete, automatic phase advancement is the …
- Very specific: line 32
Treat .plan/<topic>/plan.md, plan.nodes.jsonl, plan.edges.jsonl, receipts.jsonl, and context-packs.jsonl as authoritative for planning, …
- Very specific: line 35
Read .cartographer/<topic>/state.json and journal.jsonl directly when resuming, but mutate them only through cartographer_state or the …
- Very specific: line 38
After any direct state-file edit, run cartographer state validate or node --experimental-strip-types …
- Very specific: line 44
Treat .cartographer/current.json as a git-ignored local hint only.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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 Agent Instructions
Scope: this file is project-wide. Put subtree-specific guidance in the nearest
child AGENTS.md; skill-authoring rules belong in skills/AGENTS.md.
Testing and Temporary Artifacts
- Tests must never write to or mutate the repository's real
.plan/directory or other persistent planning artifacts. - Use a mock filesystem,
tempfile/mktemp, or another/tmpdirectory for test arrange/setup data. - When a test needs a project layout, scaffold a minimal mock project during Arrange, run the action against that mock root, and assert inside it.
- Do not point tests, validation fixtures, or generated-artifact exploratory
commands at
$PWDif they create.plan/,.plan/_index/,.plan/_retrieval/, cache, database, or graph artifacts. - If manual verification would create generated artifacts, use a temp copy/mock project unless the user explicitly asks to modify real repo artifacts.
Cartographer Wrapper and State Discipline
- Route deterministic workflow mutations through Cartographer wrappers when available: proposal, fact, plan/status, validation, implement, handoff, transition, state, and ADR tools.
- Do not manually append receipts, hand-edit fact/plan status JSONL, or cross lifecycle gates as prose-only steps unless a wrapper is unavailable and an explicit fallback receipt records the substitute checks.
- After validation receipts, auditor PASS capture, status updates, and the phase commit are complete, automatic phase advancement is the default. Use human approval only for proposal/plan gates, explicitly human-gated phases, final implementation gates, or unresolved user-owned decisions.
- Treat
.plan/<topic>/plan.md,plan.nodes.jsonl,plan.edges.jsonl,receipts.jsonl, andcontext-packs.jsonlas authoritative for planning, validation evidence, and handoff context. - Read
.cartographer/<topic>/state.jsonandjournal.jsonldirectly when resuming, but mutate them only throughcartographer_stateor the matching script commands. - After any direct state-file edit, run
cartographer state validateornode --experimental-strip-types skills/plan/scripts/cartographer_state.ts state-validate --root "$PWD" --topic <topic> --jsonbefore trusting state. - Append
journal.jsonlonly for durable lessons, gotchas, constraints, or phase summaries that should survive compaction. Do not store raw logs, routine tool calls, full command output, receipts, transcripts, or ADRs. - Treat
.cartographer/current.jsonas a git-ignored local hint only; it is non-authoritative and safe to delete or ignore when stale.
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.

