agentleFS
GenKerenskyGenKerensky/pi-cartographer/AGENTS.md

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 code style.

    Of the AGENTS.md files we read, the 35,266 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 repositoryOne other file it gives its agents.

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

    Use a mock filesystem, tempfile/mktemp, or another /tmp directory for test arrange/setup data.

    line 10
  2. Distinctive:

    When a test needs a project layout, scaffold a minimal mock project during Arrange, run the action against that mock root, and assert …

    line 12
  3. Very specific:

    Do not point tests, validation fixtures, or generated-artifact exploratory commands at $PWD if they create .plan/, .plan/_index/, …

    line 14
  4. Distinctive:

    If manual verification would create generated artifacts, use a temp copy/mock project unless the user explicitly asks to modify real repo …

    line 17
  5. Distinctive:

    Do not manually append receipts, hand-edit fact/plan status JSONL, or cross lifecycle gates as prose-only steps unless a wrapper is …

    line 25
  6. Distinctive:

    After validation receipts, auditor PASS capture, status updates, and the phase commit are complete, automatic phase advancement is the …

    line 28
  7. Very specific:

    Treat .plan/<topic>/plan.md, plan.nodes.jsonl, plan.edges.jsonl, receipts.jsonl, and context-packs.jsonl as authoritative for planning, …

    line 32
  8. Very specific:

    Read .cartographer/<topic>/state.json and journal.jsonl directly when resuming, but mutate them only through cartographer_state or the …

    line 35
  9. Very specific:

    After any direct state-file edit, run cartographer state validate or node --experimental-strip-types …

    line 38
  10. Very specific:

    Treat .cartographer/current.json as a git-ignored local hint only.

    line 44

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

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

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 /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 tests, validation fixtures, or generated-artifact exploratory commands at $PWD if 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, and context-packs.jsonl as authoritative for planning, validation evidence, and handoff context.
  • Read .cartographer/<topic>/state.json and journal.jsonl directly when resuming, but mutate them only through cartographer_state or the matching script commands.
  • After any direct state-file edit, run cartographer state validate or node --experimental-strip-types skills/plan/scripts/cartographer_state.ts state-validate --root "$PWD" --topic <topic> --json before trusting state.
  • Append journal.jsonl only 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.json as a git-ignored local hint only; it is non-authoritative and safe to delete or ignore when stale.

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.