用hooks少搜一遍代码
Hook a local repo map in
要点
- Graft 先给仓库做一次语法树映射,之后代理读地图而不是每轮反复搜索文件。
- 挂在 Claude Code 钩子上自动跑,纯本地解析,无向量库也无接口钥匙。
- 每次查询会重检代码以免过期;作者称工具调用少约一半,token 也明显下降。
- 开源仓库可直接装,用来压掉每早重新解释代码库的固定成本。
原帖开头
Found the solution to your daily fear. claude code burns thousands of tokens grepping the same files over and over, every single session. this open-source tool ended that. Right now is sitting at 1.6k+ stars in two weeks. Here’s what it does: → maps your whole repo once, th …







