Local-first code graph for JS/TS
See your codebase as a constellation.
Astrograph indexes symbols, calls, imports, inheritance, and references into a local graph — then serves it to a fast CLI and to agents over MCP. Exact answers, fewer tokens, no grep loops.
$ astrograph context "how does auth refresh work?"
entry points
refreshSession
AuthProvider
included code
src/auth/session.ts
src/auth/AuthProvider.tsx
coverage 128/128 resolved
partial noWorks with your agents
- Claude Code
- Cursor
- Codex
- opencode
CLI
search · context · callers · impact · trace — scriptable, one-shot, pipeable.
MCP + skills
Agents query the graph over MCP instead of running broad grep/read loops.
Local & fast
A local SQLite graph, watcher-fresh. No API keys, nothing leaves your machine.
Why depth wins
Depth over breadth, on purpose.
One question, one command. The graph already did the exploration — these are real answers, not text matches.
$ astrograph callers useAccount
AccountMenu.tsx:14
useBilling.ts:22
dashboard/page.tsx:8
3 callers · resolved$ astrograph impact AuthProvider
App.tsx
routes/private.tsx
hooks/useSession.ts
12 symbols · depth 2$ astrograph status
nodes 2314 edges 11080
coverage 136/136 resolved
partial noGet started
Index your repo in one command.
$ astrograph init
indexing…
✓ 136 files · 2,314 symbols
.astrograph/graph.db ready