Agent risk assessment: The cure to your code review problem

Most developers still have a trust problem with their agents.
Maybe you’re still reviewing agent code line-by-line, cursing out the 10 extra PRs pending review this afternoon. Or maybe you’re starting to trust an agent’s verification process, but can’t let go of owning the “merge” button.
This isn’t something you solve overnight just by installing a few skills. It’s something more personal that you have to build up to as you shape your system of agents to write better code.
Our team is still on this journey; we still own the final merge on every agent PR. But we’ve learned a few strategies to start bridging the gap from line-by-line scrutiny to trusting agents at their word.
Let’s discuss:
- How to have agents write better PR descriptions
- How to assess the implications of merging a PR, aka risk assessment, to feel better about shipping agent code
Letting go of “files changed”
First, let's set our goal: feel confident in a PR without clicking “files changed.” If you have to go to this GitHub tab, your agent’s PR description isn’t good enough!
Let’s take a PR description like this:

Sure, there’s some useful information here. Reading the bullets, we see that the sidebar now spans the window height, and the agent lists the files it touched and checks it ran.
But I still have to assemble a mental picture out of all these bullets: how do the components map to our app’s architecture? How does the page layout change? Is WindowTitleBar.tsx the right touchpoint?
What we need is a way to visualize all of this, ideally without blowing our token budget on screenshots and diagrams. Dex Horthy’s show-me skill is a great starting point. It asks agents to explain with compact visuals using ascii art styling, with call trees, pseudocode, or a Mermaid diagram.
For a UI change, show the component boundaries and state that matter. For a backend change, show the path from the request to its side effects. For a refactor, show the file tree.
Here’s an example from a recent PR on my open-source notetaking app adding diagram support:

Here, I get an idea of how the code maps onto the components in the app, and why particular lines were added.
Explain the implications of merging
Once you understand what was changed, you still need to understand the implications behind the change. How many users could this affect? Did the agent touch anything sensitive? If something breaks, how hard is it to undo?
We’ve reviewed other solutions around the community for this, including Matt Pocock’s PR skill and Addy Osmani’s article on how the Claude team approaches code review. We’ve distilled a set of five risk factors as a skill that we call merge-risk:
- Alignment: Does the code match the PR description and issue, or did the agent sneak in a few unrelated fixes? Any assumptions about how the feature should work should be documented here too.
- Impact: What is the blast radius, and what sensitive code paths are touched? An isolated view is easier to reason about than a shared component library, and sensitive areas like auth, permissions, or database schemas deserve closer attention regardless of how small the diff is.
- Verification: Has the agent verified the behavior with unit tests, end-to-end tests, and computer use? For user-facing changes, we want screenshots or recordings, and performance audits where necessary.
- Rollback cost: Is this a two-way door, where we can revert a commit or flip a feature flag, or a one-way door, like a destructive schema change? And, in the case of an incident, what would the team actually need to do to recover?
- Error detection: If this breaks in production, will we find out through monitoring and logs, or will the errors be silently swallowed until a user reports them?
The skill uses these categories to give an overall low, medium, or high risk assessment, with impact and verification weighted most heavily.
To apply this to your agent’s work, you can have the implementation agent run this itself, or give it to a code review subagent to critically review the work in a fresh context window.
You can also have the agent report these risk factors as a PR comment, or as fields on the PR description. We’d focus on verification, impact, and rollback for this. These give the reviewer evidence to look at, a sense of where to focus, and a plan if something goes wrong.
For verification in particular, the agent should always include before-and-after screenshots or recordings for user-facing flows. If performance is affected, include measurements so the reviewer can see the tradeoffs.
Impact is where we call out changes that reach beyond the feature itself. For example, a seemingly simple UI change could touch a component library that affects multiple apps downstream. A /show-me diagram can serve as a helpful breakdown.
Rollback should be a step-by-step guide your team can follow during an incident. Think of this like a disaster plan that you can return to post-merge to take action on.

Have agents mitigate risk before opening the PR
You can also use merge-risk as a pre-PR step to have the agent reduce risk before asking you to review. You can use this /create-pr skill as a starting point:
Before opening the PR, run the merge-risk skill and mitigate the risks it finds where possible, without changing the PR's core functionality.The agent might consider removing drive-by fixes, adding missing verification, or adding monitors to a path that would otherwise fail silently. It can also consider whether a large change would be easier to review as a few stacked PRs.
Reducing risk over time
From here, we’re exploring whether agents can deliver less risky PRs over time. We don't have a complete system for this yet, but applying GitHub labels with the overall risk assessment can be a useful starting point to see how much risk flows through the system.
We’ve also worked to move risk assessment earlier in the process. Grilling sessions and spec writing give agents a chance to settle open behavior questions with you before implementation, which should leave fewer surprises at review. We walk through that setup in Unit 2, Lesson 3 of Warp Learn.
Try it on your next agent PR
If you want to try this in your own setup, these two skills are a good starting point:
- show-me for explaining what the agent built with compact visuals.
- merge-risk for assessing and mitigating the implications of merging.
Then, take the "no files changed" challenge and tell us how it goes.
Start your software factory
Book a demo and we’ll walk you through the workflows that map to your stack.
Related articles
Nov 24, 2026Engineering
12 min
How to build a software factory you'll actually use
12 min
Nov 19, 2026Engineering
7 min
Becoming a factory engineer
7 min
Nov 16, 2026Engineering
6 min
Overcoming challenges in software factory adoption
6 min
Nov 5, 2026Engineering
9 min
Addressing the code review bottleneck
9 min
Nov 4, 2026Engineering
11 min
Don’t vibe code your software factory
11 min