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.
主要功能
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
使用案例
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