codesearch logo
codesearch
★ 93
vs
ken logo
ken
★ 33

codesearch vs ken

codesearch: codesearch is a token-efficient MCP server for AI agents that enables local semantic code search. It integrates with OpenCode, Claude Code and other AI assistants to perform intelligent code searches with minimal token usage, all running locally with no external API calls.; ken: Ken is a pure Go port of semble, providing fast hybrid code search for agents with drop-in MCP compatibility. It offers a single static binary distribution, approximately 44x fewer tokens than grep+Read at recall@10, and supports indexing source code and documentation. The retrieval algorithm is a verbatim port of semble's hybrid BM25 + Model2Vec approach.

01

TL;DR

codesearch logo
codesearchRAG / Knowledge Base · ★ 93

AI-assisted code understanding through natural language queries

ken logo
kenRAG / Knowledge Base · ★ 33

Agent code search: quickly find relevant code chunks across large codebases

02

Side-by-Side Comparison

Field
codesearch logocodesearch
ken logoken
Category
RAG / Knowledge Base
RAG / Knowledge Base
Stars
★ 93
★ 33
License
Apache-2.0
MIT
Install Command
git clone https://github.com/flupkede/codesearch.git && cd codesearch && cargo build --release && sudo cp target/release/codesearch /usr/local/bin/
go install github.com/townsendmerino/ken/cmd/ken@latest && go install github.com/townsendmerino/ken/cmd/ken-mcp@latest && ken download-model
Updated
1d ago
1d ago
Open Source
Yes
Yes
Tags
claude-code, code-search, embeddings
agents, bm25, code-search
03

Features

codesearch logocodesearch
01Token-efficient AI integration with compact responses
02Semantic, hybrid, and neural reranking search modes
03Incremental indexing with three-layer embedding cache
04Git-aware automatic index placement and branch detection
05Privacy-first local processing with no external calls
ken logoken
01Pure Go, no cgo; single static binary with free cross-compilation
02Drop-in MCP-compatible with semble (same tool schemas and output format)
03Verbatim port of semble's hybrid BM25 + Model2Vec retrieval algorithm
04Measured ~44x fewer tokens than grep+Read at recall@10 on agent queries
05Fast cold start (~10–20ms for small indexes)
04

Use Cases

codesearch logocodesearch
↳AI-assisted code understanding through natural language queries
↳Codebase navigation and reference discovery
↳Integration with AI coding assistants like OpenCode and Claude Code
ken logoken
↳Agent code search: quickly find relevant code chunks across large codebases
↳Embedded-corpus distribution: ship documentation as a single static binary with zero infrastructure
↳Database schema indexing: index live Postgres/SQLite/MySQL schemas for agent context
FAQ

FAQ

What is the difference between codesearch and ken?
Both codesearch and ken are in the RAG / Knowledge Base category. codesearch has 93 stars, while ken has 33 stars.
Which is better, codesearch or ken?
The best choice depends on your use case. Choose codesearch if AI-assisted code understanding through natural language queries, and ken if Agent code search: quickly find relevant code chunks across large codebases.
Is codesearch free or open source?
Yes, codesearch is open source on GitHub (Apache-2.0).
Is ken free or open source?
Yes, ken is open source on GitHub (MIT).
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
→

Related