codemap CLAUDE.md

codemap CLAUDE.md is an instructions file for coding agents from JordanCoin/codemap. It costs 372 tokens per session, scanned A, original, MIT.

Project instructions for using Codemap, a tool that shows a repository’s structure, dependencies, and changes. They require running it from the Git repository’s root before exploring, editing, or summarising code.

In plain words
What is it for?
Use them when working in the JordanCoin/codemap repository, especially before tasks, edits, refactors, reviews, or commits.
Why use it?
They help the coding agent understand the project context and file relationships before making decisions.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/jordancoin/codemap/claude-md
Clone the repo
git clone --depth 1 https://github.com/JordanCoin/codemap

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codemap CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jordancoin/codemap/claude-md.svg)](https://agentmods.dev/instructions/jordancoin/codemap/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jordancoin/codemap/claude-md"><img src="https://agentmods.dev/badge/instructions/jordancoin/codemap/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 372 This file is loaded in full into every session.
When invoked 372 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00372 $0.00372
Opus 5 $0.00186 $0.00186
Sonnet 5 $0.00074 $0.00074
Haiku 4.5 $0.00037 $0.00037

Measured 4d ago against content hash 7a7bb4b1957b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codemap CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 47 lines

What it actually says

🛑 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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 47 lines · 372 tokens per session scan A 7a7bb4b1957b

Subscribe to this mod's changes

codemap CLAUDE.md is an instructions file published in the GitHub repository JordanCoin/codemap (685 stars, last pushed 5d ago), licensed MIT. It adds 372 tokens to every session, about $0.0019 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.