Codebase Indexer

•

Indexes Python, TypeScript, JavaScript, C#, and C++ codebases into a hybrid semantic search system, exposing query capabilities through a Model Context Protocol (MCP) server for AI assistants.

The Codebase Indexer is a sophisticated local code intelligence engine designed to enhance AI assistant interaction with code. Unlike naive indexers that chunk code arbitrarily, it uses tree-sitter to parse Abstract Syntax Tree (AST) symbols, embedding them at three distinct granularities with `BAAI/bge-code-v1` and storing them in FAISS for vector search and SQLite for structural relationships. This structured approach, combined with a three-tier RRF-fused index and a Retrieve-Traverse-Rerank pipeline, enables precise semantic search, call-graph expansion, and intelligent architectural analysis, all accessible via 11 AI-facing MCP tools tailored for deep code intelligence.

Características Principales

01Three-tier semantic embedding using `bge-code-v1` for multi-granularity search (surgical, component, architectural).
02Hybrid data storage with FAISS for vector search and SQLite for structural relationships and metadata.
03Implements a Retrieve-Traverse-Rerank (RTR) pipeline with call-graph expansion and optional cross-encoder reranking.
04AST-aware code parsing with tree-sitter for symbolic understanding across multiple languages.
05Exposes 11 AI-facing Model Context Protocol (MCP) tools for advanced code querying and analysis.
060 GitHub stars

Casos de Uso

01Perform semantic code searches to quickly find relevant code snippets and symbols.
02Analyze the blast radius of code changes and map callers, dependents, and parallel implementations.
03Investigate module communities, identify architectural 'god-objects', and visualize design structure matrices.