If You Still Need to Open Files Changed, the Agent's PR Is Not Good Enough
When reviewing code written by an Agent, do you still need to read through the diff line by line? Ben Holmes's team says no. They use show-me to make the Agent explain the changes with diagrams, and merge-risk to evaluate five risk factors, with the goal of making the PR description speak for itself.
Ben Holmes's team at Warp works with PRs (Pull Requests) submitted by Agents every day. Here, an Agent means an AI coding assistant that can independently write code and submit PRs. They still keep final merge authority, but they are trying something counterintuitive: trying not to open GitHub's Files Changed tab—the place where you review code changes line by line.
His judgment is blunt: if a reviewer can understand a change only by looking at the diff, the Agent's PR description is not good enough. A good PR description should let someone judge whether the change is safe without having to mentally reconstruct the relationship between the code and the architecture.
To get Agents to explain changes clearly, they first used Dex Horthy's show-me skill. A skill here can be understood as a preconfigured workflow for an Agent. show-me asks the Agent to explain code in compact visual ways: for UI changes, diagram component boundaries and state flow; for backend changes, diagram the path from request to side effect; for refactors, draw a file tree. Output can be Mermaid diagrams, ASCII-style charts, or pseudocode. When Ben Holmes's open-source note-taking app added diagram support, the PR opened with a component tree that clearly showed how diagrams were loaded, saved, and connected to the editor. With that kind of description, reviewers do not need to guess from the diff; they can judge how the code maps to the existing architecture.
But understanding the change is only the first step. Before merging a PR, you also need to know the change's impact, verification, and rollback cost. Ben Holmes's team drew on Matt Pocock's PR skill and Addy Osmani's article about code review for Claude's team to summarize five risk factors:
- Consistency: Do the code, the PR description, and the problem being solved all describe the same thing? Are unrelated changes being slipped in?
- Impact: How far-reaching is the change? Does it touch sensitive areas such as authentication, permissions, or databases? If the change is isolated, review is easier; if it modifies a shared component library, the risk gets bigger.
- Verification: Were unit tests, end-to-end tests, or Computer Use (having an Agent operate the interface like a human) used to verify it? For user-visible changes, are there before-and-after screenshots or screen recordings? For performance changes, is there data?
- Rollback cost: Is this a two-way door? Can the commit be reverted or the change disabled with a feature flag, or is it a one-way door such as a destructive database migration? What will the team do if something goes wrong?
- Error detection: If production breaks, can monitoring and logs catch it, or are errors silently swallowed until users complain?
Overall risk is classified as low, medium, or high, with impact and verification weighted most heavily. You can have the implementation Agent run this assessment itself, or hand it to an independent review sub-Agent to examine it critically without assumptions. Then have the Agent write the risk factors into the PR description, with verification, impact, and rollback being the most important.
Verification must be concrete: user-visible changes must include before-and-after comparison screenshots or screen recordings, and performance-affecting changes must include measurement data. Impact should be described beyond the feature itself: for example, a seemingly simple UI change may have touched a component library, affecting multiple downstream apps. Rollback should include a step-by-step recovery plan, like an emergency playbook that the team can follow if something actually goes wrong.
Ben Holmes's team uses merge-risk before opening a PR. The Agent runs the assessment before submitting the PR and eliminates as much risk as possible in advance: removing unrelated changes, filling gaps in verification, adding monitoring for silent-failure paths, and splitting large changes into several smaller PRs.
They are also trying longer-term approaches: using GitHub labels to mark PRs with risk levels and watching the flow of risk across the whole system. At the same time, they are moving risk assessment earlier, clarifying uncertain behavioral questions during spec writing (requirements documentation) and grilling sessions (sessions where they question the Agent to clarify details), rather than waiting until implementation is done and breaking into a cold sweat during review.
If you want to try it, start with the two skills, show-me and merge-risk, and then give yourself a challenge: on your next Agent PR, do not open Files Changed, and see whether you dare to merge it.
Original article link: Original article
发布时间: 2026-11-30 05:55