Code intelligence server
469x faster.
92x fewer bytes.
For AI agents.
Pre-indexed MCP server. 0.2ms word lookups. 3.9ms symbol search. Reverse deps in 1.3ms. 92x less data sent to your LLM. Pure Zig, zero dependencies.
$ curl -fsSL https://codedb.codegraff.com/install.sh | bash
Get started GitHub

### Query Latency: codedb MCP vs everything else

Word lookup
0.2ms
O(1) inverted index on 7,364 files
codedb word 0.2 ms
grep (raw) 65 ms
find symbol (raw) 763 ms
Cold start
2.9s
7,364 files / 128MB
Deps lookup
92x
fewer bytes than raw
Symbol find
200x
faster than grep
Edit workflow
4x
fewer bytes end-to-end
16 MCP tools
Everything an agent needs
codedb_tree File tree with symbol counts
codedb_outline Functions, structs, imports
codedb_symbol Find definitions across codebase
codedb_search Trigram-accelerated full-text
codedb_word O(1) inverted word index
codedb_hot Recently modified files
codedb_deps Reverse dependency graph
codedb_read Read file content
codedb_edit Atomic line-range edits
codedb_changes Changed files since sequence
codedb_status Index status and health
codedb_snapshot Full codebase JSON snapshot
codedb_bundle Batch multiple queries in one call
codedb_remote Query indexed public repos via api.wiki.codes
codedb_projects List all indexed local projects
codedb_index Index a new local folder
Why codedb
Index once, query forever

### Trigram search

Pre-built index. No filesystem scan per query.

### Structural parsing

Functions, structs, imports with line numbers.

### Dependency graph

Reverse import tracking across all files.

### Word index

O(1) hash lookup for exact identifiers.

### File watcher

Re-indexes changed files in under 2ms.

### Multi-agent

File locking and heartbeats. Safe concurrent access.

### Zero dependencies

Pure Zig. Single binary. macOS + Linux.

### Snapshots

Instant MCP startup. No re-indexing on restart.

Benchmarks
Sub-millisecond, every query

### Speed: codedb vs grep/find

### Bytes sent to LLM: codedb vs raw

See full benchmarks →
Give your agent a brain
One command. Auto-registers in Claude Code, Codex, Gemini CLI, and Cursor.
$ curl -fsSL https://codedb.codegraff.com/install.sh | bash
Quick start guide GitHub

codedb · code intelligence for AI agents · GitHub