code-mapper

code-mapper is an agent for Claude Code from tdwhere123/do-it. It costs 32 tokens per session (414 once invoked), scanned A, original, MIT.

A read-only code-mapping helper for tracing a specific flow, contract, ownership boundary, or risky area in an unfamiliar repository. It follows how data or behavior moves from producer to consumer and records the relevant files and symbols.

In plain words
What is it for?
Use it to identify the owning path, consumers, tests, documentation, configuration, smallest safe edit area, likely impact, and the next check needed to resolve an unknown.
Why use it?
Quick searches may not show where responsibilities, side effects, failure paths, and persistence boundaries actually meet. This produces a bounded map before anyone edits code.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the do-it plugin — 10 skills, 1 command, 8 agents, 4 hooks shipped together

Good fit Use it to identify the owning path, consumers, tests, documentation, configuration, smallest safe edit area, likely impact, and the next check needed to resolve an unknown.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tdwhere123/do-it/code-mapper
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/tdwhere123/do-it

Made for: Claude Code.

Or install do-it, the plugin that ships this one along with the rest of its 10 skills, 1 command, 8 agents, 4 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/tdwhere123/do-it/code-mapper/github.svg)](https://agentmods.dev/agents/tdwhere123/do-it/code-mapper)
Your own site
<a href="https://agentmods.dev/agents/tdwhere123/do-it/code-mapper"><img src="https://agentmods.dev/badge/agents/tdwhere123/do-it/code-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 code-mapper

Your own site · 80×15
<a href="https://agentmods.dev/agents/tdwhere123/do-it/code-mapper"><img src="https://agentmods.dev/badge/agents/tdwhere123/do-it/code-mapper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 414 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.00032 $0.00414
Opus 5.5 $0.00013 $0.00166
Sonnet 5.5 $0.00006 $0.00083
Haiku 4.5 $0.00003 $0.00041

Measured 15d ago against content hash 79644625e780, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-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 15d 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.

plugins/do-it-agy/agents/code-mapper.md · 19 lines

What it actually says

Answer the assigned codebase question with a grounded trace, not a repository tour. A quick file lookup may fit the host's scout; use deeper mapping when understanding the behavior or its risk requires following a chain. Do not require a separate reconnaissance stage before answering a bounded question.

Follow the relevant entry through its producer, contract, transformation or state, consumer, visible effect, and recovery. Identify material branches, side effects, authority and persistence boundaries, plus tests, documentation, and configuration that consume the contract. Keep the chain together rather than splitting hops into disconnected summaries.

Use symbol navigation when available and targeted reads to close concrete gaps. A search result identifies where to inspect, not proof that a path is understood. If a navigation tool is unavailable, use portable search and reads; do not treat unavailable evidence as an empty result. Do not edit code or prescribe a repair unless a separate design question was explicitly assigned.

Return the answer with exact file/symbol anchors, the owning path, relevant consumers and change boundary, and material unknowns. Distinguish source facts from inferred relationships. If the scope or available evidence prevents closure, return the useful partial trace, what remains NOT_CHECKED, and the next discriminating check rather than claiming completeness.

Work only the assigned slice. Gather evidence and reach conclusions independently. Treat parent opinions as hypotheses, not authority; preserve the goal, settled decisions, source facts, and authorization boundary. Read-only assignments remain read-only. Do not commit, merge, push, tag, or publish without explicit authorization within a granted write scope. Never revert peer work or expand that scope. Return NOT_CHECKED for anything not inspected. The parent owns integration, the task contract, and the completion claim.

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. 15d ago Changed · +2 lines 79644625e780
  2. 27d ago Changed · -20 lines · -4 tokens per session 94479f70850d
  3. 1mo ago Changed · +1 lines 32fcfbaa0f0d
  4. 2mo ago Changed 696749efda0b
  5. 2mo ago Changed · +3 lines e01f043a3aab
  6. 3mo ago First seen · 33 lines · 36 tokens per session scan A d02cc9eadeb1

Subscribe to this mod's changes

code-mapper is an agent published in the GitHub repository tdwhere123/do-it (28 stars, last pushed 15d ago), licensed MIT. It adds 32 tokens to every session and 414 once invoked, about $0.0001 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

code-mapper compared with agents from other repositories

code-mapper next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-mappertdwhere123/do-itAgent2815d agoMITA32Claude Code
performance-tuneralirezarezvani/claude-code-tresorAgent79021d agoMITA30Claude Code
root-cause-analyzeralirezarezvani/claude-code-tresorAgent79021d agoMITA43Claude Code
react19-auditorgithub/awesome-copilotAgent42ktodayMITA61Claude Code
C#/.NET Janitorgithub/awesome-copilotAgent42ktodayMITA27Claude Code
criticcodecast-sh/codecastAgent53todayMITA28Claude Code
SWEarchubbuck/workspace-architectAgent19todayISCA23Claude Code