ccc-update-codemaps

ccc-update-codemaps is a command for Claude Code from KevinZai/commander. It costs 53 tokens per session (990 once invoked), scanned A, a copy of update-codemaps, MIT.

A codebase mapping tool that turns a project's structure into compact architecture documents. It can describe services, APIs, frontend components, databases, dependencies, and data flow, including projects with multiple packages called a monorepo.

In plain words
What is it for?
Use it to document entry points, API routes, service layers, component trees, database relationships, migrations, and external integrations.
Why use it?
It makes a large or unfamiliar codebase easier to understand and gives coding agents concise architecture context. Updating the maps reduces the need to rediscover the project structure.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: names the AskUserQuestion tool.

Good fit Use it to document entry points, API routes, service layers, component trees, database relationships, migrations, and external integrations.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kevinzai/commander/ccc-update-codemaps
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/KevinZai/commander

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 ccc-update-codemaps

README.md
[![agentmods](https://agentmods.dev/badge/commands/kevinzai/commander/ccc-update-codemaps/github.svg)](https://agentmods.dev/commands/kevinzai/commander/ccc-update-codemaps)
Your own site
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-update-codemaps"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-update-codemaps/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 ccc-update-codemaps

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-update-codemaps"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-update-codemaps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 990 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 92% copy Near-identical to another mod 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.00053 $0.00990
Opus 5.5 $0.00021 $0.00396
Sonnet 5.5 $0.00011 $0.00198
Haiku 4.5 $0.00005 $0.00099

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

Security

Grade A, and why

ccc-update-codemaps 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.

Origin

This is a copy

92% identical to update-codemaps — 104 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/ccc-update-codemaps.md · 77 lines

How it starts

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

/ccc-update-codemaps — compact maps of the codebase

CC Commander · /ccc-update-codemaps · writes short, path-first architecture docs an agent can load cheaply, and reports what changed since the last scan.

Arguments

$ARGUMENTS optionally names one codemap (architecture, backend, frontend, data, dependencies) to regenerate. Empty regenerates all that apply.

What happens

  1. Scan the structure.

    1. Identify the project type: monorepo (pnpm-workspace.yaml, turbo.json, packages/), single app, library or service.
    2. List source directories: git ls-files | cut -d/ -f1-2 | sort | uniq -c | sort -rn | head -30.
    3. Find entry points (main.ts, index.ts, app.py, main.go, src/main.rs, the main/bin/exports fields of package.json).
  2. Choose the output directory. Use docs/CODEMAPS/ if it exists, else .reports/codemaps/ if it exists, else ask with AskUserQuestion (plain-text question where it is unavailable): 🟢 docs/CODEMAPS/ (committed with the repo) · .reports/codemaps/ (local reports) · Stop.

  3. Write the codemaps that apply to this project (skip frontend.md for a backend-only repo, and so on):

    File Contents
    architecture.md System diagram (ASCII), service boundaries, data flow
    backend.md API routes, middleware chain, service → repository mapping
    frontend.md Page tree, component hierarchy, state management flow
    data.md Tables, relationships, migration history
    dependencies.md External services, third-party integrations, shared libraries

    Format: path-first and token-lean, under about 1,000 tokens per file. Use file paths and signatures, not code blocks:

    # Backend Architecture
    
    ## Routes
    POST /api/users → UserController.create → UserService.create → UserRepo.insert
    GET  /api/users/:id → UserController.get → UserService.findById → UserRepo.findById
    
    ## Key Files
    src/services/user.ts (business logic, 120 lines)
    src/repos/user.ts (database access, 80 lines)
    
    ## Dependencies
    - PostgreSQL (primary data store)
    - Redis (session cache, rate limiting)
    

Read the full file on GitHub · 77 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. 1mo ago Changed · +41 tokens per session 94a1312b15f5
  2. 2mo ago First seen · 77 lines · 12 tokens per session scan A b88b954a632e

Subscribe to this mod's changes

ccc-update-codemaps is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 990 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to update-codemaps, differing in 104 lines, and is treated as a copy.

Related

ccc-update-codemaps compared with commands from other repositories

ccc-update-codemaps next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ccc-update-codemapsKevinZai/commanderCommand6yesterdayMITA53Claude Code
loopskullninja/coco-workflowCommand71mo agoMITA28Claude Code
phaseskullninja/coco-workflowCommand71mo agoMITA21Claude Code
statusskullninja/coco-workflowCommand71mo agoMITA17Claude Code
justone-publishGodsB1025/justoneCommand26mo agoMITA22Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code