codedb

Code intelligence server for AI agents. Zig core. MCP native. Zero dependencies.

Source repo
justrach/codedb
Stars
★ 1.4k
Last updated
3d ago v0.2.5866
FARS reviewed
Nov 08, 2026 +3 new
License
BSD-3-Clause
Primary language
Zig

At a glance

How it runs
MCP serverCLISelf-hosted service
Works with
Portable with changesChatGPT · Codex · Claude Code · Claude.ai · OpenAI API · Claude API
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
Shell / CLILocal filesystem
Typical use
A developer coding in Claude Code or Cursor wants to quickly locate a symbol definition or its callers; codedb provides responses in under a millisecond.
Not a fit if
  • Teams needing remote or shared deployment: localhost-only, no auth
  • Users wanting built-in code editing: codedb has no edit tool
  • Privacy-sensitive teams unwilling to disable telemetry, which is on by default
Website
codegraff.com ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-30latest release v0.2.5866 (2026-12-01)
Source review
63/100 · Some gaps

What does this agent do, and when should you use it?

codedb is a code intelligence server for AI agents, built in Zig with native MCP support. It provides structural indexing, trigram search, word index, dependency graph, and file watching capabilities. Through 20+ MCP tools and an HTTP API, it offers fast, context-rich code queries, but does not have editing capabilities, leaving editing to the client's native tools. Its unique advantage is indexing performance: pre-indexed queries can be up to 538x faster than ripgrep, and index building is extremely fast (5200 files in ~310ms cold start). It supports multiple languages including Zig, C/C++, Python, TypeScript/JavaScript, Rust, Go, and more, with a local-first privacy approach.

codedb indexes project code and provides efficient queries to AI agents. On startup, it parses the codebase, building structural outlines, trigram full-text indexes, inverted word indexes, and dependency graphs, and continuously watches for file changes to incrementally update indexes. It exposes tools via the MCP protocol (stdio) or HTTP API (localhost:7719), such as codedb_tree (file tree), codedb_outline (symbols list), codedb_search (full-text search), codedb_word (O(1) word lookup), codedb_callers (callers), codedb_deps (dependency graph), and codedb_context (task composer). Agents can call these tools to explore code without scanning the filesystem, saving time and tokens.

  1. A developer coding in Claude Code or Cursor wants to quickly locate a symbol definition or its callers; codedb provides responses in under a millisecond.
  2. An AI agent performing refactoring on a large codebase needs to understand dependencies; codedb's deps tool provides a complete graph.
  3. Searching for a specific string (like 'handleAuth') without full file scans; codedb's trigram search accelerates the query.
  4. When needing to understand project structure, codedb's tree and outline tools generate structure with symbol counts.
  5. For indexing multiple projects once and then querying frequently (e.g., in CI or local development), codedb's pre-indexed queries minimize latency.
  6. For exploring public GitHub repos remotely, use the DeepWiki integration's remote MCP tools (read_wiki_structure, ask_question).

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • curl -fsSL https://codedb.codegraff.com/install.sh | bash
  • irm https://raw.githubusercontent.com/justrach/codedb/v0.2.5838/install/install.ps1 | iex
  • npx -y codedeebee mcp
  • npm install -g codedeebee
Install notes cover
Windows · macOS · Linux

How do you install or deploy this agent?

macOS/Linux install:

curl -fsSL https://codedb.codegraff.com/install.sh | bash

This auto-registers MCP servers in Claude Code, Codex, Gemini CLI, Cursor, Windsurf, and Devin. On Windows, run in PowerShell:

irm https://raw.githubusercontent.com/justrach/codedb/v0.2.5838/install/install.ps1 | iex

Alternatively, use npm: npx -y codedeebee mcp or npm install -g codedeebee. Network access is required to download binaries.

How do you use this agent?

Start as an MCP server:

codedb mcp /path/to/your/project

Or as an HTTP server:

codedb serve /path/to/your/project

Then call tools via MCP client or HTTP, for example:

curl localhost:7719/tree
curl localhost:7719/symbol?name=AgentRegistry
curl localhost:7719/search?q=handleAuth&max=10

Use codedb --version to check version, disable telemetry with CODEDB_NO_TELEMETRY=1 or --no-telemetry.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

What are this agent's strengths and limitations?

Pros
  • Extremely fast queries: pre-indexed queries are 538x faster than ripgrep with sub-millisecond latency
  • Zero runtime dependencies, single binary, cross-platform support for macOS/Linux/Windows
  • Built-in sensitive file filtering (.env, credentials, keys) and local-first data privacy
  • Auto-registers MCP servers for mainstream AI tools (Claude Code, Codex, Cursor, etc.)
  • Portable snapshot for instant MCP server startup
Limitations
  • Alpha status: API may change, snapshot format may not be compatible
  • Binds to localhost only, no authentication, not suitable for remote deployment
  • Some languages have only lightweight outline support, not full parsing
  • No editing capability, requires integration with client's native edit tools
  • Telemetry is on by default and must be explicitly disabled

How does this agent compare with similar options?

Compared to ast-grep, ripgrep, and grep, codedb is significantly faster in pre-indexed scenarios and offers unique features like structural parsing, dependency graph, and MCP protocol. Compared to ctags, codedb provides more indexing features.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
codedb This agent 63 · Some gaps MCP serverFree ★ 1.4k 3d ago Zig ChatGPT · Codex · Claude Code · Claude.ai · OpenAI API · Claude API
Empryo 57 · Major gaps CLIFree + model costs ★ 1.6k 15d ago TypeScript OpenAI API · Claude API
CodeSeek 55 · Major gaps CLIFree + model costs ★ 764 17d ago Rust Codex · Claude Code
bbarit-oss 57 · Major gaps CLIFree + model costs ★ 151 4mo ago Rust ChatGPT · Codex · Claude Code · OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
63/ 100 5-point scale 3.2 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 3 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 14/29
Reliability 6/14
Adaptability 15/18
Convention 14/18
Effectiveness 10/13
Verifiability 4/8
Why each dimension lost points
Trust14 / 29 · 2.4/5

The README defines codedb as a code discovery and context tool with no edit capability. It discloses that default hybrid retrieval uses hosted embeddings and describes a local-only option, supporting reasonably clear data-flow transparency. It mentions local indexing, privacy metadata, and review expectations for sensitive-file filtering, but this packet does not include implementation evidence establishing the filtering scope or transmission handling, so sensitive-data handling earns 1. Installation downloads a binary and writes client configuration, and can register remote DeepWiki; checksums, opt-outs, and some persistent controls are documented, but the evidence does not show per-action confirmation or complete reversal paths, limiting confirmation, external-effects, and rollback scores. The no-dependency claim and checksum workflow support a score of 2 for dependency security. The license and copyright holder are explicit, but publisher identity is unknown, so attribution is not full marks.

Reliability6 / 14 · 2.1/5

The README describes parsers, indexing, and watcher behavior, while disclosing Alpha status, experimental lazy startup, and platform differences. However, the sampled AGENTS.md and CLAUDE.md describe different Zig versions, and the documentation cannot be checked against implementation here, so self-consistency earns 1. The project claims no runtime dependencies and documents multi-platform binaries with checksums, which adequately addresses ordinary availability. This packet does not show failure-response implementation details, so failure messages earn 1.

Adaptability15 / 18 · 4.2/5

The README identifies coding agents and MCP clients as its audience and provides task scenarios, client setup, and multi-platform installation. Tool profiles and local versus hosted semantic retrieval support different needs. The product boundary is clear: it supplies context and does not edit code, though tool counts, default exposure rules, and invocation paths are spread across the documentation, so boundaries and trigger precision are not full marks. Concrete guidance covers macOS, Linux, Windows, multiple MCP clients, and local or hosted retrieval, earning 3 for environment fit.

Convention14 / 18 · 3.9/5

The README organizes installation, quick start, tools, benchmarks, privacy, and architecture, with links to CLI, MCP, architecture, and platform documentation. Installation, updates, the Windows npm limitation, and checksum guidance are specific. The license text is complete. Alpha status and several platform, watcher, and npm limitations are disclosed. The sampled material gives limited release history, while naming and tool profiles are listed but fairly complex; examples and FAQ coverage are partial. The copyright holder is named, but a clear maintenance team or support/update responsibility is not established, so maintenance responsibility earns 1.

Effectiveness10 / 13 · 3.8/5

The tools cover trees, symbols, call paths, dependencies, search, and token-budgeted context, with JSON-format support and examples, making their intended outputs useful; output quality cannot be verified from this packet. Indexed structural discovery has a clear value for coding-agent workflows. Installation, persistent indexing, and hosted embeddings carry setup, resource, and privacy costs; the documentation discloses some costs but does not provide a complete end-to-end cost assessment, so cost-benefit earns 2.

Verifiability4 / 8 · 2.5/5

The README gives concrete tool behavior, installation instructions, platform claims, retrieval modes, and benchmark figures, and links to architecture, benchmark, and issue documentation, providing some claim traceability. The packet lacks the relevant implementation source and benchmark artifacts, and AGENTS.md and CLAUDE.md do not provide useful cross-checks of product behavior. The documentation labels Alpha status and historical measurements and separates some limits from claims, but many performance and security statements remain README assertions, so these criteria are not full marks.

Risks and how to mitigate them
  • Default hybrid retrieval uses hosted embeddings; review the complete data-flow and privacy documentation before using it with private code, and choose semantic=local when appropriate.
  • Install scripts download binaries and modify MCP client configuration; review the scripts and verify release checksums as the README advises.
  • The project is labeled Alpha. The packet does not include implementation source, so sensitive-file filtering, failure handling, and benchmark results cannot be independently verified.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 21287078af4c New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/codedb.svg)](https://followagents.com/en/agents/codedb)
<a href="https://followagents.com/en/agents/codedb"><img src="https://followagents.com/badge/codedb.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.2.5866 CodeDB 0.2.5866 — dependency cache memory fix
    Release notes excerpt
    CodeDB 0.2.5866 This patch fixes runaway memory use when a project populates a dependency cache inside its checkout. CodeDB skips directories with a valid CACHEDIR.TAG during indexing and watcher updates. It checks saved snapshots and search indexes when reopening the project, so an old index cannot bring excluded cache paths back into search. A successful cold CLI query now starts its warm daemon after the foreground query completes. This release also fixes directory syncing when persisting a semantic index on Linux. …
    View on GitHub ↗
  2. v0.2.5864
    Release notes excerpt
    CodeDB 0.2.5864 Formalizes OpenPuffer and CodeDB memory-ownership and search/caching kernels in Lean 4 (lean-proofs/), eliminates mid-operation OOM memory leaks across HNSW insertion and search result builders, and cuts codedb_search latency by 40.4% (13.6µs → 8.1µs) and codedb_context latency by 58.0% (384.8µs → 161.8µs). Lean 4 Formal Verification Suite (lean-proofs/) Adds a self-contained Lean 4 proof suite (./lean-proofs/verify.sh, 373 finite state-cube checks via by native_decide and universal theorems with zero sorrys): …
    View on GitHub ↗
  3. v0.2.5863 CodeDB 0.2.5863
    Release notes excerpt
    CodeDB 0.2.5863 Reuses chunk embeddings across codedb semantic-index builds, tolerates stale ANN sidecars during codedb context queries, and prevents in-root codedb.snapshot files from self-indexing. Incremental semantic-index and crash-safe checkpointing (#775) codedb semantic-index now persists a local binary embedding cache (semantic-embeddings-v1.cache, 0600 permissions) in the project data directory alongside the HNSW sidecar: - Each chunk card is keyed by a 128-bit CardKey over (path, line_start, line_end, card_text). …
    View on GitHub ↗

FAQ

Does codedb collect my source code?
No. Telemetry only collects aggregate tool call counts, latency, and startup stats; no source code, file contents, file paths, or search queries are collected.
Can I use npx on Windows?
Not currently; use the PowerShell installer or wait for a future npm release.
Does codedb support editing code?
No. codedb is a context engine and only provides query capabilities; editing must be done with the client's native tools.
How do I disable the Claude Code hook?
Set the environment variable CODEDB_NO_HOOKS=1 (for that run only), or permanently by installing with CODEDB_PERSIST_NO_HOOKS=1, or by deleting the hook entry from ~/.claude/settings.json.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts