Semble: Code Search for AI Agents Using 98% Fewer Tokens Than grep+read

Semble is a fast, token-efficient code search library built specifically for AI coding agents like Claude Code, Cursor, Codex, and OpenCode. It returns relevant code snippets from natural language or code queries, using ~98% fewer tokens than the typical grep+read fallback approach.
How It Works
Semble combines static Model2Vec embeddings (using their own potion-code-16M model) with BM25, fused via RRF and reranked with code-aware signals. All computation runs on CPU — no GPU, no API keys, no external services. Indexing an average repo takes ~250ms, and queries complete in ~1.5ms on CPU.
Key Features
- Token-efficient: 98% fewer tokens than grep+read — returns only the relevant chunks.
- Fast: ~250ms to index a typical repo, ~1.5ms per query (very large repos may take longer).
- Accurate: 0.854 NDCG@10 on their benchmark of ~1250 query/document pairs across 63 repos and 19 languages — 99% of the best transformer setup (137M parameters) at ~200x faster indexing and ~10x faster queries.
- Zero config: No API keys, GPU, or external services required.
- MCP server: Drop-in for Claude Code, Cursor, Codex, OpenCode, and any MCP-compatible agent.
- Local and remote: Pass a local path or a git URL. Indexes are cached per session and auto-updated on file changes.
Installation and Setup
MCP server (recommended for agents)
Requires uv to be installed. For Claude Code:
claude mcp add semble -s user -- uvx --from "semble[mcp]" semble
For Codex, add to ~/.codex/config.toml:
[mcp_servers.semble] command = "uvx" args = ["--from", "semble[mcp]", "semble"]
For OpenCode, add to ~/.opencode/config.json:
{
"mcp": {
"semble": {
"type": "local",
"command": ["uvx", "--from", "semble[mcp]", "semble"]
}
}
}For Cursor, add to ~/.cursor/mcp.json or .cursor/mcp.json:
{
"mcpServers": {
"semble": {
"command": "uvx",
"args": ["--from", "semble[mcp]", "semble"]
}
}
}Bash integration (alternative)
Install with pip or uv, then add the code search snippet to AGENTS.md or CLAUDE.md:
pip install semble uv tool install semble
Then in AGENTS.md:
## Code Search Use `semble search` to find code by describing what it does or naming a symbol/identifier, instead of grep: ```bash semble search "authentication flow" ./my-project ```
MCP Tools
The MCP server exposes two tools:
search— Search a codebase with a natural-language or code query. Passrepoas a local directory path or an https:// git URL.find_related— Given a file path and line number, return chunks semantically similar to the code at that location.
📖 Read the full source: HN AI Agents
👀 See Also

ClawVibe: A Hands-Free iOS Voice Assistant for AI Agents with On-Device STT/TTS
ClawVibe is a native iOS app that provides hands-free voice interaction with AI agents during commutes. It uses on-device speech recognition and TTS, supports CarPlay, and includes voice biometrics to filter background noise. Only text is sent over the network.

Claude Counter: Android app tracks Claude usage limits with real-time notifications
A developer built Claude Counter, a free Android app that polls Claude's API to display live session and weekly usage limits. The app shows progress bars, provides rich notifications with percentage remaining, and alerts when limits reset.

ANE Optimization Through Phone-Steered AI Experiments Shows Kernel Fusion Benefits
A developer ran 55 experiments on Apple Neural Engine optimization, steering the process from their phone using Claude for brainstorming. Key improvements included fusing 3 ANE kernels into 1 mega-kernel, reducing validation loss from 3.75 to 2.49 and step time from 176ms to 96ms.

OpenClaw Superpowers: A library of 31 skills addressing security, cost, and reliability pain points
A developer has released openclaw-superpowers, a library of 31 plug-and-play skills for OpenClaw. The library addresses common issues like runaway API costs, security vulnerabilities, and context loss, with installation via a single command.