Ken
Performs fast hybrid code search for agents, combining lexical and semantic retrieval with high performance.
Ken is a high-performance Go port of the `semble` code search engine, designed specifically for AI agents. It offers fast hybrid code search, combining lexical (BM25) and semantic (Model2Vec) retrieval to accurately find relevant code snippets. By providing a single static binary with no Python interpreter overhead, Ken ensures rapid cold start times and efficient, concurrent indexing, making it an ideal drop-in replacement for `semble` in agent workflows without requiring changes to existing tool schemas or output formats.
Key Features
01Fast cold start times (typically 10-20 ms) and concurrent CPU-only indexing.
02Tokenizer parity proven against `transformers.AutoTokenizer` for consistent semantic search.
03Drop-in MCP-compatible with `semble`, using identical tool schemas and output formats.
04Pure Go, single static binary, no cgo for easy cross-compilation and distribution.
05Advanced hybrid retrieval algorithm combining BM25, Model2Vec semantic search, and code-aware reranking.
060 GitHub stars
Use Cases
01Performing rapid command-line code searches on local repositories.
02Integrating fast hybrid code search capabilities into AI agents via MCP server.
03Embedding advanced code search functionality directly within Go applications.