codebase-mapper

codebase-mapper is an agent for Claude Code from zebbern/claude-code-guide. It costs 47 tokens per session (410 once invoked), scanned A, original, MIT.

A repository-mapping assistant that traces a local codebase's structure, entry points, ownership, data flow, and affected areas.

In plain words
What is it for?
Use it to locate relevant files, follow callers and consumers, identify boundaries, and report the smallest area likely to need changes.
Why use it?
It reduces the time spent searching through unfamiliar code before making a change or deciding where work belongs.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Good fit Use it to locate relevant files, follow callers and consumers, identify boundaries, and report the smallest area likely to need changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zebbern/claude-code-guide/codebase-mapper
About the project

Claude Code Guide is a reference collection for configuring and using Claude Code, Anthropic’s command-line coding agent. Developers use it to learn commands, skills, agents, MCP, automation, security, integrations, and troubleshooting. Its catalogue add-ons provide many of the documented skills and agents.

zebbern/claude-code-guide · 4,721 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/zebbern/claude-code-guide

Made for: Claude Code.

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 codebase-mapper

README.md
[![agentmods](https://agentmods.dev/badge/agents/zebbern/claude-code-guide/codebase-mapper/github.svg)](https://agentmods.dev/agents/zebbern/claude-code-guide/codebase-mapper)
Your own site
<a href="https://agentmods.dev/agents/zebbern/claude-code-guide/codebase-mapper"><img src="https://agentmods.dev/badge/agents/zebbern/claude-code-guide/codebase-mapper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codebase-mapper

Your own site · 80×15
<a href="https://agentmods.dev/agents/zebbern/claude-code-guide/codebase-mapper"><img src="https://agentmods.dev/badge/agents/zebbern/claude-code-guide/codebase-mapper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 410 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00047 $0.00410
Opus 5.5 $0.00019 $0.00164
Sonnet 5.5 $0.00009 $0.00082
Haiku 4.5 $0.00005 $0.00041

Measured 1mo ago against content hash 3d556b2d13fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codebase-mapper 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 1mo 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.

agents/.claude/agents/codebase-mapper.md · 47 lines

What it actually says

Mission

Map the local codebase evidence needed for the assigned question. Own repository tracing; leave external research, design selection, implementation, and review to the parent or their dedicated roles.

Method

  1. Read active repository instructions and inspect Git state without changing it.
  2. Locate relevant entry points, configuration, ownership boundaries, callers, and consumers.
  3. Trace control flow, data flow, state, and side effects only as far as the question requires.
  4. Search for sibling occurrences of the same pattern and distinguish observed facts from inferences.
  5. Return a bounded change surface and the evidence another role needs next.

Constraints

  • Do not edit, generate, install, commit, or run commands that intentionally mutate source or durable state.
  • Do not research external documentation unless the task is blocked on identifying a product or version.
  • Preserve user changes and report ambiguous ownership or scope instead of guessing.
  • Treat tests as code evidence, not proof of real runtime behavior.

Output

Begin with:

ROLE: codebase-mapper STATUS: complete|blocked|inconclusive

Then provide: summary, evidence map with path:line citations, execution/data-flow map, likely change surface, sibling occurrences, unknowns, and the next decision required. Return distilled evidence rather than raw search logs.

Stop conditions

Return blocked when the target, repository access, or success criterion is missing and different assumptions would materially change the map. Return inconclusive when the relevant path cannot be established from available source evidence.

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. 1mo ago Changed · +2 lines 3d556b2d13fe
  2. 3mo ago First seen · 45 lines · 47 tokens per session scan A 2a79416e6ac6

Subscribe to this mod's changes

codebase-mapper is an agent published in the GitHub repository zebbern/claude-code-guide (4,721 stars, last pushed 4d ago), licensed MIT. It adds 47 tokens to every session and 410 once invoked, about $0.0002 per session on Opus 5.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.

Related

codebase-mapper compared with agents from other repositories

codebase-mapper next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codebase-mapperzebbern/claude-code-guideAgent4.7k4d agoMITA47Claude Code
auth-guardNjengah/claude-code-trackerAgent23mo agononeA65Claude Code
usage-scoutNjengah/claude-code-trackerAgent23mo agononeA75Claude Code
doc-onboardchristopherlouet/claude-baseAgent514d agoMITA34Claude Code
swiss-legal-prompt-engineerfedec65/bettercallclaudeAgent502d agoAGPL-3.0A35Claude Code
swiss-judicial-analystfedec65/bettercallclaudeAgent502d agoAGPL-3.0A32Claude Code
chronology-builderfedec65/bettercallclaudeAgent502d agoAGPL-3.0A103Claude Code