---
title: "Open-Source codedb Indexes Your Entire Repo in Memory Under 2ms"
subtitle: "An open-source Zig binary indexes your repo into in-memory structures and exposes 21 MCP tools so coding agents skip the ripgrep spawn."
url: "https://alphasignal.ai/news/open-source-codedb-indexes-your-entire-repo-in-memory-under-2ms"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-05-26T16:20:51.000Z"
updated: "2026-08-22T03:56:19.011Z"
type: "Repo"
topics:
  - "Agents"
  - "Development"
subtopics:
  - "Mcp"
  - "Tool Use"
  - "Code Agents"
  - "Code Agents"
upvotes: 1038
source_url: "https://github.com/justrach/codedb"
comments: 0
truncated: true
---

# Open-Source codedb Indexes Your Entire Repo in Memory Under 2ms

> An open-source Zig binary indexes your repo into in-memory structures and exposes 21 MCP tools so coding agents skip the ripgrep spawn.

A single-binary code intelligence server written in Zig has been quietly climbing GitHub, and it is worth a look if your agents spend most of their tool budget shelling out to `ripgrep`. The project, [justrach/codedb](https://github.com/justrach/codedb), is an open source Model Context Protocol server that indexes your repository into in-memory structures on startup, then serves structural queries directly to Claude Code, Cursor, Codex, and other MCP clients without touching the filesystem again.

The pitch on the repo is blunt: [codedb is a context engine](https://codegraff.com/blog/codedb-code-intelligence), with a job to feed agents fast structural search, symbols, callers, dependencies, and outlines, while handing editing back to your native tools. A fallback `codedb_edit` tool exists, but the design intent is that other clients keep doing the writing.

## What ships in the binary

codedb is a single Zig executable with zero external dependencies, combining tree-sitter parsing, a search index, a dependency graph, and an agent runtime. No SQLite, no embedded database, no Python bridge. The install path is a curl one-liner that downloads the binary for your platform and auto-registers codedb as an MCP server in Claude Code, Codex, Gemini CLI, Cursor, Windsurf, and Devin, or you can pull it through npm as the

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [justrach/codedb on GitHub](https://github.com/justrach/codedb)
- [Why codedb feels instant for agents](https://codegraff.com/blog/codedb-code-intelligence)
- [codedeebee on npm](https://www.npmjs.com/package/codedeebee)
