知识库

Eye(FR) → Mill(skill) → Library(/app)

← 返回列表
Hacker News · 2026-05-17 · 已成文 · 来源 file

Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep — 与 agent/MCP/harness 相关,值得纳入工具链或威胁模型对照。

为什么重要

与 VAULT_GOAL(Agent 编排、MCP、sandbox、工程化)相关;过门后便于工作台按 claim 检索。

正文

Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep — 与 agent/MCP/harness 相关,值得纳入工具链或威胁模型对照。

Claim

Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep — 与 agent/MCP/harness 相关,值得纳入工具链或威胁模型对照。

Why it matters

与 VAULT_GOAL(Agent 编排、MCP、sandbox、工程化)相关;过门后便于工作台按 claim 检索。

Summary

Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep 来源:https://github.com/MinishLab/semble Mode B 批量成文;建议打开原文核验细节。

Actions

  • (none)

Evidence

  • (none)

Caveats

  • (none)

Research queries

  • (none)

Body

正文

背景

Show HN: Semble – Code search for agents that uses 98% fewer tokens than grep 进入 pending 队列且与 agent/MCP/工具链关键词匹配(score=3)。

机制

按 Mode B:对无 ka 条目补写合格 ka-v0(围栏 + 四段)。细节以原文/仓库为准;此处给出可执行 claim 与 actions 框架。

取舍

批量成文保证不断档;深度杂志长文可再对单条 Exa/Web 加厚。证据至少含本 URL。

动作

  • 打开原文核验是否进入内部 shortlist
  • 若同主题已有主文,考虑 composed_from 合并而非重复
  • 评估权限/成本/安全面后再接入生产 harness

结合的源文章

主源
Show HN: 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 services

Install in Claude Code with: claude mcp add semble -s user -- uvx --from "semble[mcp]" semble

Or check our README for other installation instructions, benchmarks, and methodology:

Semble: https://github.com/MinishLab/semble

Benchmarks: https://github.com/MinishLab/semble/tree/main/benchmarks

Model: https://huggingface.co/minishlab/potion-code-16M

Let us know if you have any feedback or questions!


Comments URL: https://news.ycombinator.com/item?id=48169874

Points: 39

# Comments: 17