Help us improve
Share bugs, ideas, or general feedback.
Code graph navigation, semantic search, and impact analysis for Claude Code
npx claudepluginhub jrollin/cartogCode graph navigation and semantic search for LLM coding agents
Official prompts.chat marketplace - AI prompts, skills, and tools for Claude Code
Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations
Open Design — local-first design app exposed to coding agents over MCP. Install once with your agent's plugin command and projects/files/skills are reachable through stdio.
Share bugs, ideas, or general feedback.
Map your codebase. Navigate by graph, not grep.
Cartog pre-computes a code graph — symbols, calls, imports, inheritance — and lets you query it in microseconds. Use it from the CLI, as an MCP server for AI agents, or both. Everything runs locally: no API calls, no cloud, no data leaves your machine.
| grep/cat/find | Cartog | |
|---|---|---|
| Query latency | multi-step | 8-450 μs |
| Recall (completeness) | 78% | 97% |
| Transitive analysis | impossible | impact --depth 3 traces callers-of-callers |
| Semantic search | no | local ONNX / Ollama |
| Privacy | local | 100% local — no remote calls |
Measured across 13 scenarios, 5 languages (full benchmark suite).
cargo install cartog and you're done. No Docker, no config.cartog impact --depth 3 traces callers-of-callers. Know the blast radius before you change anything.cartog watch auto re-indexes on file changes. Always query fresh data.cartog serve exposes 12 tools over stdio. Plug into Claude Code, Cursor, Windsurf, Zed, or any MCP-compatible agent.refs call replaces 6+ discovery steps.
cargo install cartog
cd your-project
cartog index . # build the graph (~95ms for 4k LOC, incremental)
cartog search validate # find symbols by name (sub-millisecond)
cartog refs validate_token # who calls/imports/references this?
cartog impact validate_token # what breaks if I change this?
cartog rag setup # download embedding + re-ranker models (~1.2GB, one-time)
cartog rag index . # embed all symbols + documents into sqlite-vec
cartog rag search "authentication token validation" # natural language queries
Indexes both code (functions, classes, methods) and Markdown documents (READMEs, design docs, API docs). Returns code by default; use --kind document for docs or --kind all for both.
Models are downloaded once to ~/.cache/cartog/models/ and run locally via ONNX Runtime. No API keys, no network calls at query time.
Using Ollama instead? Configure
.cartog.tomlwith[embedding] provider = "ollama"and skiprag setup— models are managed by Ollama. See Configuration.
cargo install cartog # core (heuristic resolution only)
cargo install cartog --features lsp # + LSP-based resolution (recommended)
cargo install cartog --features ollama-embedding # + Ollama embedding support
The lsp feature adds ~50KB to the binary. It auto-detects language servers on PATH (rust-analyzer, pyright, typescript-language-server, gopls, ruby-lsp, solargraph) and uses them to resolve edges that heuristic matching can't. No extra config needed — if a server is on PATH, it's used automatically.
Download from GitHub Releases:
# macOS (Apple Silicon)
curl -L https://github.com/jrollin/cartog/releases/latest/download/cartog-aarch64-apple-darwin.tar.gz | tar xz
sudo mv cartog /usr/local/bin/
# macOS (Intel)
curl -L https://github.com/jrollin/cartog/releases/latest/download/cartog-x86_64-apple-darwin.tar.gz | tar xz
sudo mv cartog /usr/local/bin/
# Linux (x86_64)
curl -L https://github.com/jrollin/cartog/releases/latest/download/cartog-x86_64-unknown-linux-gnu.tar.gz | tar xz
sudo mv cartog /usr/local/bin/