By miltonian
Agent-first code understanding system. Builds a persistent world-model of your codebase with evidence-grounded facts, semantic map, behavior flows, perspectives, PR review overlay, and navigable depth via semantic zoom.
Analyze a codebase and build a world-model — traces behaviors, records entities with evidence, creates boundaries by concern. Use when the user says analyze, understand, or map a codebase or specific area.
Deep autonomous codebase exploration — traces behaviors end-to-end, creates boundaries by concern, builds navigable depth with sub-boundaries, enforces quality via cartographer_check_depth. Use when the user says explore, map, understand, or analyze deeply.
Query the Cartographer world-model to answer questions about a codebase using stored evidence. Use when the user asks how something works, what calls what, or wants to understand structure.
Visualize a pull request on the Cartographer map — see which entities are affected, the blast radius, and the review path. Use when user says "review pr", "review pull request", or "/cartographer review-pr".
Admin access level
Server config contains admin-level keywords
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
An agent-first code understanding system.
Build a persistent, evidence-grounded world-model of any codebase.
Navigate it as a map. Trace behaviors. Inspect evidence down to source.

Getting Started · How It Works · Architecture · Contributing
You understand a codebase by building a mental model — not of files, but of behaviors: what happens when a user signs up, how payments flow, where things can fail. That model lives only in your head. It's rebuilt from scratch every time. It can't be shared, inspected, or queried.
Cartographer externalizes that model.
It gives Claude Code a persistent memory of your codebase's behaviors and structure — grounded in source evidence, navigable as a map, and accessible to engineers and non-engineers alike.
You: "explore this codebase"
Claude traces the system's key behaviors end-to-end.
Entities emerge from the flows — not from directory structure.
Boundaries form around concerns that break together.
The map shows what the system DOES, not how files are organized.
Each fact links back to the exact source code that proves it.
Open localhost:3847 to see the map.
Click a boundary to zoom in (semantic zoom).
Select a behavior flow to see the path light up.
Ask Claude questions — answers cite the stored model.
/plugin marketplace add miltonian/cartographer
/plugin install cartographer@cartographer
git clone https://github.com/miltonian/cartographer.git
cd cartographer
npm install
npm run build:ui
claude --plugin-dir ./plugin
/cartographer explore # Deep autonomous exploration
/cartographer analyze # Guided analysis (or focused: analyze auth)
/cartographer review-pr 123 # Overlay a PR on the map
/cartographer map # Open browser UI
/cartographer status # Model statistics
/cartographer snapshot # Save a backup
/cartographer restore <file> # Restore from backup
/cartographer reset # Start fresh
┌──────────────────────────┐
│ Claude Code + Plugin │ Agent. Traces behaviors, records findings.
│ │ MCP (stdio) │
├──────────┼───────────────┤
│ Local Service │ Backbone. Stores world-model, serves API.
│ │ HTTP + WS │
├──────────┼───────────────┤
│ Browser UI │ Map. Renders projections, navigable depth.
└──────────────────────────┘
Cartographer leads with what happens, not what exists. The agent:
Structure comes from behavior, not from directories.
| Entity Kind | What It Represents |
|---|---|
boundary | A concern — things that break together |
capability | Something the system can do |
actor | Where external intent enters |
entity | State that persists or transforms |
side-effect | Observable consequence outside the boundary |
invariant | A rule that must hold true |
failure-point | Where the system can fail |
Every fact carries source evidence with confidence levels:
| Confidence | Meaning |
|---|---|
proven | Directly observed in source code |
high | One inference step from observed facts |
medium | Synthesized from multiple observations |
low | Educated guess |
speculative | Hypothesis, not yet verified |
The map visually distinguishes all levels. You always know what's proven vs. inferred.
Flows are the primary unit of understanding — a named path through the system:
Customer checkout:
Cart validation → Payment processing → Order creation → Confirmation email
Select a flow in the UI panel to see it highlighted on the map. Each step is numbered. Non-participating nodes dim.
Multiple angles on the same codebase. A perspective is a named lens — a subset of entities in focus.
Each perspective has its own layout. Open multiple browser tabs with different perspectives via URL params.
npx claudepluginhub miltonian/cartographer --plugin cartographerSee what your team is building. A live feed powered by a plugin that auto-captures what everyone builds.
Maps and documents codebases of any size using parallel AI subagents
Code graph navigation and semantic search for LLM coding agents
Codebase exploration, refactoring, and quality analysis
Smart codebase exploration with dependency mapping and structure analysis
Codebase intelligence for Claude Code. Indexes your codebase into five layers (Graph, Git, Docs, Decisions, Code Health) and exposes them through nine task-shaped MCP tools — so Claude understands architecture, ownership, hotspots, why code is built the way it is, and where the defect risk lives.
Codebase intelligence — semantic search workflows, dependency graph analysis, and context artifact exploration for SocratiCode