Context Foundry:Rust 编写的本地确定性上下文引擎公开仓库
dwbimstr 在 GitHub 公开 Context Foundry,一个用 Rust 编写的本地确定性上下文引擎,为编码 agent 按名称返回定义、同名目录或使用位置,并以精确 token 预算交付带引用的源码,通过 MCP 和 CLI 提供。核心检索无需模型、GPU、网络或密钥,支持 tree-sitter 的 23 种语言,目前处于 pre-release 状态。作者给出的实测中,脚本化 agent 在 rust-lang/rust 1.99.0 上 D1 Pass@1 从 89.1% 提升到 97.8%,中位通过 token 从 806 降到 234;macOS arm64 支持最完整,Windows 未构建,暂无正式发布版本。
推荐理由:这个 Rust 写的确定性上下文引擎给出了在 rust-lang/rust 和 Bun 仓库上的实测 Pass@1 与 token 消耗数据,可供评估编码 agent 检索方案时参考。