r/ExperiencedDevs • Software Engineer 7YoE • 3d ago

AI/LLM How do you review code changes that Claude Code wrote during a session?

Let’s say that I need to fix a bug or build a new feature or make a technical enhancement in a codebase (or a handful of related codebases).

I start off with an initial prompt, followed by a few back and forths and eventually end up with a slice of code changes made by whatever harness I’m using (i.e. Claude Code).

  1. I can read the changes line by line.
  2. I can ask Claude Code to hold my hand and help me understand what it just wrote. This usually results in Claude breaking up the changes into smaller digestible chunks along with commentary on each chunk.
  3. Or I can use a systematic approach where i start with the most critical parts of the code changes. For example, if the change is to add a new filter for a hotel booking system such as number of children in the group, i would start with the search query itself, checking that rooms are matched on total occupancy (adults plus children) and that an existing search with no children param still returns exactly what it did before.

My goal is to review the code changes as fast as possible by trading off attention to less important parts of the change.

In my opinion #1 is the slowest. #2 is good but I’m worried that with this approach the review will be too influenced by the session that generated the code. I want the review to be as independent and detached from the session as possible (ok while writing this sentence i realized that I can just use a fresh session to do the review. But then i trade off all the meaty context from the original session). #3 is good but I don’t know a system that works for all cases.

0 Upvotes

128 comments sorted by

•

u/expdevsmodbot 3d ago

AI usage disclosure provided by OP, see the reply to this comment.

→ More replies (1)

40

u/patient-palanquin 3d ago

You might be taking steps too big if you can't review them with a git diff. I incrementally work towards the solution and basically do a quick scan for each commit by piping git diff into vim (I alias gd to this so I can spam it).

Then I put up a PR and review it in the platform UI (e.g. GitHub) and revise before tagging folks.

5

u/LiterallyBismarck 3d ago

Yeah. Though, there are ways to improve the behavior of git diff. I've been using the delta viewer for a bit, so that the changes are laid out in two different panels next to each other, and it's been great.

28

u/ZergTerminaL 3d ago

small changes = small reviews
small reviews = faster reviews
Having an LLM shit out hundreds of changes all at once is a recipe for disaster.

6

u/VisKopen 3d ago

Could work if you want to mass produce low quality stuff for Google Play.

3

u/Practical_Moment_259 2d ago

996

996 files changed in the MR I've just been assigned ...

Over 40k LOC... this is not sustainable.

2

u/Rumicon 2d ago

AI can’t fix bad culture.

The only thing stopping this person from dumping a 40k line PR on you before was their inability to produce the code. And if they did before nobody would have any issue with a request changes to ask them to break it down.

Now the cost of breaking down a large pr into smaller ones is a prompt to an agent so the guilt I feel about asking for a PR to be broken up is near zero.

1

u/ZergTerminaL 2d ago

If your org has any sense then no one will blink an eye when you deny the MR.

Something I did: wrote a bot that kills any MR over a certain number of changes.

It's easier to get people to agree on the theory that small MRs are better and then enforce it via bot and tooling. It takes the blame from, "this dev is too hard to work with," and instead turns into a discussion of, "is this rule worth it?" You at least stand a chance if the discussion is the later.

1

u/Practical_Moment_259 1d ago

I did.

Queue stroppy reaction by the dev and a YOLO LGTM (with apologies and promises it (enormous MRs) won't happen again) from my boss...

1

u/Economy-Pace3081 2d ago

goal is to review the code changes as fast as possible by trading off attention.

66

u/joshhbk 3d ago

This sub has really gone to the dogs lol

27

u/somkomomko 3d ago

I was just thinking the same. Crazy but I think it just reflects most Devs. The state is everyone is vibe coding and nobody cares anymore.

19

u/-shrug- 3d ago

"nobody cares any more" as a complaint on "question about how to review code"?

2

u/PrestigiousCancel568 3d ago

I dont know a system that works for all cases.

5

u/arcanemachined 2d ago

What sub? All I see in the last week is this thread and a bunch of meta-threads.

This sub hasn't just gone to the dogs, it's died.

1

u/Loud-Employer-2703 1d ago

I can ask Claude Code to hold my hand and help me understand what it just wrote.

1

u/doyouevencompile Sr. Software Engineer 1d ago

IMO it's a fair question to ask these days. I know it's a tired question, but LLMs are far ahead of what they were a year ago. Our jobs are shifting towards building guardrails for AI so they can still build understandable and maintainable systems. As LLMs move forward, we also have to move forward.

1

u/ReaverKS 3d ago

Who let the dogs out?

39

u/TheSexySovereignSeal fullstack dumbass 3d ago

Does anybody here still program without using ai?

47

u/proof_required 9+ YOE 3d ago

No!

Sent using @claude!

4

u/svick 3d ago

You have Reddit MCP?

9

u/dazzaondmic 3d ago

I think that was a joke. But then again maybe you were joking too lol

1

u/Feisty-Owl-8983 5h ago

What if they both serious lol.

3

u/0vl223 2d ago

You don't?

Co-authored by Claude Mythos 🤖.

16

u/ZergTerminaL 3d ago

Yep. LLMs still need far too much handholding for me. I have mostly replaced google with an LLM though.

-3

u/z0mghii 3d ago

Are you using a local model?

42

u/NoCardio_ Software Engineer / 25+ YOE 3d ago

Pretty sure I haven’t written a line of code myself all year.

5

u/StPatsLCA 3d ago

Crazy. I'm 80/20 b/c I love to have my LLM "draw the rest of the Owl" between interfaces and other stuffs.

0

u/Firm_Beyond2073 2d ago

I can use a systematic approach.

4

u/VeryLazyFalcon Software Engineer 3d ago

Same, and yet I never used keyboard so much.

1

u/Kjufka Software Engineer 3d ago

So you are they guy I need to clean up after.

3

u/NoCardio_ Software Engineer / 25+ YOE 3d ago

I still read the output and refine, so no.

0

u/solidity_scorer 15h ago

That’s the danger. You stop training your brain for the edge cases and start trusting the model's confidence instead of its correctness. I had to audit a smart contract last week where the AI got the gas estimation wrong by a factor of ten because it ignored a specific state variable in a modifier. If you aren't writing the core logic yourself, you're just managing technical debt that compounds while you sleep.

I use Solhint for static analysis now, but it doesn't catch semantic errors or complex reentrancy paths across multiple contracts. I still have to read every line of the critical path manually.

2

u/NoCardio_ Software Engineer / 25+ YOE 15h ago

I understand people do that, but I haven't stopped training my brain for edge cases. If anything, I get tired of being gaslit by Claude when it comes up with so many hypothetical scenarios that our most anal retentive QA (before they were all laid off, RIP) wouldn't bother writing up.

-1

u/felixthecatmeow 3d ago

It's to the point where even if it's a one line change that I can do faster than AI, I don't have an IDE open so it's easier/faster to just tell AI to do it and push the changes.

21

u/Azianese 3d ago

I find having an ide open is useful for reviewing code. Stepping through functions, seeing where a file is in a file hierarchy rather than just a file path, finding other callers, etc. -thats all useful context when reviewing code.

3

u/SebastianKain 3d ago

Pretty much this. Especially with a terminal focused flow: terminal multiplexer with harness of choice, nvim and niceties like lazygit, yazi, or ekphos scattered in depending.

3

u/azuredrg Software Engineer:sloth: 3d ago

Jetbrains ides make it really easy to review diffs too while Claude is making changes

1

u/felixthecatmeow 3d ago

We have an in-house agentic coding platform (basically like a codex that integrates with all our internal tooling) and I can review diffs there. But most of the time I iterate on a draft PR and just look at github

5

u/astromanos 3d ago

Its never a one liner. There is always a test case to write as well.

1

u/bargerin 5h ago

Config changes are often 1 liners... but otherwise yes.

0

u/felixthecatmeow 3d ago

Yeah and you need to run the tests too so you need a shell in the right env. It's all small potatoes but why worry about it when I can type 5 words to Claude and it'll do all of it while I jump onto something else.

Don't get me wrong I don't enjoy this, but it's the reality we live in.

0

u/TopOfTheMorning2Ya 3d ago

Same… building a new app from scratch and things seem to work well when I run it. I’m happy to place my rubber stamp.

5

u/lasagnaman Software Engineer 13 YoE 3d ago

Yep, never have, probably won't for a long time.

14

u/Jhahn678 3d ago

Plenty of people

3

u/Zweedish 2d ago

Yes. Hand-holding an LLM is as much work as just doing it myself. 

4

u/MichaelTheProgrammer Software Engineer - 15 YOE 3d ago

At home I have a project I refuse to let AI touch that I've been working on for a decade.

At work, it's gone to have AI plan the code, write the code, and review the code, and humans just do requirements and testing.

5

u/DiamondDramatic9551 3d ago

No, but I do read all the output. 

5

u/patient-palanquin 3d ago

Yes. For anything new, I scaffold the types and functions myself before pointing Claude at it.

8

u/newintownla Senior Software Engineer 3d ago

That's the way to do it. Leading it by example is the best way to establish a pattern for it to follow.

3

u/cbdeane 3d ago

Only on personal projects when I want to learn something new for the first time.

2

u/atxgossiphound 0xC0DE71FE 3d ago

Yes.

1

u/JeffinitelyNotABot 3d ago

I do in my team we just got github copilot so doing a transition to that. But still used AI mostly with tedious coding tasks or to test out complicated logic.

1

u/Trygle 3d ago

For my hobby projects that I actually care about knowing how things work.

1

u/laidoffd00d 2d ago

Admittedly for couple line changes jn toml files I’ll do it by hand as it feels fun to jump around with my old neovim set up…. But otherwise i haven’t truly coded since like January

1

u/s3rila 2d ago

yes, but i don't post

1

u/boer0327 TPM & Senior Full-Stack (20+ YOE) 2d ago

Not really—at 20+ YOE, I write a fraction of the raw syntax I used to—mostly just locking down core types, DB schemas, or tricky edge cases.

The job has basically shifted from typing code to writing tighter specs upfront and doing much stricter diff reviews in the IDE. It’s been a huge net positive for delivery speed, as long as CI and tests stay non-negotiable.

0

u/newintownla Senior Software Engineer 3d ago

Claude writes it, I correct some of it by hand. Does that count?

12

u/Spare-Ant7119 3d ago

I read the code and use my big, hard brain

8

u/Plenty_Line2696 3d ago

For serious production work, Much of that effort should be upstream. I don't let Claude Code just run with a feature request, that tends to lead to spaghetticode with semantic soup. First I go back and forth on the design: how it fits existing structures, what the core concepts are and what they're called, what goes where, what data flows where, and what the folder tree looks like (skimming it should give a dev who's new to the codebase some sense of roughly what each part is responsible for if this is done well).

Once that's agreed, reviewing the PR means checking the code against a plan I already understand, not reverse-engineering something convoluted that no human ever had oversight over. LLMs don't structure code the way people do, so if you don't shape it beforehand you get something that works but isn't really structured in a way that's intuitive to humans, and no review strategy fixes that after the fact, it's like pissing in the wind.

0

u/Impressive-Field-546 2d ago

I also do plan phase first but still I find places where I simply did not think about them during design phase. Even if I ask ai to grill me on all possible corner cases.

Then is real world that also proves many assumptions (even checked) as wrong and plan requires changes.

So overall I switched to AGILE AI.. we iterate fast, test, iterate again, test again, verify, build test cases covering already checked paths, more iterations.

Its much much much better in the end than vibing, planning everything up-front, prompting or agentic engineering (yolo with agents)…

1

u/Plenty_Line2696 2d ago

If it's sort of gung ho and let it build anything to iterate upon imo that's too far, because already at the getgo I'd anticipate certain flavors of mistakes which are t worth spending resources on. I totally agree with iterating fast and that normal agile just doesn't work anymore as it's like a roadblock but feel like there's a goldiloxks zone between overplanning and underplanning rather than a perfect extreme

4

u/OhBoyHereWeGoAgai 3d ago

I review it the same way I do coworker PRs, which isn't me being smug, it's a real skill. Some people can look at a straight diff, others put diff next to their fave IDE so they can click around while using the diff to let them know, but in the end the answer is "however actually works to review".

I used to have Claude make PR markdowns with internal links into the files, it actually worked really well but I don't do it so much anymore as I'm further into our codebases now and usually the diff is enough, but if I'm having that feeling of reviewing without reviewing, I ask it to spit out a guided index

7

u/anthropicagiuser 3d ago

i read the raw diff first, then ask for the walkthrough. the commentary can skip a line that matters. so i check those skipped lines myself.

3

u/dantheman91 3d ago

What are you trying to get out of it? I'd argue you're doing things wrong here.

I would also say that most people wouldn't call Claude code a harness, generally when they talk about building a harness it's an additional layer on top.

For example when people say harness they're usually talking about something like

  1. Write a test to recreate a bug
  2. Verify the test works and we can reproduce
  3. Fix the big
  4. Verify the test now fails and upload proof to a PR
  5. Clean up the test and add a new test verifying the correct behavior

And then you come back to your question of "how do you review the PR". I'd argue most of the time for bugs there's not a ton of value getting into the weeds, and that'll keep you from being a "10x AI developer" or what have you. Verification is part of the AIs workflow and it'll supply you with proof it works.

If you're working on something larger like a feature, id just have it write a plan and include some visuals of the flow of logic in what it proposed and address it then. I'm basically never reviewing it after the fact, part of my instructions will be to ensure it follows the plan.

Once you've signed off on the plan, your harness should include multiple verification steps so you're not having to manually check much, setup a robust CI to basically have confidence that anything merged isn't breaking the app

1

u/LordOfDemise 3d ago

Claude Code is absolutely in the category of software called "harnesses," i.e. applications that take user input, read files, etc. and wrap an AI model.

1

u/dantheman91 3d ago

That's fair but in most conversations when people say harness they're talking about the layer on top of that.

1

u/PrestigiousCancel568 1d ago

This sounds like overcomplicating the review process. You still need to check the actual changes instead of blindly trusting automated verification.

1

u/dantheman91 1d ago

Why? People trust the lower level code generated by the compilers, and the layers inbetween normal higher level languages today. "AI" IMO is simply the next step of that. I've reviewed A LOT of AI generated PRs, and it's very very rare if ever the generated code is technically incorrect. What's far more likely is some business logic is inadvertently changed, which is what we verify with E2E tests (and is still hard to catch via human review)

3

u/BOSS_OF_THE_INTERNET Principal Software Engineer 3d ago

I wrote a skill that launches a diff viewer (web based) and allows me to comment on things per line. Just like in GitHub, but doesn’t require a commit or a push to GitHub.
You can ask questions about the code in real time and the same terminal session will pipe output back to the web ui.

I made a similar skill for planning.

7

u/StPatsLCA 3d ago

Just check that the exhaustive tests you're written for your spec matches the output. You've got all that, right?

1

u/Wolfstigma Web Developer 3d ago

yep testing is the key to being able to safely rock some AI code

2

u/shaonline 3d ago edited 3d ago

You need to work incrementally towards your goal so that it can be reviewed bits by bits, if you expect a one-shot of a medium-to-big feature to be human-reviewable I have a bridge to sell you. If you have an actual "plan" in mind then that shouldn't be too hard, if your "plan" consists of asking the AI to come up with a plan and answer "LGTM go ahead" right away with whatever it came up with then yeah good luck reviewing that.

A "hand holding" summary by the AI honestly I wouldn't care much for it. I do however use it to explain some changes sometimes during my "line by line" reviews.

2

u/Strus Staff Software Engineer | 12 YoE (Europe) 3d ago

I read the code. If I don't understand something I ask agent for explanations until I do understand. I double check every claims that are not obvious from the code (e.g. how certain API works).

This doesn't mean I read every single line. How carefully I read the code depends on how critical it is, and how dangerous an error would be.

But I also have verification skills that force agent to provide me a proof that changes works and are doing what they are suppose to be doing. That give me the confidence that at minimum the change is ok and did not broke anything. It makes code review easier.

2

u/wvenable Team Lead (30+ YoE) 3d ago

Git diff inside a nice GUI that allows me to navigate around. I start at the top and work my way down.

If the change is too large to do that, then it's too large to have been created.

I also almost always use plan mode and have a back and forth before any code is written. A good amount of the changes happen in the plan before the AI writes any code.

2

u/annoying_cyclist principal SWE, >15YoE 3d ago

I still read the code, more or less the way I did before LLMs 🤷🏼‍♂️. My experience working with coworkers who delegate reviewing to agents is fairly negative: their work is often half baked, I find a lot of things in my own review that they should have caught themselves, I end up resenting the for wasting my time/expecting me to do their job for them. I don't want to be that guy, so I review my own code carefully (and myself) before I ask others to look at it.

I try to make this easier on myself by making sure agents are set up to give me reviewable code. Make sure I'm clear on what they're building, make sure I have a sense of PR structure and sequencing ahead of time, etc. I also have a fairly robust skill that runs automatically and is designed to catch things that often come up in my own self review or make the work harder to review. Doesn't replace human review (I routinely catch things that these skills and the built-in functionality misses), but it makes it easier for me to spot those things and in general speeds up reviews.

3

u/Azianese 3d ago edited 3d ago
  1. Strict coding guidelines - no major refactors, renaming, etc. on first review.
  2. More strict coding guidelines - code should read smoothly, like pseudo code, with ample use of helper methods so that I mostly only need to ensure small chunks work individually.
  3. Ask it to explain the change to me first if it's large, to prime me for what I'm seeing. But I should have already known this if it was my project, because the bot would have already created a tech design, likely with visual diagrams, to help me understand.
  4. After reviewing purely logic diffs, then maybe work with the bot to do a bit of refactoring, if needed.

Edit to add that I also get the same and different bots to review the change, on top of my own manual review. As a human, I can review the code for style and ensure small chunks look good, but it's significantly harder to ensure the final orchestration interacts perfectly for the intended business output. So reviewing that is mainly what my bots are focused on.

4

u/_ak 3d ago

Start a separate review agent and get it to critically examine and review the code changes and report back to me with feedback which can then be fed back into the original code agent to address. There's no point trying to do manual reviews anymore, it's entirely futile and will eventually turn you crazy. I'm speaking from experience.

So what I'm doing that I use a proprietary tool (built a work colleague) to help me manage this, where I only directly speak to a "product manager" agent which then can spawn dedicated code or review agents of different systems (I currently use both claude and codex), delegate tasks to them, and collect and review their work to report back to me.

2

u/flerchin 3d ago

git diff

2

u/LordOfDemise 3d ago

The same way I was reviewing PRs before Claude Code existed.

3

u/creaturefeature16 WebDev/Full Stack 3d ago

Like....exactly. This sub is officially dying. Maybe it will be resurrected one day once the mania settles down a bit.

2

u/lista94 3d ago

Honestly... this workflow mirrors historical bad practices but with faster feedback loops. We used to trust junior devs' summaries; now we trust LLMs. The speed gains are illusory if bugs slip through due to over-trusting those neat little breakdowns. You end up strong-handing a codebase that looks clean but rots underneath because nobody actually read the diff. It's just wageslave efficiency theater. If you don't have automated coverage backing it up, you're just moving the bottleneck from writing to debugging later. And trust me, debugging AI slop at 2am is not how you want to spend your evening. Read the room: the tool isn't the problem, our laziness is.

1

u/mxldevs 3d ago

It sounds like you're focused on what it added as the "most important part of the change"

New code is cool, but what's important to me is what existing code it changed.

Test cases should catch breaking changes, but I would wonder if it needs to change it in the first place.

1

u/MaltePetersen 3d ago

I use a tool called diffit which is like a local pull request where you can add comments and also let the ai add comments if you want to. Then you can copy all comments with one click. Each comment says the line on which you wanted to comment making it easy for the llm to follow. Naturally there is also a diffit skill making it easy to open.

1

u/antonioerodriguez 3d ago

I normally ask it to not stage or commit changes, I open the IDE to see them and understand what is doing, and then I ask codex to change (and eventually commit)

1

u/-shrug- 3d ago

AI is fast. Have multiple new agents review it with different focuses: e.g. the DB layer, security weaknesses, code readability, matching existing code patterns. All the necessary context about decisions should be documented by the agent that wrote the code (e.g. "bumped library x to do this because of incompatibility with y") , and have a new agent review after reading that - and another one review the doc itself.

And then do 2 in your master session (not the coder), having it draw from all the reviews that were done.

1

u/tech_liu 3d ago

git add -p one hunk at a time is a decent way to force yourself to actually read the diff instead of skimming it. For bug fixes, the part that gets missed is checking the new test fails on the old code. Agents write tests that pass either way pretty often.

1

u/jyotirawattech 3d ago

I review those diffs the same way I review a rushed human PR, only I trust the commit message less. I want to see the test that would have failed before the change, and I check any new I/O, auth, or retry path by hand. If the session also edited a file that wasn't in the request, that file gets read first.

1

u/Distinct-Quality-782 2d ago

Fresh session, but give it the issue and acceptance criteria instead of the chat history. That keeps the review detached without losing what the change was supposed to do.

1

u/Impressive-Field-546 2d ago

I ask gpt for review.

1

u/Impressive-Field-546 2d ago

Its not a joke… its a paradigm shift. AI and humans dont mix well, we are too slow. Only correct way to move forward are good tests and fast CI pipeline.

Either that or moving back to months long development cycles.

1

u/Dry-Agent6494 2d ago

yes exactly

1

u/throwaway_0x90 TE/SDET[25+ yrs]@Google 2d ago

If you spend time training your own agent on the kinds of things you look for, eventually you can let your own agent be the one that's writing the code and your need to review it will slowly decrease as your trust increases.

Absent that approach, make sure you have tests you already trust. So you make changes, run tests, make changes, run tests. You should have some kind of local fast running unit-tests/smoke tests or something to quickly make sure your code is still working after big changes in your IDE or whatever you're editing code in.

1

u/Educational-Book7589 2d ago

I've found that pasting claude's code into a local editor with syntax highlighting and running it through a linter first catches 80% of the weirdness before I even read it. works better than just eyeballing it.

1

u/tech_liu 2d ago

Going through it with git add -p makes you actually look at each hunk, which beats scrolling one giant diff. Read the tests first, since a test that never failed before the change proves nothing. Past a few hundred changed lines, the review quality drops fast.

1

u/Prize_Amoeba_7868 2d ago

All three options share a problem: they're one person reading one diff. That doesn't scale. What happens when you have 20 open PRs, teammates are leaving review comments on yours, and they're waiting on you to review theirs?

I hit this and built a tool for it (disclosure: I'm the author). It's a Claude Code plugin called code-check, and it covers the three jobs:

Reviewing your own change: /code-check:review-local runs a panel of fresh subagents that never saw the session that wrote the code. A separate aggregator verifies their findings and ranks them Critical / Warning / Suggestion, anchored to lines. That's your option 3 without inventing the system each time: read the Criticals first, skim the rest.

Reviewing teammates: /code-check:review-prs works through the open PRs in a repo, newest first, and posts one inline review per PR. It skips anything it has already reviewed with nothing new.

Handling comments on your PRs: /code-check:babysit-prs picks up new review comments and failing CI. It checks each comment against the code before acting, fixes what's valid, pushes back with evidence on what isn't, replies on the thread and re-requests review.

The last two run under /loop, so the queue keeps moving while you do something else.

The bigger point is that you can do better than a clever prompt. Most of a review isn't judgment: parsing the diff, anchoring a finding to the right line, deduping, deciding what's already been reviewed, the git and GitHub calls. In code-check all of that is a plain Python CLI, deterministic and unit tested. The model only does the parts that need judgment: reading the code, weighing a finding, deciding whether a reviewer's comment is right.

And the judgment parts are evaluated continuously. There's a golden set of labelled cases replayed on every commit and in CI, plus a live eval for changes that touch review behaviour. A prompt change that doesn't measurably help gets dropped, and several of mine have been.

It isn't magic. A single review pass misses things, so I still read the core of a change myself and rely on tests for "old behaviour unchanged". But it tells me where to look first, and it keeps 20 PRs from stalling on me.

https://github.com/subhiandrews/codecheck

1

u/addy3006 1d ago

I'd combine #3 with a fresh session. Write down the behaviors the change must keep or add (like your no-children search returning exactly what it did before), then have a clean session review the diff against those, and check them with tests you read yourself. The fresh session has less bias, and your list carries the context that matters. Then I'd read only the risky parts by hand: queries, auth, data writes.

1

u/AhmedAmer2nd 1d ago

I'd start with your option 3 and treat the rest like a PR from a very fast junior. Check the behavior change first (the query, the API contract, the regression case), then scan for drive-by refactors, new dependencies, and error paths. I wouldn't rely on the same session that wrote the code to review it; a fresh session can help summarize, but you still need to run the tests and read the critical path yourself.

1

u/No-Ear843 1d ago

Projects that use AI coding will tend towards being AI at every level. Human review is just a thing AI coding projects do to feel a little better. Why even fight it? Soon most devs won't be able to read code. We all know it.

1

u/Jantro1234 1d ago edited 1d ago

A fresh review session can help reduce bias, but tests and independent checks are still essential. Also code review shouldn't stop at functionality. Checking dependencies and container vulnerabilities matters too. RapidFort focuses on reducing those software supply chain risks.

1

u/Abhay06102003 1d ago

I'd start with the intended behavior, changed interfaces, affected dependencies and verification evidence before reviewing individual lines.

Does your current workflow provide enough information to establish that the original requirements were met, or do you still have to reconstruct that from the diff yourself?

1

u/TheNewOP SWE in finance 5yoe 12h ago

I would do number 1. Line by line on the diff. AI has really just changed the game to Code Review Simulator 2026 instead of Code Monkey Simulator 2024. You think when shit goes down in prod, management is going to accept pinning the blame on Claude? Nah, it's still your name on the PR and your team responsible for the service. Granted, your teammates should be reviewing it as well but if everyone's just AI-brain-rotted, then you have to do your best reviewing Claude's code.

1

u/tech_liu 2h ago

git add -p after a session is what works for me, reading hunk by hunk is where you catch the stray refactors and renamed stuff it sneaks in.

1

u/MindCrusader 3d ago

I use specification driven development approach

AI generates me specifications (ui analysis, implementation plan, others), I read it and fix, high level plan. I know where usually AI can do wrong things. Once the plan is clear, usually the code is good quality. I still read the code, skim through low risk code (UI, details of tests, those are usually right), but keep an eye on hardest parts - architecture changes, relations between functions and screens, cache. Because I know the plan, I know which parts of the solution are the biggest risk to backfire

1

u/kpscript CTO / Staff Engineer 3d ago

Do you not generate a plan first?

1

u/random314 3d ago

You can enforce change size limit. PR description clarity, and another ai reviewer that fails the pr if the change is not consistent with what the pr or the jira ticket describes.

Then you can harden the validation stage. This is most important.

1

u/sayboom 3d ago

I read only overview on changes, sometimes tell to explain me simple that agent did, but not reading of code for long time

1

u/TechieGottaSoundByte 3d ago

I have the AI review it both in that session and in a fresh session, plus I skim the code for readability. I don't vet every bit of syntax in every line, but I need to know roughly what each stanza is doing.

We are working as a team on keeping our AI PRs small enough to be reviewed by humans. So if nothing else, I need to read it to be sure it'll be reviewable for my teammates

AI isn't buying us a lot of time with this approach, but we're seeing signs of increased code quality. Fewer regressions, fixes are easier on the rare occasions that they are needed, etc. And, we can usually answer questions about the code off of the tops of our heads.

2

u/Square_Night_7759 3d ago

I dont know a system that works for all cases.

1

u/TechieGottaSoundByte 3d ago

I agree. I can make the case for less process and more speed at a start-up that is still proving its concept and market fit.

1

u/TechieGottaSoundByte 3d ago

I have a lot of conversations with my AI along these lines: "Great work! We coded the entire major feature in a day! Now, how do we break this into multiple PRs so it's not overwhelming for the reviewers?"

1

u/tech_liu 3d ago

Test diff first catches the most. Agents love to loosen an assertion or quietly delete a case to get green, and it hides in a big diff. Running git diff --stat before anything else also shows fast if it touched files you never mentioned. That's usually where the surprises are.

-1

u/putin_my_ass 3d ago

The /code-review claude skill is quite useful:

https://www.aihero.dev/skills-code-review

code-review reviews the diff between HEAD and a fixed point you name (a commit, a branch, a tag, main, HEAD~5) along two axes. Standards asks whether the code follows how this repo writes code. Spec asks whether the code does what the originating issue or spec asked for. Each axis runs in its own sub-agent so neither sees the other's reasoning.

-1

u/shetritr 3d ago

3 is the right instinct. the order can come from a fresh session that only gets the diff, no conversation: ask it to rank the files by what breaks if they're wrong. then you read the top few line by line (the occupancy query in your example) and skim the renames and tests. the ranking is the only thing you take from the model

3

u/mothzilla Software Engineer 3d ago

Just because you use bold doesn't make you right

-1

u/ZorbaTHut Software Engineer 3d ago

I have standing instructions for Claude Code to break stuff up into reasonable pieces, with clear separations between refactor changes and addition changes, bugfixes separate, and everything else chopped up to the maximum amount reasonable.

Then I have it check all that in, and review it via a tool I wrote specifically for reviewing stacked commits.

-2

u/Practical-Pick-7215 3d ago

the hand-holding summary is the part not to trust. it describes the change it meant to make, and the wrong line is usually the one it never mentions. in your example i would open the query and search for the new field before reading any of that commentary. if the field is missing from the match, the summary can still sound right.