# Graft (Claude Code hooks)

13 Hacker News commenters recommended Graft (Claude Code hooks) and 4 criticized it, November 2025 to November 2026. It was recommended in 4 of 13 months. It meets the Hacker Approved badge rule.

**Verdict:** People recommend it for giving coding agents a map of the code that searches inside files rather than by names, cutting tokens and latency. Critics say the benchmarks are thin and the README reads as generated.

## Why people recommend it

- Cuts tokens and latency for agents (2 comments): "can reduce codebase up to 50% or at least the integration layer part by easily 70-80%" ([source](https://news.ycombinator.com/item?id=49581758)) "I'm intrigued by the latency savings in particular, that sounds great." ([source](https://news.ycombinator.com/item?id=49301360))
- Keeps codebase understanding current across sessions (2 comments): "so graft solves for making claude code understand your codebase every session" ([source](https://news.ycombinator.com/item?id=49301795)) "so that graph never goes stale" ([source](https://news.ycombinator.com/item?id=49301523))
- Quick to map and useful (2 comments): "Didnt know i needed this, really useful toolm definitely gonna use this from now on." ([source](https://news.ycombinator.com/item?id=49805931)) "here i was able to map in approx 5 min" ([source](https://news.ycombinator.com/item?id=49811507))

## What people warn about

- Benchmarks are few and arbitrary (2 comments): "they claim success on SWE-Bench Verified, but it's only on 50 tasks" ([source](https://news.ycombinator.com/item?id=49301754)) "These are super arbitrary numbers of benchmarks to run" ([source](https://news.ycombinator.com/item?id=49302379))
- README reads as generated slop (2 comments): "It's so bad that I can tell it's Claude, specifically Opus 4.8/5.0, from the first 6 words." ([source](https://news.ycombinator.com/item?id=49301251)) "slop README. If you couldn't be bothered to write it, don't expect people to read it." ([source](https://news.ycombinator.com/item?id=49302023))

## Alternatives hackers recommend

- [ripgrep](https://hackerapproved.com/p/ripgrep.md): 122 recommend
- [ast-grep](https://hackerapproved.com/p/ast-grep.md): 21 recommend
- [Semble](https://hackerapproved.com/p/semble.md): 20 recommend
- [Lat.md](https://hackerapproved.com/p/lat-md.md): 11 recommend
- [Ory Lumen](https://hackerapproved.com/p/lumen.md): 10 recommend

## Cite as

Hacker Approved, "Graft (Claude Code hooks)", https://hackerapproved.com/p/graft/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
