CodeIndex

•
2
•

Indexes local repositories for fast full-text, symbol, dependency, and inspection queries, accessible via CLI, MCP server, and read-only LSP.

CodeIndex (cdidx) is a local-first code indexing and retrieval backend designed to streamline repeated code investigations. It builds a persistent SQLite index of a repository, enabling humans, scripts, and AI agents to execute swift queries without the overhead of repeated file rescans. Unlike one-off string hunting tools or IDE-specific indices, CodeIndex offers structured results, incremental refreshing, and explicit interfaces (CLI, MCP, LSP) for integration across various development workflows, making it ideal for terminal-based operations, CI/CD, and AI-driven code analysis.

Key Features

01Local-first SQLite FTS5 index for rapid code search
02MCP server for AI agent integration (e.g., Claude Code, Copilot)
03Incremental indexing and validation for updated repositories
04Read-only LSP shim for editor-native code navigation
052 GitHub stars
06CLI for full-text, symbol, definition, and reference queries

Use Cases

01Accelerating repeated repository investigations and code understanding
02Providing AI coding agents with relevant, indexed code context
03Enabling fast code navigation and lookup in editors via LSP