AI Code Verification: Why Green Tests Aren’t Enough

Developer reviewing browser recordings as part of AI code verification for coding agents

When coding agents write ten times more code, reviewing every line by hand stops working. That is the starting point for a developer who builds Overtake, an open-source agent workspace for existing Chrome sessions, and who has changed how they approach AI code verification after watching a talk at the AI Engineer Code Summit.

The talk, “All Code Is Slop (Except Mine)”, comes from Lauren Tan, whose team at SpaceXSI runs coding agents at a scale of thousands of pull requests, with agents working in parallel.

Why reviewing everything fails

Tan’s argument does not claim that her agents stopped producing bad code. They misuse APIs, copy existing bad patterns and find workarounds that run but make the system worse. Her answer, as the developer describes it, is to build the environment so that trust in the agent matters less.

The reasoning is about attention. If an agent multiplies implementation output by ten and the safety plan is ten times as much manual review, the bottleneck has only moved. Human attention does not grow with token output.

So recurring mistakes should not be caught by people again and again. Either the environment makes the mistake hard to express, or a deterministic check catches it.

Her example is React’s useEffect. Agents kept misusing it, so her team’s framework stopped allowing product code to call it directly. There was no longer an instruction in an AGENTS.md file asking the agent to think carefully about effects. The wrong pattern was just unavailable.

Passing tests are where checking starts

Agents such as Claude now write unit tests for most of what they build. They run the tests, read the failures, change the code and run again, with linting, type checks and CI around the same loop.

The weakness is shared misunderstanding. An agent can read a requirement wrong, build the wrong thing consistently, and write sensible tests for that same wrong reading. The suite turns green because code and tests agree with each other, even if neither matches what the person wanted.

For the Overtake developer, green tests are a baseline. They show the code meets the conditions written into the suite, and nothing about behavior outside it.

Testing Overtake with Overtake

Overtake lets an agent work against a real browser: navigate, interact, inspect and observe. At some point the developer began using Overtake to test Overtake itself.

When Claude changes a browser interaction flow, the developer does not stop at passing unit tests and a reasonable-looking diff. The agent runs the flow in the live application, takes screenshots and records the session. If something breaks, the recording becomes context. The agent can inspect the failure, reproduce it, change the code and run the flow again.

That matches the part of Tan’s talk about review moving toward screenshots, videos, diagrams and runtime evidence. Source code can look fine while the running software does something wrong, and a browser only runs what it is given.

AI code verification beyond tests: a fresh verifier, an attacker and a benchmark

The developer also separates the agent that writes code from the one that checks it. Once expected behavior and test setup are clear, a fresh subagent that never saw the implementation can verify the work. It needs to know what the software should do and how to check it. It does not need the history of why Claude chose one approach.

Adding more reviewers has limits. Five agents saying “LGTM” are five opinions about the same code. Overtake gives agents access to a real browser environment and existing authenticated sessions, so the developer asks a security-oriented pass how it would break the system, and lets it probe the attack surface in a test environment.

Performance claims get a benchmark. For Overtake that meant measuring the browser and transport path, the agent runtime, tool errors, token usage and end-to-end completion. If the number does not improve, the optimization did not help.

Different checks fail in different ways

The developer does not describe this as AI reviewing AI. A unit test, a real browser run, a fresh verifier, a security probe and a benchmark each expose a different kind of error. They can still miss the same bug, but together they make the code show itself in several ways.

One consequence is where the budget goes. Producing another implementation is getting cheap, and what is scarce is confidence. If an agent can rerun a browser flow or compare a benchmark for little cost, a team can afford to doubt far more often than a purely human workflow allowed.

What teams can do with this

For teams adopting agents, the practical steps follow from the talk. Turn repeated review comments into constraints or automated checks. Collect runtime evidence such as recordings and screenshots. Use a separate agent to verify, and measure instead of accepting claims.

The developer’s own conclusion about verification is modest: their agents write bad code too. The goal of AI code verification is to leave those mistakes with fewer places to hide.

Source: Builder by Classmethod Danang

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.