Hacker News
Graft Wires a Prebuilt Code Knowledge Graph Into Claude Code Hooks: 42% Fewer Tokens, 60% Lower Latency
NanoNets' Graft, on the HN front page August 14, builds a persistent graph of linked markdown nodes describing subsystems, APIs, and concepts, then injects ranked context per prompt through Claude Code hooks instead of letting the agent re-explore the repo. Their controlled sweep of 162 runs across two repos reports 8,070 to 4,650 tokens, 4.2 to 2.3 tool calls, 39.8s to 15.8s latency, and $0.0429 to $0.0292 per task. On 50 SWE-bench Verified instances it resolved 33 versus 27 for the cold baseline. The repo sits at 2.7k stars with 333 commits, and `graft init` also adds a freshness statusline and post-edit blast-radius warnings.
↳ Follow the thread