Ryan McCue

Don't just have agents review your code, make them run it

Having agents scan your PR and run unit tests catches a lot, but actually booting the app, clicking around and hitting your API catches real bugs both of them miss.

Having coding agents review your PRs is great and genuinely helps. I wrote earlier about how a council of models reviews my work before I do, and how most of my changes don't wait for a human reviewer anymore.

But I haven't heard many people talking about the step that actually makes me comfortable landing those changes: making the agent prove its work by spinning up the app and using it. Reading the diff and running unit tests are a good start, but actually booting the frontend UI and clicking around, hitting your API directly, testing edge cases and checking performance catches a different class of bugs and gives me way more confidence in my agents' changes.

At this point I have my agents run hands-on QA on every behavior change before a PR lands.

01 Automated tests & CI (Passed): Checks mocked flows and assertions the author already thought of. 02 Multi-model code review (Approved): Reads the diff for logic bugs, edge cases, and design. 03 Hands-on QA in the running app (Caught here): Boots the app in a sandbox, clicks the UI, hits APIs, and watches logs. Examples caught: UI click: Sign-up button bounced signed-out visitors to sign-in (unit tests + review passed). UI input: Opening a picker wiped text typed right after (3 review rounds at 9/10). Backend: Async delete failed 6 of 10 runs while rows stayed readable (8.5/10 review + CI 3/3).

Three real bugs from recent sessions that sailed past automated tests and multi-model code review, then showed up once an agent booted the app and used it.

What running the app catches

Code review and unit tests share a pretty big blind spot. A reviewer only sees how code reads, and tests only cover the cases someone (or agent) already thought to write. Real browsers, real databases, timing and responsive layouts break plenty of code that looks clean in a PR.

After I made hands-on QA required across my shipping skills, I had an agent check ~27 runs across my machines. Running the app caught 5 real bugs that both the council reviews and the test suites had missed.

A few real examples from my sessions:

  • A broken sign-up button. On a new public landing page, unit tests passed and the council approved the PR. When the agent booted the app and clicked "Create free account" as a signed-out visitor, a layout effect fired mid-navigation and bounced straight to the sign-in screen.
  • Input wiped after three 9/10 reviews. On a personal app, tests were green and three rounds of council review approved at 9/10. Live browser QA opened a picker and started typing right away, and the app immediately wiped the text.
  • A race condition that passed CI three times. On a backend sync change, all three reviewers scored it 8.5/10 with no blockers and CI passed three for three. Running the real stack repeatedly in a sandbox failed 6 of 10 runs because an async delete logged done while its rows were still readable milliseconds later.
  • Layout bugs and bad data assumptions. On other PRs that had already cleared review, rendering pages at phone and wide-screen sizes caught clipped buttons and overflowing panels, and running a reporting job against real data shape caught a metric that would have printed zero for an entire customer because their human sessions had no user ID.

How I wire it into my workflow

In my shipping skills, hands-on QA runs as a required step right after the council approves the diff, and again on the final commit before merging. Here is a trimmed piece of the checklist my agents follow:

Write a test plan first:
- each changed flow, with steps and the result you expect;
- edge cases (empty or huge inputs, another user or role, double submit,
  refresh mid-flow, back button, error paths, narrow screens);
- neighbouring flows the change could break.

Use the change:
- Web apps: open the running app in a browser and click through the plan.
- APIs and CLIs: call them directly and check status codes, bodies and
  data written.
- Watch the app's logs and the browser console while you test.

Council reviewers also list the flows and edge cases a tester should try, and those go straight into the plan. The agent boots the app in a disposable Boat sandbox, clicks or calls through every line, fixes what breaks and puts the pass/fail table in the PR description.

Docs, tests-only and CI config diffs skip the sandbox, so runs don't waste time when nothing visible changed.

The catch

There is a trade-off. Booting the real app adds time to every run, and QA is only as trustworthy as your sandbox and environment. On one CLI repo, three tests kept failing only inside our cloud sandbox, and over ~15 runs agents got used to explaining those failures away. Noisy failures train agents to ignore real red, so keeping the sandbox clean matters.

Some apps are harder to automate too. Web apps, APIs and CLIs are straightforward, and phone simulators work well, whereas desktop apps are still somewhat challenging to initially set up.

Even with those limitations, requiring hands-on QA has easily paid for itself. Having agents review a PR is a great first filter, and making them actually run the app is what gives me real confidence to land the change.