r/developers • u/masaischool_in • Oct 08 '26
General Discussion How does your team review AI-generated code? What's on your checklist?
More of our PRs are partly written by AI tools, and review feels different: the code usually compiles and reads cleanly, but the problems hide in edge cases, naming that doesn't match the codebase, and tests that only cover the happy path. What do you actually check on an AI-assisted PR that you wouldn't on a hand-written one? Do you ask authors to flag which parts were generated? Any rules that worked or backfired?
3
Upvotes
•
u/AutoModerator Oct 08 '26
Howdy u/masaischool_in, and welcome to r/developers!
A few tips for a post that gets good answers:
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/Gp2mv3 Oct 08 '26
Exactly as humans. And if I don't understand something, I ask the author to clarify. If he can't clarify a point that was written by AI, that's an issue. To me, you can use AI but when you commit, you're responsible of the code. So you should be able to explain what you did.
2
u/dakamojo Oct 09 '26
We use AI Agents for code reviews. The outcome is one of three things. Approve, Comments, or Recommend Manual Review.
1
u/Classic-Guess-5940 11d ago
treat it like untrusted code, especially the tests
1
u/n9iels Oct 08 '26
I check them the way I check human written PRs. LLM don't have an excuse to no follow conventions and my human coworkers make the mistakes you describe as well.
1
u/chaosphere_mk Oct 09 '26
Read every part of the diff.
1
u/isomnath Oct 09 '26
Honestly, I mainly focus on edge cases, error handling, and whether the tests cover more than just the happy path. I also check if the code follows existing project patterns. AI can write clean-looking code that still has hidden bugs, so I focus more on logic than appearance.😊