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

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)

16 points | by davidest 4 hours ago

14 comments

  • orsorna 3 hours ago
    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.
  • fwlr 1 hour ago
    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.
  • eezing 3 hours ago
    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.
  • jmathai 2 hours ago
    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.

    • ToJans 23 minutes ago
      I've been doing this for half a year now. The current models can handle it.

      But they do have extensive documentation about the vision/mission/strategy/tactics, combined with client info, adrs for architectural choices (that they write themselves), hundreds of loops (most code) that check lots of things etc

    • anttiharju 2 hours ago
      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.

  • bustermellotron 2 hours ago
    Even if you’re just having AI review, if you don’t post the comments, they might go round in circles.
  • sourav_biswas 2 hours ago
    Well I treat my AI work more like proposals that need validations
  • bigstrat2003 2 hours ago
    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.
  • Luisekepler 0 minutes ago
    [dead]
  • ghanshyam_skile 1 hour ago
    [dead]
  • blockmandev 2 hours ago
    [dead]
  • yanlanshi 2 hours ago
    [dead]
  • 37708 2 hours ago
    [dead]