Fast and Accurate Code Search for Agents
Uses ~98% fewer tokens than grep+read
Semble is a code search library built for agents. It returns the exact code snippets they need instantly, using ~98% fewer tokens than grep+read and cutting latency on every step. Indexing and searching a full codebase end-to-end takes under a second, with ~200x faster indexing and ~10x faster queries than a code-specialized transformer, at 99% of its retrieval quality (see benchmarks). Everything runs on CPU with no API keys, GPU, or external services. Run it as an MCP server or call it from the shell via AGENTS.md and any agent (Claude Code, Cursor, Codex, OpenCode, etc.) gets instant access to any repo.
Quickstart
Your agent will automatically use Semble whenever it needs to find code. Instead of grepping with a keyword and reading full files, it queries in natural language (e.g. "How is authentication handled?" ) and gets back only the relevant context. Semble can be set up as an MCP server or as a bash tool:
MCP
Add Semble to Claude Code (requires uv):
claude mcp add semble -s user -- uvx --from " semble[mcp] " semble
Using another agent harness? See MCP Server for setup instructions for Codex, OpenCode, Cursor, and other MCP clients.
... continue reading