CodeAtlas
A code map, fix loop and live dashboard for coding agents. Tree-sitter, no LLM in the loop, updates on every save.
Works with Claude Code, Codex and Cursor (any MCP client).
Your agent just opened a 216,000-line monorepo. It needs one function, its callers and the test that covers it.
It should not read 30,000 tokens of files to find them.
CodeAtlas indexes a repository with tree-sitter into a symbol graph (functions, classes, references, imports,
env keys, SQL tables, patterns) and exposes it over MCP as compact, path:line-anchored answers. An agent asks
task_context("fix expired refresh tokens") and gets the five symbols that matter, their callers, the test that
exercises them and the config they read, in ~3k tokens instead of ~30k. The index updates itself within a second of
every save, and a localhost React dashboard shows the map, the SNIPE board and agent activity live.
backend/src/services/auth.ts [typescript, 764 lines, 25 symbols]
f async function signup(db, input) :49-119 ←2f {async_await,closures,error_handling}
f async function login(db, input) :121-146 ←3f {async_await,error_handling}
f async function rotateRefreshToken(db, token, ...) :216-254 ←2f {async_await,error_handling}
imports (repo): services/errors.ts[unauthorized], security/tokens.ts[sha256, randomToken]
imported by (6): routes/auth.ts, routes/appleWeb.ts, tests/auth-lifecycle.test.ts, ...
Install
Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/5hihan/codeatlas/main/install.ps1 | iex
macOS / Linux
curl -fsSL https://raw.githubusercontent.com/5hihan/codeatlas/main/install.sh | sh
That installs uv if needed, the codeatlas command, and registers CodeAtlas with
every coding agent it finds on the machine (codeatlas init --global). Pass a platform to pick one:
... | sh -s -- codex, or install.ps1 codex. Re-run with --update / -Update to upgrade.
Then, in any repository (new or existing, empty is fine):
codeatlas init # writes agents + guidance, idempotent; the index builds itself when your agent starts here
Per platform
| Platform | How | Then |
|---|
| Claude Code | plugin codeatlas@codeatlas installed at user scope by the installer (or claude plugin marketplace add 5hihan/codeatlas + claude plugin install codeatlas@codeatlas) | /codeatlas:find <question>, /codeatlas:snipe, /codeatlas:review-changes, or let Claude delegate to the codeatlas-navigator, codeatlas-sniper, codeatlas-reviewer agents. A PreToolUse hook makes Claude actually use the index: in an indexed repo, built-in Grep/Glob and grep/rg/find in Bash are denied with the CodeAtlas tool to call instead (CODEATLAS_GUARD=off disables, =strict also redirects whole-file Read) |
| Codex | mcp_servers.codeatlas in ~/.codex/config.toml + skill in ~/.agents/skills/codeatlas | type $codeatlas (Codex uses $, not /); the MCP tools are available in every project |
| Cursor | codeatlas init cursor writes .cursor/mcp.json in the repo | the MCP tools appear in the agent |
| Anything else (MCP) | codeatlas serve --repo <path> over stdio | 36 tools, see below |
Manual install from a checkout: uv tool install . (or pipx install .), then codeatlas doctor.
Measured: the same agent, with and without CodeAtlas
Claude Code (claude -p, Sonnet) answering the same research questions on a 785-file, 216k-line TypeScript +
Kotlin + Swift monorepo, once with only Read/Grep/Glob and once with the CodeAtlas MCP server added. Numbers are
Claude's own usage report, summed over every turn, averaged over two runs each.