agentleFS
gviiisengviiisen/repo-context-ledger/CLAUDE.md

repo-context-ledger

CLAUDE.md105 starsChanged 3 months agoMITView on GitHub

Use already loaded task context first. For a missing or changed background question, run context --query "<task>" before broad documentation exploration; do not repeat routing for a routine follow-up whose context is sufficient. Read only the Context Bundle's Required reads initially. Never recursively read docs/ai, docs/specs, or docs/changes. Do not open completed Change bodies unless the plan selects one, a required Pack cites one for a named reason, or the user asks for historical reasoning. Required reads are a starting…

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat Git-tracked Context Packs, stable specs, and handoffs as the cross-Agent source of truth.

    line 8

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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.

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

Claude Code instructions

<!-- repo-context-ledger:rules:start -->

@AGENTS.md

Use already loaded task context first. For a missing or changed background question, run context --query "<task>" before broad documentation exploration; do not repeat routing for a routine follow-up whose context is sufficient. Read only the Context Bundle's Required reads initially. Never recursively read docs/ai, docs/specs, or docs/changes. Do not open completed Change bodies unless the plan selects one, a required Pack cites one for a named reason, or the user asks for historical reasoning. Required reads are a starting route, not a maximum code-reading limit. Expand context only after stating the unresolved question, and always expand whenever callers, implementations, configuration, persistence, permissions, concurrency, retries, tests, or external boundaries can affect the behavior. A same-window 'continue' on a known active task keeps its session and epoch without another resume. For a real window/tool handover, paused task, or missing task identity, resolve only the missing state and use an owned unique Resume Capsule. Continue the same Ledger session with resume --query "<keywords>" --tool claude; keep the returned continuation epoch and pass --epoch <n> to later writes. Never read, resume, pause, checkpoint, finish, or invalidate another principal's private session unless an explicit unexpired grant authorizes that exact access. Read-only grants never permit writes. A foreign overlap without a grant permits only Git-tracked Pack/spec/Change guidance.

Treat Git-tracked Context Packs, stable specs, and handoffs as the cross-Agent source of truth. Follow the repository context ledger workflow without asking the user to run lifecycle commands. Never message or steer another user-owned task unless the user explicitly requested cross-task coordination.

<!-- repo-context-ledger:rules:end -->

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.