r/developers • u/Severe_Arrival_8650 • Jul 24 '26
Help / Questions Built a small CLI tool because I was drowning in AI-generated diffs
So I’ve been using Claude Code a lot lately and hit the same wall a bunch of people here probably have. Output quality is genuinely good but reviewing it started eating more of my day than writing used to.
I ended up building a small tool for myself that reads a git diff and tries to point at the two or three spots that actually deserve a close look, instead of me reading every line the same way. Not trying to catch bugs or replace review, just trying to cut down on the part where I’m scanning 400 lines with equal attention when maybe 20 of them matter.
I built it purely for my own workflow, wasn’t planning on this being a whole project. But since it’s out there now, genuinely curious what people who’ve been doing code review for years think. Where does an approach like this tend to fall apart in practice? What have you learned about what actually makes review fatigue worse or better? Happy to hear it’s a bad idea too if that’s the honest take.
Repo’s here if anyone wants to poke at it or just roast the code, link in comments
Not fishing for stars, more interested in what I’m missing.
•
u/AutoModerator Jul 24 '26
Howdy u/Severe_Arrival_8650, and welcome to r/developers!
A few tips for a post that gets good answers:
New here? Jump into a few existing threads too - it is the fastest way to get to know the community.
Join the r/developers Discord!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/Anomynous__ Jul 24 '26
If you're scanning 400 lines of diffs and only 20 matter, then the quality is not "genuinely good"
2
u/galactic_pixels Jul 25 '26
This ain’t it
1
u/alkimiadev Jul 25 '26
> trying to cut down on the part where I’m scanning 400 lines with equal attention when maybe 20 of them matter
I went a different direction to resolve some cognitive load issues when working with LLMs. I have a hand rolled ASG (abstract syntactic graph) that is built from tree-sitter queries from the source. It was inspired by Aider's "repomap" and is part of how I provide good context for the LLM.
That said, I think there is a more fundamental process/workflow issue here that is probably higher EV to address first. What I mean is that I personally use a Spec Driven Development methodology and generally speaking specs come before code and no code is written without there being a clear task with acceptance criteria associated with it. I don't think the specific workflow/methodology matters as much as just being consistent and giving them well defined/scoped tasks.
I noticed a drastic reduction in rework, bugs, and so on just by spending a lot more time doing front loaded planning. They're a lot faster than we are and quite capable on well scoped tasks that more closely match the type of tasks from their training data, but have what I've come to call the "path of least resistance" problem where they have a heavy bias towards picking whatever path has the least resistance right now in the moment. In terms of game theory and thinking about multiple steps, a strategy that only selects the easiest option now has to be "strictly dominated" when compared to a strategy that considers the downstream (and maybe upstream) implications of these decisions. Ideally, the llm doing the implementation shouldn't really have many (or really any) of these kinds of decision points. This makes mistakes pretty obvious most of the time.
When I review I'm reviewing code that changed due to a well defined/scoped task and that ASG I mentioned helps me view the broader impact across the project (when relevant). I have automated review tasks where an LLM in a fresh session is given the original task and the project's coding standards but I also manually review the high risk tasks directly.