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

Hey HN! We (Stephan and Thomas) recently open-sourced Semble. We kept running into the same problem while using Claude Code on large codebases: when the agent can't find something directly, it falls back to grep, reading full files or launching subagents. This uses a lot of tokens, and often still misses the relevant code. There are existing tools for this, but they were either too slow to index on demand, needed API keys, or had poor retrieval quality.Semble is our solution for this. It combines static Model2Vec embeddings (using our latest static model: potion-code-16M) with BM25, fused via RRF and reranked with code-aware signals. Everything runs on CPU since there's no transformers involved. On our benchmark of ~1250 query/document pairs across 63 repos and 19 languages, it uses 98% fewer tokens than grep+read and reaches 99% of the retrieval quality of a 137M-parameter code-trained transformer, while being ~200x faster.Main features:- Token-efficient: 98% fewer tokens than grep+read- Fast: ~250ms to index a typical repo on our benchmark, ~1.5ms per query on CPU (very large repos may take longer)- Accurate: 0.854 NDCG@10, 99% of the best transformer setup we tested- MCP server: drop-in for Claude Code, Cursor, Codex, OpenCode- Zero config: no API keys, no GPU, no external servicesInstall in Claude Code with: claude mcp add semble -s user -- uvx --from "semble[mcp]" sembleOr check our README for other installation instructions, benchmarks, and methodology:Semble: https://github.com/MinishLab/sembleBenchmarks: https://github.com/MinishLab/semble/tree/main/benchmarksModel: https://huggingface.co/minishlab/potion-code-16MLet us know if you have any feedback or questions!

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

85

out of 100

Verdict

BUILD

high confidence

Competition

No competitor data yet

Trend

No signal yet

Semble is a fast, token-efficient, and accurate code search tool optimized for AI agents, reducing token usage by 98% compared to grep-based methods.

The pain

Current AI code agents rely on grep or transformer-based search methods that are token-heavy, slow, or require complex setups, leading to inefficiencies and missed relevant code.

The gap

Existing tools are either slow to index, require API keys or GPUs, or have poor retrieval quality, leaving a need for a fast, lightweight, and accurate code search solution that integrates seamlessly with AI agents.

Build angle

Focus on refining integration with popular AI coding agents, improving user experience with zero-config deployment, and validating demand among AI developers and teams working with large codebases.

Strengths

  • Significant token efficiency (98% fewer tokens than grep+read)
  • High retrieval accuracy (99% of transformer-based models)
  • Fast indexing and querying on CPU without GPU dependency
  • Open-source with easy integration (drop-in for Claude Code and others)
  • Supports multiple languages and large codebases

Risks

  • Niche market primarily targeting AI agent developers rather than general developers
  • Competition from established code search tools and transformer-based models improving rapidly
  • Potential challenges in convincing teams to switch from existing workflows
  • Performance and accuracy trade-offs might limit adoption in critical production environments
  • Dependency on AI agent ecosystem adoption (Claude Code, Cursor, etc.)

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “Semble – Code search for agents that uses 98% fewer tokens than grep”.

Open FlyBot