How to review pull requests written by AI agents
When an agent writes the code, nobody watched the work happen. What to ask of an agent's pull request, and why a rehearsed, filmed demo is a useful check.
A person who opens a pull request has been living in that feature for days. They clicked through it, broke it, fixed it. When you review their work, you are reviewing the end of a long process you could ask them about.
An agent's pull request is different. The code appeared. The tests pass. Nobody sat in front of the app while it was built. If you approve it from the diff alone, the first human to see the feature running may be a user.
This post is about closing that gap.
The diff is not the feature
Reading a diff tells you whether the code is reasonable. It does not tell you whether the button is where people expect it, whether the empty state makes sense, or whether the flow still works after the second tap.
With agents, volume makes this worse. Teams that run several agents in parallel get many pull requests a day. Reviewers end up skimming. The ones that "look fine" get merged. That is exactly where a feature that compiles but behaves strangely slips through.
If you are setting up agents for your team, a tool like Relais, an AI team that runs on your own AI subscription, will happily open those pull requests for you. The question is what you ask of each one before it lands.
What to ask of an agent's pull request
We ask four things. None of them is exotic.
1. A description written for a person. What problem does it solve, for whom, and how do you see it in the app? An agent can write this well if you ask. If the description only lists files, it is not finished.
2. A link to the ticket. The ticket says what was asked. The pull request says what was done. The gap between the two is where review matters most.
3. A list of what is left. Agents tend to report success. A good pull request says plainly what was not done: the translation that is missing, the edge case that is not handled, the screen that was not checked.
4. Proof that it runs. Not "tests pass". Proof that someone, or something, actually opened the app, did the gesture and saw the result.
The fourth one is the hardest to get. It is also the one we automated.
A filmed demo is a small end-to-end test
To film a demo, you have to run the feature. Really run it: start the app, open the screen, fill the form, tap the button, wait for the result. If any of that fails, there is no video.
That turns out to be a useful check on its own.
Pullscene reads the pull request, its commits, the ticket and the code on the branch, then writes a scene plan. Before anything is recorded, every scene is rehearsed: played for real, with a screenshot and the visible text captured at the end. If a step fails, the scene goes back to the script writer with what the app actually showed, and the plan is fixed.
This catches two kinds of problems.
Gestures that don't work. On Proofit, pull request #19, injury mode, a "Close" button was mistargeted. The rehearsal caught it, the target was fixed, and the 1 min 03 video came out with that single automatic fix.
Screens that contradict the plan. On Qelka, the plan said the IBAN result on the French version of the site would be in French. Every gesture passed. But the screenshot showed the result still in English. The voice followed the screen, and the gap went into the "what's left" list. Nobody had written a test for that. The rehearsal found it because it actually looked.
We tell the full story in Rehearse before you record.
Why the voice must follow the screen
There is a temptation, when a demo shows something unplanned, to cut the scene. Don't. A video that hides a flaw is worse than no video: it gives the reviewer false confidence.
Our rule is simple. The voice describes what you actually see. If the screen shows a problem, the problem is said out loud, and it goes into the list of what is left before release. If a scene still fails after a fix, autopilot does not record at all. The video stops at "needs review", with a screenshot of what is stuck.
For agent work, this is the point. You want the video to be honest about the feature, not flattering.
Different reviewers, different videos
The person approving the code and the person approving the feature are often not the same.
A developer wants to know which code paths changed, what the edge cases look like and how to test it by hand. Pullscene's Code review template asks for exactly that: the flow first, then the files, functions or endpoints that changed in plain words, the error states when they can be filmed, and how to test it.
A founder or a product lead wants the outcome. The Management update template is thirty seconds on what shipped, why it matters and what is left, with no code and no jargon.
You can attach more than one template to the same automation, so a single pull request can produce both. More on that in How to show code changes to non-technical people.
Where the video goes
Review happens where the pull request lives. So the most useful place for the video is a comment on the pull request itself, or on the Linear ticket it came from. It can also go to a Slack or Discord channel, or stay a share link that plays without an account.
You can trigger it automatically when a pull request opens, with filters to skip drafts, bots or certain labels. The agent opens the pull request; the demo shows up next to it.
What this does not replace
A demo is not a code review. It doesn't tell you whether the code is secure, whether the query is slow, or whether the abstraction will hurt in six months. Read the diff for that.
What it does is put the feature in front of a human before it is merged. For work nobody watched being made, that is the step most often skipped.
A short checklist
Before you approve an agent's pull request:
- the description says what users see, not just what files changed;
- the ticket is linked, and the gap between ticket and result is clear;
- "what's left" is written down;
- someone watched it run, and what they saw matches what the description claims.
The last point used to cost an afternoon. It shouldn't.