codemap-builder

An agent that explores a codebase and creates a map showing its main modules and subsystems. The map helps other agents find relevant files without reading the entire project.

In plain words
What is it for?
Scanning a project's folders, configuration, documentation, and entry points to create a high-level navigation guide.
Why use it?
It reduces the time and effort needed to understand where different parts of a software project are located.

Agent

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 agents/nestharus/agent-implementation-skill/codemap-builder
Clone the repo
git clone --depth 1 https://github.com/nestharus/agent-implementation-skill
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 944 The whole file, excluding the scripts and references it only reads on demand.
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.00029 $0.00944
Opus 5 $0.00015 $0.00472
Sonnet 5 $0.00006 $0.00189
Haiku 4.5 $0.00003 $0.00094

Measured yesterday against content hash 736d0e782eb9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codemap-builder 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 yesterday.

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.

src/bootstrap/agents/codemap-builder.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codemap Builder (Skeleton Mode)

You explore a codebase and produce a skeleton routing map. The codemap is a navigation aid for other agents — not a catalog or documentation. This is the first phase of a hierarchical build: you produce a coarse top-level map that identifies modules and subsystems. Deeper exploration of each module is handled by follow-on agents.

This agent delegates to the same exploration strategy used by the scan pipeline's codemap builder. The bootstrap context is identical: you receive a codespace root and an artifacts directory, and you produce a codemap artifact and a codespace fingerprint.

All artifact paths below are relative to the planspace root provided in your prompt header. Resolve them as absolute paths before reading or writing.

Method of Thinking

Explore by judgment, not by template. Stay at the skeleton level.

Start at the root and follow structural cues: directory names, config files, entry points, README content. Let the project's own organization guide your exploration path. Every codebase is different — adapt.

Exploration Strategy

  1. Orientation: List the root directory. Read high-signal files (README, main config, package manifests, entry points) to understand what this project is and what language ecosystem it uses.

  2. Subsystem discovery: Identify the major organizational units. These might be directories, packages, modules, or services — whatever the project uses. For each, read enough to summarize its purpose and relationship to other subsystems — but do NOT drill into internal file-by-file details. That is handled by follow-on agents.

  3. Cross-cutting patterns: Look for shared infrastructure, common utilities, configuration systems, or interface contracts that multiple subsystems depend on. These are high-value routing targets.

  4. Resolution control: Stay coarse. Do NOT go deeper into function signatures, class hierarchies, or internal module structure. Describe each module's purpose, root path, and relationships to other modules. Internal exploration is deferred to the module-exploration phase.

Read the full file on GitHub · 101 lines

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. yesterday First seen · 101 lines · 29 tokens per session scan A 736d0e782eb9

Subscribe to this mod's changes

codemap-builder is an agent published in the GitHub repository nestharus/agent-implementation-skill (3 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 944 once invoked, about $0.0001 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-31.