Newshot

Ask HN: Are PRs still the right way to review AI written code?

Original text(via HN AI)
Ask HN: Are PRs still the right way to review AI written code?
14 points by davidest 4 hours ago │ past │ favorite │ 8 comments
PR's were created before AI. They assume the person who opened it wrote the code and understands it, but that isn't always true anymore! I'm wondering how you guys are dealing with them now, and whether the concept of a PR should be updated for modern times? If you have opinions or ideas, hit me up, I'd love to chat :) (@DavidEstrine on X)

I'm wondering how you guys are dealing with them now, and whether the concept of a PR should be updated for modern times?

If you have opinions or ideas, hit me up, I'd love to chat :) (@DavidEstrine on X)

fwlr 1 hour ago │ next [–] Maybe the concept of AI coding should be updated for PRs? A human PR is created by human effort and is an implicit promise by the submitter that they will provide more human effort in response to reviewer questions and suggestions; perhaps an AI-driven PR should likewise include a link to the live conversation and some complimentary tokens for the reviewers to elicit more AI effort. replyfwlr 1 hour ago │ next [–] Maybe the concept of AI coding should be updated for PRs? A human PR is created by human effort and is an implicit promise by the submitter that they will provide more human effort in response to reviewer questions and suggestions; perhaps an AI-driven PR should likewise include a link to the live conversation and some complimentary tokens for the reviewers to elicit more AI effort. reply
fwlr 1 hour ago │ next [–] Maybe the concept of AI coding should be updated for PRs? A human PR is created by human effort and is an implicit promise by the submitter that they will provide more human effort in response to reviewer questions and suggestions; perhaps an AI-driven PR should likewise include a link to the live conversation and some complimentary tokens for the reviewers to elicit more AI effort. reply
orsorna 3 hours ago │ prev │ next [–] A PR is a collection of commits that get merged in. It's also a staging area for discussion on those commits, and importantly the existence of the PR implies intent to merge it in to a target branch. This is not apparent from just branches and commits strewn in a repo. It's a necessary abstraction regardless of who (or what) writes the PR. replyorsorna 3 hours ago │ prev │ next [–] A PR is a collection of commits that get merged in. It's also a staging area for discussion on those commits, and importantly the existence of the PR implies intent to merge it in to a target branch. This is not apparent from just branches and commits strewn in a repo. It's a necessary abstraction regardless of who (or what) writes the PR. reply
orsorna 3 hours ago │ prev │ next [–] A PR is a collection of commits that get merged in. It's also a staging area for discussion on those commits, and importantly the existence of the PR implies intent to merge it in to a target branch. This is not apparent from just branches and commits strewn in a repo. It's a necessary abstraction regardless of who (or what) writes the PR. reply
eezing 3 hours ago │ prev │ next [–] I have been wondering this myself. The entire software development life cycle is shifting. The GitHub pull request was originally designed for humans reviewing human-written code. It feels quite antiquated these days, and I presume it is fading away. replyeezing 3 hours ago │ prev │ next [–] I have been wondering this myself. The entire software development life cycle is shifting. The GitHub pull request was originally designed for humans reviewing human-written code. It feels quite antiquated these days, and I presume it is fading away. reply
eezing 3 hours ago │ prev │ next [–] I have been wondering this myself. The entire software development life cycle is shifting. The GitHub pull request was originally designed for humans reviewing human-written code. It feels quite antiquated these days, and I presume it is fading away. reply
jmathai 1 hour ago │ prev │ next [–] Unpopular opinion. Replace human PR reviews with comprehensive automated end-to-end tests that validate functionality, performance, security, etc. Humans in the loop to get agents unstuck and to make sure they aren’t being dumb. This doesn’t require code review. replyjmathai 1 hour ago │ prev │ next [–] Unpopular opinion. Replace human PR reviews with comprehensive automated end-to-end tests that validate functionality, performance, security, etc. Humans in the loop to get agents unstuck and to make sure they aren’t being dumb. This doesn’t require code review. reply
jmathai 1 hour ago │ prev │ next [–] Unpopular opinion. Replace human PR reviews with comprehensive automated end-to-end tests that validate functionality, performance, security, etc. Humans in the loop to get agents unstuck and to make sure they aren’t being dumb. This doesn’t require code review. reply
anttiharju 1 hour ago │ parent │ next [–] What do you think about these human aspects? - I generally like to chat beforehand with who would review (I guess its mostly stamping these days) the PR whether the idea makes sense. If it's nontrivial. - If I get a large-ish PR to review I generally go chat with the author to see if they are able to articulate what's happening in it and why. Not really reviewing code these days, but reviewing the human haha. replyanttiharju 1 hour ago │ parent │ next [–] What do you think about these human aspects? - I generally like to chat beforehand with who would review (I guess its mostly stamping these days) the PR whether the idea makes sense. If it's nontrivial. - If I get a large-ish PR to review I generally go chat with the author to see if they are able to articulate what's happening in it and why. Not really reviewing code these days, but reviewing the human haha. reply
anttiharju 1 hour ago │ parent │ next [–] What do you think about these human aspects? - I generally like to chat beforehand with who would review (I guess its mostly stamping these days) the PR whether the idea makes sense. If it's nontrivial. - If I get a large-ish PR to review I generally go chat with the author to see if they are able to articulate what's happening in it and why. Not really reviewing code these days, but reviewing the human haha. reply
bustermellotron 2 hours ago │ prev │ next [–] Even if you’re just having AI review, if you don’t post the comments, they might go round in circles. replybustermellotron 2 hours ago │ prev │ next [–] Even if you’re just having AI review, if you don’t post the comments, they might go round in circles. reply
bustermellotron 2 hours ago │ prev │ next [–] Even if you’re just having AI review, if you don’t post the comments, they might go round in circles. reply
sourav_biswas 1 hour ago │ prev │ next [–] Well I treat my AI work more like proposals that need validations replysourav_biswas 1 hour ago │ prev │ next [–] Well I treat my AI work more like proposals that need validations reply
sourav_biswas 1 hour ago │ prev │ next [–] Well I treat my AI work more like proposals that need validations reply
bigstrat2003 2 hours ago │ prev [–] If you don't understand the code, you are derelict in your duty as an engineer. If the person submitting the code has chosen to not do his job of understanding the code, the rest of the team has a responsibility to push back. Yes, PRs are still necessary. replybigstrat2003 2 hours ago │ prev [–] If you don't understand the code, you are derelict in your duty as an engineer. If the person submitting the code has chosen to not do his job of understanding the code, the rest of the team has a responsibility to push back. Yes, PRs are still necessary. reply
bigstrat2003 2 hours ago │ prev [–] If you don't understand the code, you are derelict in your duty as an engineer. If the person submitting the code has chosen to not do his job of understanding the code, the rest of the team has a responsibility to push back. Yes, PRs are still necessary. reply

Humans in the loop to get agents unstuck and to make sure they aren’t being dumb. This doesn’t require code review.

  • I generally like to chat beforehand with who would review (I guess its mostly stamping these days) the PR whether the idea makes sense. If it's nontrivial.
  • If I get a large-ish PR to review I generally go chat with the author to see if they are able to articulate what's happening in it and why. Not really reviewing code these days, but reviewing the human haha.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗