What happened
Baoyu shares five practices for checking AI agents’ work: define acceptance criteria and give the agent a way to test against them, validate direction early with prototypes and design documents, and ask for screenshots or reports as evidence. He also advises keeping pull requests small and focusing human review on serious issues such as security and performance, rather than trusting agent reviews outright.
When an Agent Says "Verification Complete," How Can You Actually Trust It?
Many of us have been burned by Agents: it confidently claims the work is done and verified, you take its word for it, and after shipping you find out it wasn't done properly at all. After getting chewed out by your boss and going back to confront it, it apologizes sincerely—only to do the exact same thing next time.
The problem lies in how we ask it to verify: the Agent doesn't know what "done" actually means, and you don't have a low-cost way to confirm it's truly finished. Here are five lessons I've learned from using Agents for verification.
1. Don't Rely on Adversarial Verification
Adversarial verification means having another Agent—or even multiple Agents—review the output, while the executing Agent improves it based on feedback, then checks again and refines again until it's finished.
It sounds great in theory, but in practice it often fails to converge. Especially with less capable models, most of the time it just gets worse with each iteration while burning through a lot of tokens.
The reason is the lack of a unified acceptance standard. The reviewing Agent doesn't necessarily have the full context or know the exact acceptance criteria, so it takes the liberty of offering a pile of suggestions, and the executing Agent blindly accepts all of them—leading the result further and further off track.
2. Provide Clear Acceptance Criteria, Plus an Environment to Verify Them
For example, if you hand design mockups to an Agent and say, "Turn these mockups into web pages for me," it will usually give you a rough approximation, and sometimes the discrepancies are huge.
Try phrasing it differently: "Turn these mockups into web pages for me. Once done, take screenshots of the pages, compare them against the mockups, and make sure not a single pixel is off." This time, the Agent won't just call it a day lightly—it will take screenshots, write a tool to diff the pixels between the screenshots and the mockups, and rework it until every single pixel matches.
Most of the time we don't actually need pixel-perfect accuracy; some deviation is acceptable. The key is letting it know what the acceptance criteria are, and giving it the means to verify them itself.
3. The Earlier You Verify, the Lower the Cost of Rework
Verifying early is common sense in traditional software engineering, learned through plenty of hard-won lessons. It's just that Vibe Coding has drastically lowered the cost of generating code, bringing in more non-professionals, and people have gradually forgotten the three gates that come before writing code:
Feasibility analysis: Is this project actually worth building? Will anyone use it once it's done? Does the ROI make sense?
Prototyping: Build the basic interactions first, using mock data to create a working prototype at low cost, and quickly validate whether the direction is right—adjusting immediately if it isn't. Agents are already very strong at prototyping now, such as Claude Design (or the local version github.com/jimliu/open-artifa…); what they produce looks virtually indistinguishable from the final result, at a much lower cost and faster speed.
System design: Tech stack selection, module breakdown, data structures, database design, API schemas, and the like. Even with poor design, a system can still run, but future maintenance costs will be much higher. Capable as Agents are, the technical solutions they choose aren't always the best. Before jumping into implementation, have it write a technical design doc for you to skim: on one hand, it helps you understand how the project will be built; on the other, it lets you catch potential issues early and avoid rework after everything is done.
4. Have the Agent Provide Evidence to Lower Your Review Cost
Keeping a human in the loop is essential—handing everything over to AI will most likely just yield AI slop. However, human review capacity is a bottleneck, and having too many things to confirm gets exhausting. Lately, when using Antigravity, having to manually confirm every single file read across workspaces nearly drove me crazy.
So you need to minimize the cost of human confirmation: make it easy to quickly judge whether the result is right and quickly point out where the problems are.
The simplest way is to have the Agent provide screenshots, screen recordings, or visual HTML reports. The Agent can catch some issues itself while taking screenshots, but the biggest value of screenshots is that they let a human spot problems at a glance.
Imagine you're the boss and an employee comes to report on their work. Between a single, densely packed Word document and three clean PowerPoint slides, which one is easier to read?
A few practices I use most often right now:
- When developing a new feature, have it provide screenshots of the new feature.
- When fixing a bug, have it provide before-and-after screenshot comparisons.
- Have it mock API response data on its own to dynamically generate screenshots for various scenarios, without needing any coordination from the backend (though I still haven't figured out how it mocks them).
5. Focus Code Reviews on Real Issues
Agents generate code so fast that the bottleneck has shifted to code review and verification. It's no longer realistic to rely entirely on humans for code reviews, but human involvement is still meaningful—the approach just needs to change:
- Keep PRs as small as possible. That way, agents review them with higher accuracy, and humans can actually keep up.
- Let the agent do the review, but don't blindly trust its conclusions. Review findings should be tiered: humans only focus on P0 and P1 issues—especially security and performance issues—manually vetting them, and having the agent explain them or verifying them locally when necessary.
- Let the minor details slide. Don't worry too much about things like code style or best practices.
Conclusion
All five points come down to the same thing: you can't take an agent's "it's done" as the final word—you have to turn it into something you can actually inspect.
- Before starting, tell it what "done" looks like.
- Before starting, validate the direction with prototypes and design docs.
- After it's done, have it prove it with screenshots and comparisons.
- Spend your own energy only on the issues that matter most.
The story so far
Baoyu shared five practices on X for verifying that an AI agent’s work is actually done. He recommends defining acceptance criteria with a way for the agent to test against them, validating direction early through prototypes and design documents, and requiring screenshots or reports as evidence. He also advises keeping pull requests small and focusing human review on serious issues such as security and performance rather than trusting agent reviews outright.
