About Codedb
codedb is an open source code intelligence server for AI coding agents, built in Zig by the Codegraff team and exposed over the Model Context Protocol. Instead of an agent shelling out to text search and reading whole files for every query, codedb indexes a repository once at startup and answers structural questions from memory: where a symbol is defined, who calls it, what a file contains and how modules depend on each other. It is a context engine only and has no edit capability; the coding client makes changes with its own tools.
It is aimed at developers who run agents on large repositories and want faster lookups and less token spend on unstructured search output. The server keeps five in memory indexes covering outlines, an inverted word index for identifier lookup, a trigram index for text search, a reverse dependency graph and a file content cache. A background watcher checks modification times and content hashes every two seconds so indexes stay current without full rescans. Tools include focused context retrieval, symbol explanation with callers, call path tracing between symbols and directory browsing. The installer registers codedb automatically with clients such as Claude Code, Codex, Gemini CLI, Cursor, Windsurf and Devin, and it also installs through npm under the package name codedeebee.
codedb is free and released under the BSD 3 Clause license. No paid plan is published for it.
One privacy detail is worth knowing: structural search runs locally, but the default hybrid retrieval also uses hosted embeddings. A local only semantic mode is available for teams that cannot send code excerpts off the machine.