With one or two agents running, a human can still check each result by hand. Run more of them in parallel and the person doing the checking becomes the bottleneck. This post covers which tests the Claude Code team hands its agents and how the team keeps those tests trustworthy.

At a Glance

  • Claude writes and reviews roughly 90% of the Claude Code team’s code. The post starts from the claim that verification loops are what let you run dozens or hundreds of Claudes in parallel instead of one or two.
  • If you invest in only one test type, make it end-to-end. Property tests, which hunt for edge cases people miss, and differential tests, which treat the old system as the answer key, round out the three worth the effort.
  • Before committing, Claude runs the app through a verify skill, and a check that still fails after three fix rounds goes to a human. Review rules are read from the base branch, where a change cannot touch them.
  • The checkers get graded too, against past incidents. Missed bugs become rules, and the rules get pruned on a routine.

About the Original Post

Addy Osmani published this 10-minute post on November 16, 2026. It follows the team’s earlier code review write-up (covered in post 010 ) and goes deeper into verification. It suits engineering leads whose teams can no longer read every agent-generated change. Source: How the Claude Code team thinks about verification .

Verification Sets How Much You Can Delegate

Without a verification loop, a human has to check every result, which caps you at one or two Claudes at a time. The post cites an internal test on structured file generation: adding a separate grader that checked Claude’s output against a rubric raised task success by up to 10 points over a standard prompting loop, with the biggest gains on the hardest problems. Tests are also cheap now. An agent can write them quickly, and once written they run as ordinary software, so running them often costs few extra tokens.

Two failure modes are worth avoiding. Flaky tests teach the agent to rerun the suite instead of fixing the failing code. Slow tests get run less often, which makes it harder to pinpoint where a problem started.

Three Tests Worth Investing In

End-to-end tests

If you can only pick one, the author picks end-to-end. These tests walk a real user flow, such as adding an item to a cart, checking out, and reaching the confirmation page. That makes them hard to fool, and when they fail they say concretely what broke. The figure below shows the difference.

Unit test failure versus end-to-end test failure. Left: checkout.test.ts prints only Error: Timeout after 30s. Right: checkout.spec.ts shows a step trace where Register and Add item to cart pass and Checkout fails, a screenshot of a checkout page where the payment form failed to load and the Place order button is disabled, and a description of the failed step

Figure 1. The UNIT TEST FAILURE panel offers a single 30-second timeout and no hint of which step stalled. The END-TO-END TEST FAILURE panel returns a TRACE, a SCREENSHOT, and a WHAT STEP FAILED note explaining that Place order stayed disabled because the payment form never loaded. Source: Original post .

Unit tests run faster and flake less, yet code can pass them while the feature is broken, since neither the agent nor the test sees the whole task. With end-to-end tests, it pays to let the agent see and operate the running system, for example through a skill that boots, drives, and inspects the app with CDP , simulators, or API harnesses. A feature map that lists features from the user’s side, with paths, keyboard shortcuts, selectors, and expected results, can also serve as a guide and grading rubric.

Property tests

Many tests check only the failures their author already imagined. Property tests go after the edge cases people overlook, which is also where agents tend to fail. You state something you believe can never break, and a library such as fast-check (JS/TS), Hypothesis (Python), or proptest (Rust) generates thousands of inputs trying to prove you wrong. The post lists four kinds of properties found in almost any codebase:

  • Round-trip: Decoding an encoded value returns the original. Parsers and serializers fit here too.
  • Invariants: Conditions that always hold, such as an account balance never going negative.
  • Idempotency: Running a migration, normalization, or retry twice has the same effect as running it once.
  • Equivalence: Optimized code returns the same result as a naive but correct version.

The generated edge cases do not share the biases of the agent that wrote the code. They also help with rewrites where the spec has drifted from production behavior and can no longer serve as the reference.

Differential tests

Differential tests fit large migrations where behavior should stay the same. The old system acts as the oracle: feed both systems the same inputs, and any difference points to a bug or a breaking change. Inputs come from random generation or sampled production traffic. Irrelevant differences such as whitespace get normalized away, and a list of approved changes covers the places where the new system is supposed to differ.

The Rules the Claude Code Team Runs On

The team’s first principle is that verification means running the change, and running the app end to end matters more than tests. Claude uses the Claude Chrome extension for web changes, an iOS or Android MCP for mobile, computer use for desktop, and a locally running service for backend work. The startup steps live in a skill named verify, stored in a .claude/skills/ folder as close to the relevant code as possible, and Claude knows to run it before committing. Because it serves as the team’s smoke test harness, they have Claude iterate on it and stress test it until it is fast and reliable.

  • Failures flag what needs a human: Since reading every change is impossible, failures serve as one signal for what needs a person. Claude runs the checks and fixes what fails. If a check still fails after three rounds, Claude stops and pulls in a person. Code owners write the checks, and a check that calls in a reviewer states why.
  • A checklist triggered by the diff: Each of the 39 items on the reliability checklist names a trigger you can spot in a diff, what to check, and the incidents or PRs that motivated it. When session storage or message types change, for example, it asks whether older transcripts without the new field still load safely through --resume. Claude checks only the items whose triggers match, usually 3 to 10.
  • One reviewer, several rounds: Instead of stacking a second, pricier reviewer on top, the team tunes the primary one and its REVIEW.md, and points each round at context from earlier rounds and past failures. That costs less and finds more.
  • Rules come from the base branch: A check that the change under review can rewrite is no check at all. Code Review (Claude Code’s PR review feature) loads REVIEW.md from the base or default branch rather than from anything the pull request changed. Reviews are also tied to a specific commit. As the author puts it, “A passing review on an out-of-date commit means nothing.”
  • Cheap checks first: Claude runs tests, the build, and the linter before opening a PR. A hook that runs tests when Claude finishes, or a /goal of a passing suite, can enforce this.

New gates start in observe mode. The team stamps every commit in its own repos with how it was verified, using none for unverified ones so they are easy to query. On top of that sits a commit gate that can block a commit when the session never ran /code-review or /verify, with off, observe, and enforce modes. The post describes its behavior in prose; here it is as a flow.

flowchart TD
  A["Commit attempt"] --> B{"Session ran /code-review<br/>or /verify?"}
  B -->|"Yes"| P["Commit proceeds"]
  B -->|"No"| M{"Gate mode"}
  M -->|"off"| P
  M -->|"observe"| L["Log it, then<br/>let it through"]
  L --> P
  M -->|"enforce"| T{"Already blocked twice<br/>this session?"}
  T -->|"Yes"| P
  T -->|"No"| X["Block the commit"]

In observe mode the gate only records the commits it would have stopped, which gives the team a chance to look for false positives and make sure nobody is hurt. Enforce mode blocks the commit, and any commit can carry a note in its message explaining why it was not verified. After two blocks in one session, the next commit goes through so Claude does not get stuck, since Claude Code is not perfect either.

Testing the Checkers and Turning Misses Into Rules

The team reviews its reviewers on a regular basis. It tracks how many merged changes were reverted, how many a maintainer rejected before merge, and a size-matched set of changes that stayed clean. The Code Review team also runs a formal evaluation: for each past incident or revert, they restore the repo to its state at review time and write a one-sentence answer key, and a finding scores only if it correctly describes that bug. Merged, stable changes act as a control against over-flagging, and the tuning set stays separate from the fixed test set. Recall is measured separately for raw findings, after verification, and in the final review, which shows whether the pipeline drops bugs it had already found. The Claude Code team pushes recall up until the next gain would mean overfitting the eval rather than catching more bugs.

In the Claude Code repo, missed cases turn into rules in two ways. One mines human review comments and reverted PRs for recurring problems. A pattern must show up in at least two PRs and be identifiable from a diff, then three agents try to disprove it before a human approves it in a PR. The other replays three bug finders against a PR tied to a known incident. If at least two find the bug, it counts as detectable, and a bug missed on a small diff marks a gap worth closing with a REVIEW.md rule.

Flaky tests are handled just as strictly. Claude is not allowed to skip them, paper over them with sleeps, or rerun them until they go green, and if it cannot find the root cause it deletes the test and records why. Left alone, test suites, verification steps, and .md files only accumulate, so the team prunes them on a schedule. The post closes on the payoff: the human job shifts from reading every diff to defining what done looks like and reviewing the evidence.

Takeaways

The notes below are this blog’s own interpretation, not part of the original post.

  1. Differential testing maps almost directly onto data pipelines. Feeding the same partition through the old and new ETL and reconciling the output tables is the same idea, and turning that reconciliation into a verification step the agent runs should let you hand over far more migration work. Rounding and time zone differences fit neatly into the post’s normalization step and approved-change list.

  2. The rule that a change cannot edit its own checks is the first thing to settle before giving an agent write access. Agents that answer a failing test by loosening the expected value or the filter in a validation query are common, so validation rules and reference SQL belong outside the branch the agent works on.

  3. Stage-by-stage recall applies to NL2SQL and RAG agent evaluation as well. A final accuracy number cannot tell you whether a validation filter is throwing away correct candidates. Logging whether the right answer survives retrieval, candidate generation, and filtering shows exactly where to fix.

What to Try First

  • Create a verify skill under .claude/skills/ that boots your app and walks one core user flow end to end.
  • Pick a function that breaks often and add one property test for round-trip or idempotency behavior.
  • Check whether a PR can modify the validation rules and eval data your CI uses, and if it can, read them from the base branch instead.

Original post: How the Claude Code team thinks about verification