team-codebase-map

A command that uses several cooperating agents to build a guide to a software project, then reviews the results and creates an index.

In plain words
What is it for?
It produces a navigable codebase map through parallel exploration, writing, and review.
Why use it?
It helps document a large or unfamiliar project without making one agent handle every part alone.

Command

Part of the codebase-mapper plugin — 1 skill, 5 commands, 10 agents shipped together

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 commands/acaprino/daodan/team-codebase-map
Clone the repo
git clone --depth 1 https://github.com/acaprino/daodan

Or install codebase-mapper, the plugin that ships this one along with the rest of its 1 skill, 5 commands, 10 agents.

Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,783 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00053 $0.02783
Opus 5 $0.00026 $0.01392
Sonnet 5 $0.00011 $0.00557
Haiku 4.5 $0.00005 $0.00278

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

Security

Grade B, and why

team-codebase-map scanned grade B with 1 finding 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 2d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

The team infrastructure itself (teammate spawning via the `Agent` tool, plus TaskList) is a native Claude Code feature and needs no plugin, but it is experimental and OFF by default: it requires `CLAUDE_CODE_EXPERIMENTAL
exports/claude/plugins/codebase-mapper/commands/team-codebase-map.md · 190 lines

How it starts

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

Prerequisites

This command requires the upstream agent-teams plugin from wshobson/agents (MIT, Seth Hobson). It provides the agent-teams:task-coordination-strategies and agent-teams:team-communication-protocols skills used below. Install it first:

/plugin marketplace add wshobson/agents
/plugin install agent-teams@claude-code-workflows

The team infrastructure itself (teammate spawning via the Agent tool, plus TaskList) is a native Claude Code feature and needs no plugin, but it is experimental and OFF by default: it requires CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1, best set persistently in the env block of ~/.claude/settings.json. As of Claude Code 2.1.178 there are no TeamCreate/TeamDelete tools: the team forms implicitly when the first teammate is spawned, and team resources are cleaned up automatically when the session ends. If teammate spawning is unavailable in this session, stop and tell the user to enable the flag and restart Claude Code; do not fall back to plain subagents without saying so.

Team Codebase Map

Orchestrate the codebase-mapper pipeline using parallel agent teams. Phase 2 runs 6 writers simultaneously, dramatically reducing total documentation time.

Skills to Load

Before starting, invoke these skills:

  • codebase-mapper:codebase-mapper -- writing guidelines, tone rules, diagram conventions
  • agent-teams:task-coordination-strategies -- phased task dependencies
  • agent-teams:team-communication-protocols -- coordination between writers

Pre-flight Checks

  1. Verify CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set
  2. Parse $ARGUMENTS:
    • [target-path]: project root to map (default: current working directory)
    • --skip-review: skip Phase 3 reviewer pass
    • --writers N: limit parallel writers (default: 6, min: 1, max: 6)

Pipeline Overview

The sequential map-codebase command runs agents one-by-one. This team version parallelizes Phase 2:

Phase 1: Explore (sequential -- 1 agent)
  - codebase-explorer builds context brief
         |
         v
Phase 1b: Interconnect Map (sequential -- 1 agent)
  - semantic-interconnect-mapper builds structured facts
    (contracts, invariants, domain rules, integration hot-spots)
         |
         v
Phase 2: Write (parallel -- 6 agents)
  - overview-writer   --> 01-overview.md, 02-features.md
  - tech-writer       --> 03-tech-stack.md, 04-architecture.md      [reads interconnect]
  - flow-writer       --> 05-workflows.md, 06-data-model.md         [reads interconnect]
  - onboarding-writer --> 07-getting-started.md, 08-open-questions.md
  - ops-writer        --> 09-project-anatomy.md                      [reads interconnect]
  - config-writer     --> 10-configuration-guide.md
         |
         v
Phase 3: Review (sequential -- 1 agent)
  - guide-reviewer --> INDEX.md                                      [drift detection]

Read the full file on GitHub · 190 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. 2d ago First seen · 190 lines · 53 tokens per session scan B fb8d7b6cdb71

Subscribe to this mod's changes

team-codebase-map is a command published in the GitHub repository acaprino/daodan (8 stars, last pushed 7d ago), licensed MIT. It adds 53 tokens to every session and 2,783 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.