freshcrate
Skin:/
Home > MCP Servers > codedb

codedb

Zig code intelligence server and MCP toolset for AI agents. Fast tree, outline, symbol, search, read, edit, deps, snapshot, and remote GitHub repo queries.

Why this rank:Strong adoptionRecent releaseHealthy release cadence

Description

Zig code intelligence server and MCP toolset for AI agents. Fast tree, outline, symbol, search, read, edit, deps, snapshot, and remote GitHub repo queries.

README

codedb

ReleaseLicenseZig 0.15AlphaAsk DeepWiki

codedb

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

Structural indexing ยท Trigram search ยท Word index ยท Dependency graph ยท File watching ยท MCP + HTTP

Status ยท Install ยท Quick Start ยท MCP Tools ยท Benchmarks ยท Architecture ยท Data & Privacy ยท Building


Status

Alpha software โ€” API is stabilizing but may change

codedb works and is used daily in production AI workflows, but:

  • Language support โ€” Zig, Python, TypeScript/JavaScript, Rust, Go, PHP, Ruby, HCL, R, Dart/Flutter
  • No auth โ€” HTTP server binds to localhost only
  • Snapshot format may change between versions
  • MCP protocol is JSON-RPC 2.0 over stdio (stable)
What works today What's in progress
16 MCP tools for full codebase intelligence Deeper parser coverage and edge-case handling
Trigram v2: integer doc IDs, batch-accumulate, merge intersect Incremental segment-based indexing
538x faster than ripgrep on pre-indexed queries WASM target for Cloudflare Workers
O(1) inverted word index for identifier lookup Multi-project support
Structural outlines (functions, structs, imports) mmap-backed trigram index
Reverse dependency graph
Atomic line-range edits with version tracking
Auto-registration in Claude, Codex, Gemini, Cursor
Polling file watcher with filtered directory walker
Portable snapshot for instant MCP startup
Singleton MCP with PID lock + 10min idle timeout
Sensitive file blocking (.env, credentials, keys)
Codesigned + notarized macOS binaries
SHA256 checksum verification in installer
Cross-platform: macOS (ARM/x86), Linux (ARM/x86)

โšก Install

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, and Cursor.

Platform Binary Signed
macOS ARM64 (Apple Silicon) codedb-darwin-arm64 โœ… codesigned + notarized
macOS x86_64 (Intel) codedb-darwin-x86_64 โœ… codesigned + notarized
Linux ARM64 codedb-linux-arm64 โ€”
Linux x86_64 codedb-linux-x86_64 โ€”

Or install manually from GitHub Releases.


โšก Quick Start

As an MCP server (recommended)

After installing, codedb is automatically registered. Just open a project and the 12 MCP tools are available to your AI agent.

# Manual MCP start (auto-configured by install script)
codedb mcp /path/to/your/project

As an HTTP server

codedb serve /path/to/your/project
# listening on localhost:7719

CLI

codedb tree /path/to/project          # file tree with symbol counts
codedb outline src/main.zig           # symbols in a file
codedb find AgentRegistry             # find symbol definitions
codedb search "handleAuth"            # full-text search (trigram-accelerated)
codedb word Store                     # exact word lookup (inverted index, O(1))
codedb hot                            # recently modified files

๐Ÿ”ง MCP Tools

16 tools over the Model Context Protocol (JSON-RPC 2.0 over stdio):

Tool Description
codedb_tree Full file tree with language, line counts, symbol counts
codedb_outline Symbols in a file: functions, structs, imports, with line numbers
codedb_symbol Find where a symbol is defined across the codebase
codedb_search Trigram-accelerated full-text search (supports regex, scoped results)
codedb_word O(1) inverted index word lookup
codedb_hot Most recently modified files
codedb_deps Reverse dependency graph (which files import this file)
codedb_read Read file content (supports line ranges, hash-based caching)
codedb_edit Apply line-range edits (replace, insert, delete โ€” atomic writes)
codedb_changes Changed files since a sequence number
codedb_status Index status (file count, current sequence)
codedb_snapshot Full pre-rendered JSON snapshot of the codebase
codedb_bundle Batch multiple read-only queries in one call (max 20 ops)
codedb_remote Query any GitHub repo via cloud intelligence โ€” no local clone needed
codedb_projects List all locally indexed projects on this machine
codedb_index Index a local folder and create a codedb.snapshot

codedb_remote โ€” Cloud Intelligence

Query any public GitHub repo without cloning it. Powered by codedb.codegraff.com.

# Get the file tree of an external repo
codedb_remote repo="vercel/next.js" action="tree"

# Search for code in a dependency
codedb_remote repo="justrach/merjs" action="search" query="handleRequest"

# Get symbol outlines
codedb_remote repo="justrach/merjs" action="outline"

# Get repo metadata
codedb_remote repo="justrach/merjs" action="meta"

Actions: tree, outline, search, meta

Note: This tool calls codedb.codegraff.com via HTTPS. No API key required. The service must be available for this tool to work.

CLI Commands

Command Description
codedb tree Show file tree with language and symbol counts
codedb outline <path> List all symbols in a file
codedb find <name> Find where a symbol is defined
codedb search <query> Full-text search (trigram, case-insensitive)
codedb search --regex <pattern> Regex search
codedb word <identifier> Exact word lookup via inverted index
codedb hot Recently modified files
codedb snapshot Write codedb.snapshot to project root
codedb serve HTTP daemon on :7719
codedb mcp [path] JSON-RPC/MCP server over stdio
codedb update Self-update via install script
codedb nuke Uninstall codedb, remove caches/snapshots, and deregister MCP integrations
codedb --version Print version

Options: --no-telemetry (or set CODEDB_NO_TELEMETRY env var)

Example: agent explores a codebase

# 1. Get the file tree
curl localhost:7719/tree
# โ†’ src/main.zig      (zig, 55L, 4 symbols)
#   src/store.zig     (zig, 156L, 12 symbols)
#   src/agent.zig     (zig, 135L, 8 symbols)

# 2. Drill into a file
curl "localhost:7719/outline?path=src/store.zig"
# โ†’ L20: struct_def Store
#   L30: function init
#   L55: function recordSnapshot

# 3. Find a symbol across the codebase
curl "localhost:7719/symbol?name=AgentRegistry"
# โ†’ {"path":"src/agent.zig","line":30,"kind":"struct_def"}

# 4. Full-text search
curl "localhost:7719/search?q=handleAuth&max=10"

# 5. Check what changed
curl "localhost:7719/changes?since=42"

๐Ÿ“Š Benchmarks

Measured on Apple M4 Pro, 48GB RAM. MCP = pre-indexed warm queries (20 iterations avg). CLI/external tools include process startup (3 iterations avg). Ground truth verified against Python reference implementation.

Latency โ€” codedb MCP vs codedb CLI vs ast-grep vs ripgrep vs grep

codedb repo (20 files, 12.6k lines):

Query codedb MCP codedb CLI ast-grep ripgrep grep MCP speedup
File tree 0.04 ms 52.9 ms โ€” โ€” โ€” 1,253x vs CLI
Symbol search (init) 0.10 ms 54.1 ms 3.2 ms 6.3 ms 6.5 ms 549x vs CLI
Full-text search (allocator) 0.05 ms 60.7 ms 3.2 ms 5.3 ms 6.6 ms 1,340x vs CLI
Word index (self) 0.04 ms 59.7 ms n/a 7.2 ms 6.5 ms 1,404x vs CLI
Structural outline 0.05 ms 53.5 ms 3.1 ms โ€” 2.4 ms 1,143x vs CLI
Dependency graph 0.05 ms 2.2 ms n/a n/a n/a 45x vs CLI

merjs repo (100 files, 17.3k lines):

Query codedb MCP codedb CLI ast-grep ripgrep grep MCP speedup
File tree 0.05 ms 54.0 ms โ€” โ€” โ€” 1,173x vs CLI
Symbol search (init) 0.07 ms 54.4 ms 3.4 ms 6.3 ms 3.6 ms 758x vs CLI
Full-text search (allocator) 0.03 ms 54.1 ms 2.9 ms 5.1 ms 3.7 ms 1,554x vs CLI
Word index (self) 0.04 ms 54.7 ms n/a 6.3 ms 4.2 ms 1,518x vs CLI
Structural outline 0.04 ms 54.9 ms 3.4 ms โ€” 2.5 ms 1,243x vs CLI

rtk-ai/rtk repo (329 files) โ€” codedb vs rtk vs ripgrep vs grep:

Tool Search "agent" Speedup
codedb (pre-indexed) 0.065 ms baseline
rtk 37 ms 569x slower
ripgrep 45 ms 692x slower
grep 80 ms 1,231x slower

Token Efficiency

codedb returns structured, relevant results โ€” not raw line dumps. For AI agents, this means dramatically fewer tokens per query:

Repo codedb MCP ripgrep / grep Reduction
codedb (search allocator) ~20 tokens ~32,564 tokens 1,628x fewer
merjs (search allocator) ~20 tokens ~4,007 tokens 200x fewer

Indexing Speed

codedb v0.2.57 uses worker-local parallel scan with deterministic merge โ€” each worker builds its own partial index, then results are merged on the main thread:

Repo Files Cold start Per file vs v0.2.56
codedb 20 17 ms 0.85 ms โ€”
merjs 100 16 ms 0.16 ms โ€”
5,200 mixed files 5,200 310 ms 0.06 ms โ€”
openclaw/openclaw 6,315 346 ms 0.05 ms 10ร— faster

Indexes are built once on startup. After that, the file watcher keeps them updated incrementally (single-file re-index: <2ms). Queries never re-scan the filesystem. For repos >1000 files, file contents are released after indexing to save ~300-500MB.

Background Resource Usage (openclaw, 6,315 files, Apple M4 Pro)

Metric v0.2.56 v0.2.57 Delta
Steady-state RSS 1,867 MB 1,706 MB โˆ’161 MB
git subprocesses / min (idle) ~30 ~0 mtime-gated

The watcher now stats .git/HEAD mtime before forking git rev-parse HEAD. On an idle repo the subprocess never fires.

Why codedb is fast

  • MCP server indexes once on startup โ†’ all queries hit in-memory data structures (O(1) hash lookups)
  • CLI pays ~55ms process startup + full filesystem scan on every invocation
  • ast-grep re-parses all files through tree-sitter on every call (~3ms)
  • ripgrep/grep brute-force scan every file on every call (~5-7ms)
  • The MCP advantage: index once, query thousands of times at sub-millisecond latency

Feature Matrix

Feature codedb MCP codedb CLI ast-grep ripgrep grep ctags
Structural parsing โœ… โœ… โœ… โŒ โŒ โœ…
Trigram search index โœ… โœ… โŒ โŒ โŒ โŒ
Inverted word index โœ… โœ… โŒ โŒ โŒ โŒ
Dependency graph โœ… โœ… โŒ โŒ โŒ โŒ
Version tracking โœ… โœ… โŒ โŒ โŒ โŒ
Multi-agent locking โœ… โœ… โŒ โŒ โŒ โŒ
Pre-indexed (warm) โœ… โŒ โŒ โŒ โŒ โŒ
No process startup โœ… โŒ โŒ โŒ โŒ โŒ
MCP protocol โœ… โŒ โŒ โŒ โŒ โŒ
Full-text search โœ… โœ… โœ… โœ… โœ… โŒ
Atomic file edits โœ… โœ… โœ… โŒ โŒ โŒ
File watcher โœ… โœ… โŒ โŒ โŒ โŒ

codedb = tree-sitter + search index + dependency graph + agent runtime. Zero external dependencies. Pure Zig. Single binary.


๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  HTTP :7719 โ”‚     โ”‚  MCP stdio  โ”‚
โ”‚  server.zig โ”‚     โ”‚  mcp.zig    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ”‚                   โ”‚
       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
               โ”‚
    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚     Explorer        โ”‚
    โ”‚   explore.zig       โ”‚
    โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
    โ”‚  โ”‚ WordIndex      โ”‚  โ”‚
    โ”‚  โ”‚ TrigramIndex   โ”‚  โ”‚
    โ”‚  โ”‚ Outlines       โ”‚  โ”‚
    โ”‚  โ”‚ Contents       โ”‚  โ”‚
    โ”‚  โ”‚ DepGraph       โ”‚  โ”‚
    โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
               โ”‚
    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚      Store          โ”‚โ”€โ”€โ”€โ”€ data.log
    โ”‚    store.zig        โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
               โ”‚
    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚     Watcher         โ”‚ โ† polls every 2s
    โ”‚   watcher.zig       โ”‚
    โ”‚  (FilteredWalker)   โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

No SQLite. No dependencies. Purpose-built data model:

  • Explorer โ€” structural index engine. Parses Zig, Python, TypeScript/JavaScript, Rust, Go, PHP, Ruby, HCL, R, and Dart. Maintains outlines, trigram index, inverted word index, content cache, and dependency graph behind a single mutex.
  • Store โ€” append-only version log. Every mutation (snapshot, edit, delete) gets a monotonically increasing sequence number. Version history capped at 100 per file.
  • Watcher โ€” polling file watcher (2s interval). FilteredWalker prunes .git, node_modules, zig-cache, __pycache__, etc. before descending.
  • Agents โ€” first-class structs with cursors, heartbeats, and exclusive file locks. Stale agents reaped after 30s.

Threading Model

Thread Role
Main HTTP accept loop or MCP read loop
Watcher Polls filesystem every 2s via FilteredWalker
ISR Rebuilds snapshot when stale flag is set
Reap Cleans up stale agents every 5s
Per-connection HTTP server spawns a thread per connection

All threads share a shutdown: atomic.Value(bool) for graceful termination.


๐Ÿ”’ Data & Privacy

codedb collects anonymous usage telemetry to improve the tool. Telemetry is on by default โ€” written to ~/.codedb/telemetry.ndjson and periodically synced to the codedb analytics endpoint. No source code, file contents, file paths, or search queries are collected โ€” only aggregate tool call counts, latency, and startup stats.

Location Contents Purpose
~/.codedb/projects/<hash>/ Trigram index, frequency table, data log Persistent index cache
~/.codedb/telemetry.ndjson Aggregate tool calls and startup stats Local telemetry log
./codedb.snapshot File tree, outlines, content, frequency table Portable snapshot for instant MCP startup

Not stored: No source code is sent anywhere. No file contents, file paths, or search queries are collected in telemetry. Sensitive files auto-excluded (.env*, credentials.json, secrets.*, .pem, .key, SSH keys, AWS configs).

To disable telemetry: set CODEDB_NO_TELEMETRY=1 or pass --no-telemetry.

To sync the local NDJSON file into Postgres for analysis or dashboards, use scripts/sync-telemetry.py with the schema in docs/telemetry/postgres-schema.sql. The data flow is documented in docs/telemetry.md.

codedb nuke                # uninstall binary, clear caches/snapshots, remove MCP registrations
rm -rf ~/.codedb/          # cache-only cleanup if you want to keep the binary installed
rm -f codedb.snapshot      # remove snapshot from current project only

๐Ÿ”จ Building from Source

Requirements: Zig 0.15+

git clone https://github.com/justrach/codedb.git
cd codedb
zig build                              # debug build
zig build -Doptimize=ReleaseFast       # release build
zig build test                         # run tests
zig build bench                        # run benchmarks

Binary: zig-out/bin/codedb

Cross-compilation

zig build -Doptimize=ReleaseFast -Dtarget=x86_64-linux
zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux
zig build -Doptimize=ReleaseFast -Dtarget=x86_64-macos

Releasing

./release.sh 0.2.0              # build, codesign, notarize, upload to GitHub Releases
./release.sh 0.2.0 --dry-run    # preview without executing

License

See LICENSE for details.

Release History

VersionChangesUrgencyDate
v0.2.5824A deterministic **code-graph** layer, a ~3ร— faster cold path, and a warm CLI โ€” plus a batch of correctness fixes from a great community audit. ## โšก Performance - **Snapshot load ~3ร—** โ€” 380 โ†’ 125 ms on ~39k files; peak RSS **795 โ†’ 457 MB** (โˆ’338 MB). mmap'd content section, borrowed strings, zero-copy `ContentCache`, parallel freshness check, no re-hashing on load. (#524) - **Cold index: RSS 4.3 GB โ†’ 1 GB, wall-time ~6.5ร—** โ€” worker-local parallel scan. (#519) - **Parallel WordIndex build** โ€” cHigh6/4/2026
v0.2.5823`0.2.5823` is an MCP compatibility hotfix for direct `tools/call` requests. It ships the issue #512 fix and adds a wire-level stdio backtest so future releases catch this exact client-wrapper failure mode. ### MCP direct tool-call compatibility - **#512 โ€” direct calls no longer drop inline args when `arguments` is empty.** Some clients send canonical MCP `params.name` and `params.arguments`, but a wrapper layer may also emit `arguments: {}` while placing the real fields inline on `paramsHigh5/29/2026
v0.2.5820## v0.2.5820 Version bump โ€” identical to v0.2.5819 except the version string is `0.2.5820` so `codedb update` correctly sees it as newer than `0.2.58181`. See [v0.2.5819 release notes](https://github.com/justrach/codedb/releases/tag/v0.2.5819) for the full changelog (telemetry fix, installer hooks, Linux cross-compile fix).High5/26/2026
v0.2.5817## TL;DR v0.2.5817 ships **reader.md** โ€” a hash-stable, agent-authored codebase map that codedb auto-prepends to `codedb_context` responses. Plus the perf + security bundle from v0.2.5816 (which never got tagged), plus three new `codedb_context` enhancements (inline symbol bodies, callers section, task-length gate). **Highlights vs the released v0.2.5815:** | | v0.2.5815 | v0.2.5817 | |---|---|---| | `Suspense` regex p50 | 2.82 ms | **0.18 ms** (15.6ร— faster) | | `useState` regex p99 | 16.57 High5/21/2026
v0.2.5812Two papercuts surfaced verifying v0.2.5811. ## Explore (#445) - **`codedb_deps depends_on` no longer dupes multi-aliased imports.** A file aliasing the same dep across multiple `@import` sites previously appeared once per `@import` in the forward edges โ€” `src/main.zig` in this very repo showed `index.zig` 5x and `mcp.zig` 2x. `rebuildDepsFor` now dedupes via a `StringHashMap(void)` before calling `setDeps`. The reverse index (`getImportedBy`) was already correct. ## MCP - **`codedb_find` desHigh5/7/2026
v0.2.5807## What's new Single bundled release covering six issues across `searchContent`, `searchInContent`, and `codedb_callers`. Headline: a multi-signal reranker for `searchContent` plus a P0 crash fix in `searchInContent`. Closes #425, #426, #427, #429, #430, #431. ### Reliability - **`searchInContent`: bounds-check fixes a P0 crash (#431).** When the query was longer than any indexed file's content, `content.len - query.len + 1` underflowed `usize` and the binary aborted with integer-overflow paHigh5/6/2026
v0.2.579## v0.2.579 โ€” MCP root resolution, wiki.codes remote, language coverage Big thanks to @dantetemplar, @demfabris, @destroyer22719, and @GrowtricsAI for filing issues and testing โ€” this release closes a pile of them. --- ### Works with Cursor, Windsurf, Devin, Kilo Code, Claude Code, and Codex Install once, works everywhere: ```sh curl -fsSL https://codedb.codegraff.com/install.sh | sh ``` The installer auto-registers codedb as an MCP server in Claude Code, Codex, Cursor, and Gemini CLI. ForHigh4/30/2026
v0.2.572# codedb v0.2.572 ๐Ÿš€ **Performance. Memory. Correctness.** This release ships 18 performance and correctness improvements, 11 bug fixes, and massive memory reductions for large repos. Initial indexing is now **10ร— faster**, cold RSS is down **83%**, and warm reopen is **92% leaner**. --- ## ๐ŸŽฏ Highlights ### 10ร— Faster Initial Indexing Worker-local parallel scan with deterministic merge: each thread builds its own partial `Explorer`, then results are merged with no lock contention. Shuts doHigh4/14/2026
v0.2.57# codedb v0.2.57 ๐Ÿš€ **Performance. Memory. Correctness.** This release ships 18 performance and correctness improvements, 11 bug fixes, and massive memory reductions for large repos. Initial indexing is now **10ร— faster**, cold RSS is down **83%**, and warm reopen is **92% leaner**. --- ## ๐ŸŽฏ Highlights ### 10ร— Faster Initial Indexing Worker-local parallel scan with deterministic merge: each thread builds its own partial `Explorer`, then results are merged with no lock contention. Shuts dowHigh4/13/2026
v0.2.56## Hotfix - `install.sh` now resolves the latest version from GitHub Releases first and only falls back to `codedb.codegraff.com/latest.json` if GitHub is unavailable. - `codedb update` now uses the same GitHub-first lookup, which avoids stale latest-version metadata during post-release propagation windows. - The install worker reduces `/latest.json` cache time from 5 minutes to 1 minute and bumps its fallback version to `0.2.56`. ## Validation - `codedb-darwin-arm64` was signed on this Mac aHigh4/9/2026
v0.2.55## What's New `0.2.55` is a performance and reliability release focused on warm reopen, MCP startup behavior, search quality, parser correctness, and release/install safety. ### Highlights - Warm snapshot reopen now restores persisted outline/state directly, reuses trigram sidecars, and skips redundant `word.index` rewrites. This closes #220. - `codedb_query` adds a composable MCP search pipeline for multi-step retrieval in one tool call. This closes #168. - Search ranking now learns from queMedium4/9/2026
v0.2.54## What's New ### mmap-backed trigram index (#164) - Memory-maps `trigram.postings` and `trigram.lookup` instead of heap HashMaps - O(log n) binary search on sorted lookup table, ~0 RSS (OS page cache) - 121MB RSS reduction on 5k-file repos ### Fuzzy file search โ€” `codedb_find` (#163) - Smith-Waterman scoring with affine gap penalties โ€” handles transpositions, typos, missing chars - **100% top-3 recall**, 93.9% top-1 across 82 test queries - Multi-part queries: `"snapshot json"` matches both pHigh4/6/2026
v0.2.53## v0.2.53 โ€” Trigram v2, /update page, README refresh ### Trigram Index v2 - **Integer doc IDs** โ€” u32 postings instead of string HashMaps per trigram - **Batch-accumulate** โ€” local HashMap per file, bulk-insert to global index - **Skip whitespace trigrams** โ€” 12% of occurrences are pure whitespace, terrible filters - **Sorted merge intersection** โ€” O(n+m) with zero allocations **Result:** 36% faster indexing, 59% less CPU, 63% faster dense queries. ### Benchmark: codedb vs rtk vs ripgrep vs Medium4/5/2026
v0.2.52## v0.2.52 โ€” Installer Fix + Correct Linux Binary ### Fixes - **Installer broken** (#138) โ€” version grep now handles whitespace in JSON, added user-agent to avoid Cloudflare blocking - **Correct Linux binary** (#139) โ€” v0.2.5 shipped macOS binary as Linux; this release has verified ELF x86_64 - **Checksum verification** (#120) โ€” installer now verifies SHA256 after download - **isPathSafe hardened** (#122) โ€” blocks null bytes and backslash separators - **Memory optimizations restored** โ€” releaseMedium4/5/2026
v0.2.5## v0.2.5 (hotfix) **Fixes #139** โ€” v0.2.5 originally shipped a macOS ARM64 binary as `codedb-linux-x86_64`. This release contains the correct ELF x86_64 Linux binary. ### All changes from v0.2.4 โ†’ v0.2.5 **Memory:** Release file contents after indexing for repos >1000 files (~300-500MB saved). Zero-copy ContentRef for search. (#128 @burningportra, #129 @unliftedq) **Parser:** Python docstrings (#111), TS block comments (#113), import aliases (#112, #114) โ€” @sanderdewijs **Reliability:** SiMedium4/4/2026
v0.2.4## What's New in v0.2.4 ### Security - **Sensitive file blocking** โ€” `codedb_read` and `codedb_edit` now block access to `.env`, `credentials.json`, `id_rsa`, `.pem`/`.key` files via MCP tools (#93, reported by @whygee-dev) - **SSRF fix in `codedb_remote`** โ€” repo/action params validated against whitelist, preventing path injection (#93) - **Telemetry hardening** โ€” replaced shell-interpolated curl with argv-based exec, added mutex for ring buffer race condition (#124) ### Performance - **OOM fMedium4/2/2026
v0.2.3## What's new ### New commands - **`codedb update`** โ€” self-update by re-running the install script - **`codedb --version`** / **`codedb -v`** โ€” prints version without needing a project root - **`codedb --help`** โ€” early exit help ### Security - **Sensitive files excluded from live indexing** โ€” `.env*`, `credentials.json`, `secrets.*`, `.pem`, `.key`, SSH keys, AWS configs are now excluded from both indexing AND snapshots. Previously only snapshots filtered these. (#97, closes #96) - **TelemetMedium4/2/2026
v0.2.2## What's new ### Bug fixes - **Linux stack overflow fixed** โ€” 64MB thread trampoline prevents segfault on startup (#88, closes #84) - **Conditional codesign** โ€” `codesign` only runs on macOS, no more build failures on Linux (#88) - **CLI `deps` command** โ€” uses correct JSON field (`imported_by`) (#91) - **CLI root mismatch** โ€” detects when daemon serves wrong repo and restarts (#91) ### New features - **`codedb-cli`** โ€” thin bash CLI client for the codedb HTTP daemon - **`--help` / `--versionMedium4/1/2026
v0.2.1## Changes - fix: reject filesystem root (/) as MCP project root (Cursor startup fix) - feat: add .claude to watcher skip list - feat: 16 MCP tools (added bundle, remote, projects, index) - feat: BSD-3 license with derivative optimization clause - feat: website redesign with real benchmarks from BENCHMARK.md - feat: privacy page - rename: codedb2 โ†’ codedb everywhere ## Benchmarks (openclaw, 7,364 files, 128MB) | Tool | Latency | vs raw tools | |---|---|---| | codedb_status | 0.1ms | - | | codMedium4/1/2026
v0.2.0codedb v0.2.0 ## Install ``` curl -fsSL https://codedb.codegraff.com/install.sh | sh ``` ## Assets | Platform | Asset | |----------|-------| | macOS ARM64 (Apple Silicon) | `codedb-darwin-arm64` | | macOS x86_64 (Intel) | `codedb-darwin-x86_64` | | Linux ARM64 | `codedb-linux-arm64` | | Linux x86_64 | `codedb-linux-x86_64` | Medium3/31/2026
v0.1.0codedb linux binaryMedium3/24/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

vibe-agentsCoordinate AI agents to break down tasks, plan workflows, and delegate coding, design, and testing within OpenCode projects.main@2026-04-19
mftool-mcpMCP Server for publicly available real-time Indian Mutual Funds data0.2.0
Deepagent-research-context-engineering๐Ÿ” Accelerate research using a Multi Agent System for efficient context engineering with DeepAgent and LangChain's library.main@2026-06-05
pattern8Enforce zero-trust rules for AI agents to prevent hallucinations, unsafe actions, and policy bypassesmain@2026-06-05
@chiragdarji/agent-doctorSemantic health check for AI agent instruction filesv2

More in MCP Servers

AstrBotAgentic IM Chatbot infrastructure that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. โœจ
agentscopeBuild and run agents you can see, understand and trust.
claude-plugins-officialOfficial, Anthropic-managed directory of high quality Claude Code Plugins.
langchain4jLangChain4j is an open-source Java library that simplifies the integration of LLMs into Java applications through a unified API, providing access to popular LLMs and vector databases. It makes impleme