Primary sourceshao__meng
View sourceEvent ·Multi-source
Context.dev 开源 Rust 编写的本地语义代码搜索 CLI「sgrep」
Context.dev 开源了用 Rust 编写的本地语义代码/文档搜索 CLI「sgrep」,使用约 32MB 的本地 CPU 模型,首次搜索后完全离线,代码和查询不出本机。技术架构分四步:复用 ripgrep 枚举文件、用 Tree-sitter + Chonkie 做语法感知分块(约 2048 字符,保留函数/类等语法单元边界)、采用 MinishLab 的 model2vec 风格静态嵌入(Potion Code 16M v2),最后按 75% 语义 + 25% BM25 混合评分。在 SWE-bench Verified(GPT-6,50 任务 × 2 次)上,管道模式下的 sgrep 比 ripgrep 节省 21.3% 的 LLM API 开销,解题数 70/100 vs 68/100。检索质量方面,sgrep 在 RepoQA 完整函数检索上领先,但在 CoSQA 上落后于 CK 的语义模式。
Current read
Context.dev 开源的 sgrep,一个 32MB 完全离线的语义代码搜索 CLI,给 agent 用能比 ripgrep 省 21.3% API 开销,代码不外传,写代码的可以装一个试试。
5 sources61° AI heatLast updated 2026/10/14 01:30:29
Evidence
5 sourcesRelated source 1AIGCLINK
View sourceRelated source 2Geek
View sourceRelated source 3Aravind Srinivas
View sourceRelated source 4IT之家
View sourceConflict check
Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.