开源项目 Codegraph 声称能把 Claude、Cursor 等编程助手的工具调用次数砍掉 94%
Public Repository "Codegraph" claims to reduce Claude, Cursor, Codex, and OpenCode API tool calls by 94% locally, an innovation that could directly offset the most recent Claude API pricing model.
Codegraph 的做法是提前给代码建好一张知识图谱,把符号关系、调用链和代码结构都索引好。在 VS Code 的测试里,工具调用从 52 次降到了 3 次,运行时间从 1 分 37 秒缩短到 17 秒。不过正文没披露具体测试的代码规模和任务复杂度,这个 94% 的降幅能不能在别的项目里复现还不好说。
推荐理由:Codegraph 通过预建代码知识图谱索引符号关系与调用链,在 VS Code 测试中把工具调用从 52 次降到 3 次,运行时间从 1 分 37 秒缩至 17 秒。