An AI agent changes a header component, sees the code compile, and reports "done". The reviewer checks out the branch and finds the header overlapping the nav on mobile - a full round trip for a bug the agent could not see.
Loop AI into the visual review, and it can resolve obvious visual bugs before they ever reach you. To do this, the agent takes screenshots in a real browser and fixes obvious issues. Double dip by using these screenshots to document your work on the PR and in a Done comment.
The screenshot is a by-product of a verification loop, not a separate step. Give the agent a browser and make the loop part of its definition of done for any UI change:
Screenshot the header on main at desktop and mobile widths, then make the change and screenshot it again at the same widths. Fix anything that looks broken before you show me the pair.
✅ Figure: Good example - A prompt that asks for the capture as part of the verification
Better still, bake the loop into AGENTS.md, a skill, or the PR template, so every UI change gets the same visual review without anyone asking for it. This is back pressure for UI work - the browser gives the agent a signal it can act on, the same way a linter or a failing test does.
Match the capture to the change:
The agent already has the capture, so put it where the review normally happens.
{{ SCREENSHOT / DONE VIDEO }} line in Do you know how to write a great Pull Request?❌ Figure: Bad example - The reviewer has to stop what they're doing, check out the branch, and run the app just to see what changed
✅ Figure: Good example - A before/after pair the agent captured during its own verification, so the change is obvious without leaving the PR
Figure: Taking advantage of tools that easily integrate with agents allows for automated UI checks
Tip: This is the developer-side twin of Do you walk through UI changes using DevTools and screen recordings?. A designer records the change they want. The agent records the change it made.