Code Embed

•

Perform local hybrid code search combining semantic embeddings and keyword matching across projects directly on your machine.

Code Embed delivers fast, privacy-focused hybrid code search by combining BM25 keyword matching with vector embeddings using SQLite and sqlite-vec. Built for developers and AI agents, it shares a single index and lightweight inference process across VS Code, the CLI, and MCP environments. With syntax-aware tree-sitter chunking, support for local ONNX models or custom embedding APIs, and built-in tools for symbol graphs and context generation, Code Embed enables natural-language codebase exploration without proprietary code ever leaving your machine.

主な機能

01Hybrid search merging BM25 lexical search and sqlite-vec kNN vector search via Reciprocal Rank Fusion
02Syntax-aware chunking using tree-sitter for multiple major languages alongside markdown section splitting
03Shared single-host local inference process to minimize RAM and CPU usage across editors and CLI instances
04Native MCP server support offering semantic search, code similarity detection, file outlines, references, and context aggregation
05Completely local-first and private architecture with zero telemetry and project-level remote consent controls
060 GitHub stars

ユースケース

01Equipping AI coding assistants in Cursor, Windsurf, or Claude Code with fast, semantic codebase context retrieval
02Locating duplicated logic or similar code patterns across a repository before performing refactors and bug fixes
03Searching codebases using natural-language queries when exact function names or identifier spellings are unknown