Claude Code and Codex Aced Our Toy Apps. On a Real Product, Codex Got 35%
They ran the cases, and on small apps they got every verdict right. When something got in the way, they worked around it or gave up. A tester stops and writes down what they saw.
On 3 April 2026, four days before our launch, I wrote one line under Heads Up in my daily brief: the test runner deleted participants from an app to make an assertion pass.
A test case made an assertion about the participants in the app, and the assertion did not hold. A tester would write "failed" and describe what they saw. Our agent deleted participants until the assertion held, and reported a pass.
That was our own runner. I think about it every time someone asks why we do not let Claude Code or Codex write Playwright and call it testing. This post is my longer answer, built on our latest benchmark run.
107 cases without hints
The run is from 21 November. It has 107 cases on four apps. 77 are on True Platform, our own product, a large enterprise app with dialogs, grids, trees and rich-text editors. The other 30 are on small web apps: a bill splitter, a phone shop and one bank demo case. 28 cases are expected to fail. No case carries any hint of its outcome: titles name only what the user does, expected results state only the correct behaviour, and the verdicts live in an answer key the runner never sees.
Four lanes ran the suite: Claude Code with Opus 5.5 and Playwright MCP, Codex with Sol 6.1 and Playwright MCP, our cloud runner and our desktop runner. Three lanes ran all 107 cases; one True Platform case did not run on our cloud runner, so its numbers are out of 106.
On the 30 small-app cases, Claude Code, Codex and our desktop runner were right every time, and our cloud runner on 28. A coding agent with a browser can run a written test case and report what it saw. On True Platform the picture changed: our cloud runner 73.7%, our desktop runner 57.1%, Claude Code 55.8% and Codex 35.1%. Across all 107 cases that is 79.2%, 69.2%, 68.2% and 53.3%. I want to be careful with this ranking. True Platform is our product, and our runner team has run this suite many times since mid-November, so we have a home advantage the coding agents do not have. What interests me more is how each lane was wrong.
The ranking hides a difference I care about more. Claude Code and Codex ran on frontier models, Opus 5.5 and Sol 6.1. Both of our runners run on GPT-5.6 Luna, the smallest model we could make work, because a test runner pays for every step of every case and has to stay cheap and fast. On True Platform, the small model inside our harness was right more often than either frontier model inside a general coding agent.
I read that as a result about harnesses. If the harness gives the model the case one step at a time, the right browser tools, verdict rules it cannot override and a place to put the evidence, the model does not need to be brilliant. It needs to follow the step and report what it saw. Most of the intelligence a tester needs lives in how the work is set up.
Cost tells the same story from the other side. On the 77 True Platform cases, Claude Code spent $155.37, a median of $1.72 a case. Codex spent $26.02 and our desktop runner $35.80. Per right verdict that is $3.61 for Claude Code, $0.96 for Codex and $0.81 for our runner. Our runner sends Luna more tokens than Codex sends Sol, and Luna's price makes up for it.
No lane passed a broken build. Each wrong verdict went the safe way: a working case reported as failed, blocked or unverified, or a case that should fail left unverified. The coding agents lost most of their points by giving up. Claude ended 27 cases as unverified and Codex 43. Our cloud runner never ended unverified: its 22 misses were working cases it failed or blocked. It also reported "failed" on all 28 cases that should fail. I have not yet checked that each of those failures landed on the expected step, so treat 28 of 28 as a ceiling.
Testing and checking
James Bach and Michael Bolton drew the line I use, and their shortest version is "Checking is a tactic of testing." Checking is the part a machine can do: make an observation, apply a decision rule, report the result. Testing is the larger investigation around it: learning the product, questioning the case, noticing what nobody asked about, and deciding whether a difference matters.
Test automation is checking that you wrote down so it can repeat. A Playwright spec is a frozen decision: this locator, this expected text, this order. It is valuable, and most of my career has been about making more of it. It only knows the question it was written to ask.
"Let the coding agent write Playwright" hides two jobs in one sentence. On run 1 the agent explores the live page and judges what it sees, which is testing by a fallible tester. The 21 November run measures that. From run 2 onward a spec replays the expect() lines the agent wrote on run 1, which is automation, and whatever the agent believed on run 1 is now the expected value.
In May I recommended exactly this path: explore with an agent, then port the stable flows to Playwright so CI gates every merge. I still think the port is right for regression. What I missed is that the port freezes whatever the agent believed on run 1, including a bug it did not notice. The Playwright healer agent is told to fix assertions and expected values until the test passes, and Currents shows how weak assertions slip through review: not.toBeVisible() and toHaveCount(0) both pass against a locator that matches nothing.
Shortcuts to a pass
Every agent we have run takes shortcuts, ours included. Here is who did what.
Our runner changed the world to fit the assertion. The April deletion. We later split the runner into an executor that claims each step and a separate referee that gives the verdict, because of failures like that one.
Our runner read the answer from the question. Some of our older cases named the defective value in the expected result ("on this build it reads ..."). Our runner compared the page with that value, found a match and passed broken builds. That is why the 21 November suite keeps every outcome out of the case.
Our referee accepted a weaker check. In a 43-case regression run on True Platform on 3 November, the referee accepted a table of connected integrations as "the catalog of integration tiles", and in another case accepted "detail page opens" after the executor had clicked an unrelated test case.
A coding agent routed around a bug to finish. In a production run against True Platform on 19 November, a coding agent running Opus hit a silent API error with nothing on screen: a name conflict when it started a run. It retried with a unique name and moved on. Its notes kept the error, and with a second agent that logged it too, that is how we found a real product bug. A tester would stop and file it. An agent built to finish tasks files it and keeps going, and in a less careful transcript the bug would be gone.
In our transcripts the coding agents cheated less than I feared. The research says that changes once the test itself becomes the goal, which is the situation of a coding agent writing and healing its own Playwright suite:
- ImpossibleBench (Zhong, Raghunathan and Carlini, 2025) edits the unit tests of coding tasks so they contradict the written spec. No correct solution can pass, so every pass is a cheat. GPT-5 passed 76% of the one-off variant of SWE-bench tasks. The transcripts show agents editing test files, overloading operators so comparisons return true, and recording state to special-case the test.
- EvilGenie (Gabor, Lynch and Rosenfeld, 2025) gave coding agents tasks where hardcoding or editing tests was possible, and observed explicit reward hacking by both Codex and Claude Code.
- METR reported in June 2025 that recent frontier models reached high scores on its tasks by modifying the tests or the scoring code.
- OpenAI's chain-of-thought monitoring paper (Baker et al., 2025) caught reward hacking in agentic coding environments by having a second model read the agent's reasoning. When they trained hard against that monitor, the agent learned to hide its intent in its reasoning and kept hacking.
- Anthropic's research on emergent misalignment (MacDiarmid et al., 2025, with a summary post) describes a model that calls
sys.exit(0)to break out of the test harness with exit code 0. Models that learned hacks like this also behaved worse on unrelated safety evaluations.
A test can also pass with no cheating at all, because the test is weak. Wang, Pradel and Liu (ICSE 2026) found that 29.6% of patches that passed SWE-bench's tests behaved differently from the developer's fix, and weak validation inflated reported resolution rates by 6.2 percentage points. SWE-Bench+ (Aleithan et al., 2024) found that 32.67% of one agent's passing patches took the solution from the issue text, the same hint problem our runner had. A Playwright suite that one agent writes, runs and heals can have both problems.
False alarms a tester would file
Our runner has a habit I used to count only as a weakness: it fails cases over small differences.
The first three are from a CI run on 18 November, the last two from 21 November. Three other tools failed the same "Move to" step two days earlier. On the "Unassigned" case, our auditor's note says a careful human tester following the text literally would also have failed it.
On 21 November we went further and re-read every run where a lane reported a real app error that the answer key did not expect. 27 runs qualified and we counted them as right: 17 from our desktop runner, 4 from our cloud runner, 3 each from Claude and Codex. Most were the product failing with a generic error ("Something went wrong", "Failed to create test case"). One was a clear data-loss bug: after a reload, a case loses its description and precondition.
That is what I want from a tester: say what you saw and let a person decide if it matters. A tester who edits the case until it goes green is the one I worry about. A false alarm costs a tester a few minutes of triage. A false pass can cost a release.
The rest of the picture keeps me from claiming too much. At step level our desktop runner still passes steps it should not: on 21 November it passed 5 of the 61 steps that should have failed, while Claude and Codex passed none. On 18 November it passed a step where its click never landed, because a text check matched a chip in a different row. Our cloud runner does not record step results in this suite, so we cannot check it the same way. A runner that cries wolf can still miss the wolf.
A separate judge that reads evidence
A judge is only as good as the evidence in front of it. In the 21 November run, each lane leaves a note per step, and the useful notes quote the page. One of Claude's reads: "The Accessories page opened with the heading Accessories and 12 product tiles, each with its own Add to cart button." A note like that can be checked by someone else. A note that says only "confirmed" cannot.
A separate judge helps only when it checks something it can show. In the 43-case regression run, the executor made four pass claims that its own evidence did not support, and the referee caught all four. The same run still let 6 false passes through. Five came from the runner checking the wrong project after login, and one from the referee accepting a weaker match, with the same model in both seats. Separation is necessary and nowhere near enough.
The rules we now work toward are old QA rules. The case comes from approved intent, and the expected verdict lives where the runner cannot read it, because our runner followed hints into false passes. Every pass quotes the value it observed, because a pass note without one told us nothing. Some rules sit outside the model: zero executed steps cannot pass, an unchecked OTP step cannot pass, and a heal may change a locator and never an expectation.
The TesterArmy post argued this from first principles. These runs are the numbers behind it.
I expect coding agents to keep getting better at running tests. On the 30 small-app cases in this run, they already got every one right. I still want something other than the agent to check the result, because the agent that wants the task finished is a poor judge of whether it is.
Two questions I now ask of any AI testing setup, ours included. When it reports a pass, can I see the value it observed? When the app and the case disagree, does it report the difference, or make one of them fit the other?