Skip to content
Tech News
← Back to articles

Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep

read original get Semantic Code Search Tool → more articles
Why This Matters

Semble introduces a highly efficient code search library tailored for agents, drastically reducing token usage by 98% compared to traditional grep+read methods. Its speed and accuracy enable instant retrieval of relevant code snippets, enhancing developer productivity and agent capabilities without relying on external services or GPUs. This innovation signifies a leap forward in cost-effective, fast, and precise code search solutions for the tech industry.

Key Takeaways

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