agentleFS
JordanCoinJordanCoin/codemap/CLAUDE.md

codemap

CLAUDE.md704 starsChanged 8 months agoMITView on GitHub

Run codemap from the git repository root. Hooks and context files resolve from the current working directory, so running from a subdirectory can break hook context. codemap expects these at repo root: - .git/ - .codemap/ - .claude/settings.local.json (project-local hooks) BEFORE starting any task, run codemap . first. Treat codemap as part of the execution loop, not as optional reference material: Use rg for exact string lookup after codemap has established structure or blast radius. ALWAYS run codemap --deps when:…

The file

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

9 rules. About 0 are common, 0 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run codemap from the git repository root.

    line 5
  2. Very specific:

    Treat codemap as part of the execution loop, not as optional reference material:

    line 27
  3. Very specific:

    Before the first real code exploration in a task: codemap .

    line 29
  4. Very specific:

    Before editing any file: codemap --importers <file>

    line 30
  5. Very specific:

    Before refactors, moves, or dependency-heavy changes: codemap --deps

    line 31
  6. Very specific:

    Before summarizing, reviewing, or committing: codemap --diff

    line 32
  7. Very specific:

    If a codemap hook prints Next codemap: or Run now:, do that before continuing

    line 33
  8. Very specific:

    Use rg for exact string lookup after codemap has established structure or blast radius.

    line 35
  9. Very specific:

    Use --ref <branch> when comparing against something other than main

    line 46

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

🛑 STOP — Run codemap before ANY task

Repo Root Requirement (Critical)

Run codemap from the git repository root. Hooks and context files resolve from the current working directory, so running from a subdirectory can break hook context.

cd "$(git rev-parse --show-toplevel)"

codemap expects these at repo root:

  • .git/
  • .codemap/
  • .claude/settings.local.json (project-local hooks)
codemap .                     # Project structure
codemap --deps                # How files connect
codemap --diff                # What changed vs main
codemap --diff --ref <branch> # Changes vs specific branch

Required Usage

BEFORE starting any task, run codemap . first.

Treat codemap as part of the execution loop, not as optional reference material:

  • Before the first real code exploration in a task: codemap .
  • Before editing any file: codemap --importers <file>
  • Before refactors, moves, or dependency-heavy changes: codemap --deps
  • Before summarizing, reviewing, or committing: codemap --diff
  • If a codemap hook prints Next codemap: or Run now:, do that before continuing

Use rg for exact string lookup after codemap has established structure or blast radius.

ALWAYS run codemap --deps when:

  • User asks how something works
  • Refactoring or moving code
  • Tracing imports or dependencies

ALWAYS run codemap --diff when:

  • Reviewing or summarizing changes
  • Before committing code
  • User asks what changed
  • Use --ref <branch> when comparing against something other than main

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.