Code Search
Performs hybrid semantic and lexical code search, offering persistent per-project indexes and source-backed evidence for verifiable claims.
This tool provides a powerful hybrid code search solution, combining vector search and BM25 over structure-aware chunks. Unlike typical code search tools that return mere snippets, it can optionally rerank results with an LLM and return precise evidence references bound to an exact source revision and index generation. This ensures that an agent can definitively show the origin of an answer, as the server refuses to emit evidence if the underlying source code no longer matches the indexed version, preventing stale information from being presented.
Key Features
01Hybrid semantic (vector) and lexical (BM25) search with optional LLM reranking.
02Generation-bound, immutable evidence IDs for exact source lines, linked to repository, revision, and index generation.
03Persistent per-project indexes with Merkle-based incremental updates, background indexing, and source identity checks.
04Structure-aware chunking for 17 programming languages and Markdown, supporting bounded adjacent-chunk merging.
05Flexible embedding options: cloud providers (Voyage, OpenAI, Jina) or a fully local model stack with no API keys required.
060 GitHub stars
Use Cases
01Retrieving verifiable evidence for claims about specific code lines or functions.
02Conceptual discovery of code implementations using natural language queries.
03Finding similar code implementations or localizing issues at a file level.