open-codebase-index
View on GitHubSemantic codebase indexing and search for OpenCode, Claude, Codex, Pi, Jcode, and MCP hosts. Powered by Rust and tree-sitter.
Local semantic code index exposed as an MCP server (plus ocbi CLI) for Claude Code, Codex, OpenCode, Pi, and other hosts. Combines embeddings, BM25, branch-aware incremental indexing, symbol lookup, and a call graph via Rust/tree-sitter, with Ollama, OpenAI, or Google embeddings.
Use Cases
Semantic codebase search for coding agentsSymbol definition and implementation lookupCaller/callee and dependency path analysisPR or branch blast-radius impact analysisLow-token context packs for agent promptsIndexing extra repos as knowledge basesHybrid keyword plus vector code retrievalLocal embeddings via Ollama for private code
Built With
- Language
- TypeScript
- Frameworks
- tree-sitter · napi-rs · usearch · SQLite · BM25 · Node.js · Rust
Tags
semantic-search · code-search · codebase-indexing · embeddings · hybrid-retrieval · bm25 · call-graph · tree-sitter · mcp · local-first · incremental-indexing · vector-search · rust · claude-code · codex · opencode