
本地代码搜索 AI 编码代理:一个 CLI 和 MCP 服务器,结合混合关键词 + 语义搜索和基于 SQL 相关性排序的聚合,基于纯文件中的索引。无账户,无密钥,无服务器。
概览
是你编码代理下的检索层:一个本地索引覆盖整个仓库(关键词、语义、混合和SQL),通过MCP服务器和CLI访问,索引存在仓库内的纯文件中。你的代理回答关于代码库的问题时,无需逐个文件阅读。 经验法则是:问题跨越多仓库,保存的效果越大,因为答案来自排名索引,而不是逐个文件拉取源代码到上下文中。 (所以答案也更快——聚合题目大约快2×)。线束在仓库里,你可以在自己的代码里复现。 在 lantern.infino.ai 提出任何公开GitHub仓库的问题,是一个基于代码上下文运行的演示代理。 - 🔎 一次排名通过将精确的关键词匹配与语义相似性融合,每次命中都带有路径:行引用的代码。
概述(AI 翻译)
为AI编码代理提供检索+推理卸载。 帮助你的代理更快、更低成本地找到答案,同时保持相同的答案质量。对于成本较低的模型尤其有用。
在 infino.ai/supergrep 试试——把问题放到真实代码库,看同一个模型带着和没有SuperGrep的答案,并列说明。Supergrep使用Infino进行检索,它紧密集成了带有索引的小型语言模型,支持对象存储上的可扩展代理检索。
SuperGrep为代理提供了四个基于Infino索引的工具,分别存放在两个地方。[find和纯sql在你的机器上运行,基于关键词索引。相反,任何有意义的内容——search、带有排序搜索的sql语句和ask——运行在Infino云中,因此繁重的计算和嵌入不会在你的笔记本电脑上进行。Infino还在其服务中嵌入推理模型,所以几个小模型同时处理索引,并将找到的行交给你的代理。你的代理负责保留推理,写出答案,并决定何时使用SuperGrep。无需配置。
四种工具,每台一行——给正在读这篇文章的特工
|工具 |它的作用 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
SuperGrep
Retrieval + inference offload for AI coding agents. Help your agents find answers faster and at lower cost, while keeping the same answer quality. Particularly useful for cheaper models.
Try it live at infino.ai/supergrep - put a question to a real codebase and watch the same model answer it with and without SuperGrep, side by side, with the bill for each. Supergrep uses Infino for retrieval, which tightly integrates small language models with indexes for scalable agent retrieval on object storage.
SuperGrep offers agents four tools over an Infino index, kept in two places. find and plain sql run on your machine, over the keyword index. Conversely, anything with meaning in it - search, a sql statement with a ranked search inside it, and ask - runs in the Infino cloud, so heavy compute and embeddings stays off your laptop. Infino also embeds inference models in its service, so several small models work the index at once and hand your agent the rows they found. Your agent keeps the reasoning, writes the answer, and decides when to use SuperGrep. No configuration.
What people use it for
安装
npx -y @infino-ai/code-context login --platform https://api.supergrep.infino.ai