A Claude Code plugin that maps and documents codebases of any size using parallel AI subagents.
Step 1: Add the marketplace to Claude Code:
/plugin marketplace add kingbootoshi/cartographer
Step 2: Install the plugin:
/plugin install cartographer
Step 3: Restart Claude Code (may be required for the skill to load)
Step 4: Use it:
/cartographer
Or just say "map this codebase" and it will trigger automatically.
Cartographer orchestrates multiple Sonnet subagents (with 1M token context windows) to analyze your entire codebase in parallel, then synthesizes their findings into:
docs/CODEBASE_MAP.md- Detailed architecture map with file purposes, dependencies, data flows, and navigation guides- Updates
CLAUDE.mdwith a summary pointing to the map
- Runs a scanner script to get file tree with token counts (respects .gitignore)
- Plans how to split work across subagents based on token budgets
- Spawns Sonnet subagents in parallel - each analyzes a portion of the codebase
- Synthesizes all subagent reports into comprehensive documentation
If docs/CODEBASE_MAP.md already exists, Cartographer will:
- Check git history for changes since last mapping
- Only re-analyze changed modules
- Merge updates with existing documentation
Just run /cartographer again to update.
- tiktoken (for token counting):
pip install tiktokenoruv pip install tiktoken
See plugins/cartographer/README.md for detailed documentation.
MIT