by justrach
Zig code intelligence server and MCP toolset for AI agents. Fast tree, outline, symbol, search, read, edit, deps, snapshot, and remote GitHub repo queries.
# Add to your Claude Code skills
git clone https://github.com/justrach/codedbcodedb is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by justrach. Zig code intelligence server and MCP toolset for AI agents. Fast tree, outline, symbol, search, read, edit, deps, snapshot, and remote GitHub repo queries. It has 1,411 GitHub stars.
codedb's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/justrach/codedb" and add it to your Claude Code skills directory (see the Installation section above).
codedb is primarily written in Zig. It is open-source under justrach on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh codedb against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Your agent has a task. Somewhere in your repository are the definition it needs, the caller that explains it, and the test that keeps it honest. codedb draws the map: focused source context, symbols, callers, outlines, and dependencies. Your coding client uses its own native tools to make the edit.
A context engine, not an editor. codedb has no edit capability. Use it with Graff, Claude Code, Codex, Gemini CLI, Cursor, Windsurf, Devin, oh-my-pi, Hermes, Qwen Code, ZCode, Trae, Cline, Copilot CLI, Antigravity, Kiro, OpenCode, or another MCP client.
| Ask your agent… | codedb helps it… |
|---|---|
| “Where does session refresh happen?” | Find relevant files and source excerpts with codedb_context |
| “Explain this function and who uses it.” | Read the definition and callers with codedb_explain |
| “How does this request reach the database?” | Trace a chain between symbols with codedb_callpath |
| “What's in this part of the repo?” | Browse with codedb_list_dir and inspect file outlines |
Structural search runs locally. Default hybrid retrieval also uses hosted
embeddings; choose semantic=local for local-only retrieval. See
Data & Privacy for what each mode sends and stores.
curl -fsSL https://codedb.codegraff.com/install.sh | bash
Downloads the binary for your platform and auto-registers codedb as an MCP server in Claude Code, Codex, Gemini CLI, Cursor, Windsurf, Devin, oh-my-pi, Hermes, Qwen Code, ZCode, Trae, Cline, Copilot CLI, Antigravity, Kiro, and OpenCode — each written directly and additively into that tool's config (only when the tool is present). The installer prints the exact codedb mcp command it registered plus hook setup pointers for Codex and Claude Code.
On Windows, run this command inside WSL only if you want the Linux binary inside WSL. For the native Windows binary, use PowerShell below.
Run in PowerShell:
irm https://raw.githubusercontent.com/justrach/codedb/v0.2.5841/install/install.ps1 | iex
Run the same command again to update codedb.
npx -y codedeebee mcp
Or install globally:
npm install -g codedeebee
codedb mcp
The npm package is named codedeebee (the bare codedb name is restricted on npm); it ships a thin launcher that downloads the matching native binary from GitHub Releases on postinstall and verifies the SHA256 checksum. The installed CLI is still called codedb.
The launcher already knows how to fetch codedb-windows-x86_64.exe, but the currently published codedeebee predates that release asset, so npx -y codedeebee mcp does not work on Windows yet — it becomes available with the next published release. Use the PowerShell installer above until then.
Useful for MCP clients (Claude Code, Cursor, opencode, Claude Desktop) that already use npx:
{
"codedb": {
"type": "local",
"command": ["npx", "-y", "codedeebee"],
"args": ["mcp"],
"enabled": true
}
}
On macOS or Linux, if codedb update fails on an older release, rerun the installer:
curl -fsSL https://codedb.codegraff.com/install.sh | bash
This replaces the codedb binary with the latest GitHub Release and keeps your existing MCP registrations, config, caches, and snapshots. Use this path for any release whose built-in updater cannot fetch release checksums.
Self-update works on native Windows from 0.2.5833 onward (codedb update). On older builds, rerun the PowerShell installer above to update or repair the binary.
Harness is a free desktop app for macOS and Windows that runs Graff, Claude Code, Codex, Cursor, and your other coding agents in one window, with each session's files, browser, and terminal beside it. The agents you run there use their usual MCP configuration, so the codedb registration from the installer carries over: install codedb once, and every agent in Harness can use the map.
An iPhone and iPad app for following and steering those sessions is in development. Join the waitlist.
Alpha: APIs and snapshot formats can change. The core speaks JSON-RPC 2.0 over stdio, with an optional localhost HTTP server.
agents.md / CLAUDE.md / GEMINI.md, .codedbrc, per-developer memory| Platform | Binary | Signed |
|---|---|---|
| macOS ARM64 (Apple Silicon) | codedb-darwin-arm64 |
✅ codesigned + notarized |
| macOS x86_64 (Intel) | codedb-darwin-x86_64 |
codesigned + notarized (0.2.5833+) |
| Linux ARM64 | codedb-linux-arm64 |
— |
| Linux x86_64 | codedb-linux-x86_64 |
— |
| Windows x86_64 | codedb-windows-x86_64.exe |
SHA256 verified automatically |
Or install manually from GitHub Releases. Always verify the binary against the attached checksums.sha256 before running it.
The macOS/Linux shell installer registers codedb automatically. For npm/npx installs on macOS/Linux and manual Windows installs, use the MCP configuration above or the client-specific examples in docs/mcp.md. Then open a project and codedb’s tools are available to your AI agent.
# Manual MCP start (auto-configured by install script)
codedb mcp /path/to/your/project
For clients that open many unused MCP sessions (for example, one per worktree),
try experimental lazy MCP startup with
CODEDB_LAZY_MCP=1. Indexing starts on the first code request; eager startup
remains the default.
codedb serve /path/to/your/project
# listening on localhost:7719
codedb tree /path/to/project # file tree with symbol counts
codedb outline src/main.zig # symbols in a file
codedb find AgentRegistry