How the Claude Code Team Uses Verification Loops—and a Separate Grader Test—While Claude Writes ~90% of Their Code

Handing a coding task to an AI assistant without an automated check feels a lot like delegating to a confident intern: you ask for an answer, stare at the wall of output that comes back, and hope nothing subtle broke underneath. When a human has to inspect every output by hand, you can realistically supervise only one or two Claude sessions at a time before your day turns into manual diff-reading.

That bottleneck is the core theme of a November 16 engineering breakdown by Addy Osmani on the official Claude Code blog, where the team explains how they work now that roughly 90% of their code is written and reviewed by Claude. Their argument is simple: scaling from one or two assistants to dozens or hundreds running in parallel requires verification loops that make agents prove their changes with executable evidence.

How a Separate Grader Scored Up to 10 Points Higher in Internal Testing

According to the blog post, verification tasks that used to be expensive—writing test suites, benchmarks, formal specs, and full end-to-end checks—are now inexpensive to request from an agent. Once created, those checks execute as regular software, so agents can run them repeatedly without consuming large amounts of extra tokens on each pass.

In an internal experiment on generating structured files, using an independent grader to score Claude's output against a rubric lifted the completion rate by as much as 10 points over an ordinary prompt cycle, with the biggest jumps showing up on the hardest tasks. When an agent repeatedly trips over the same check—such as a test scanning logs for user data—the post recommends closing the loop by adding a hook or a clearer instruction in CLAUDE.md, which mostly prevents the issue from coming back.

Three Test Types Recommended for AI Coding Agents

Not every test suite helps an agent improve. The post warns that slow tests cause an agent to run fewer checks across batches, while flaky tests train the model to simply re-run the suite instead of repairing the broken code. (Inside the Claude Code repository, Claude is barred from bypassing unstable tests, adding sleep delays, or looping retries until green; when the underlying cause cannot be found, it removes the test and records the reason.)

In the author's view, three test categories are most worth investing in:

  • End-to-end (E2E) tests as the top single choice: While unit tests run faster and flake less often, an agent can pass narrow unit checks and still break the feature when neither the agent nor the unit test captures the full user flow. If you have to prioritize one approach, Osmani recommends E2E tests that trace real user actions—such as adding an item to a cart and reaching the confirmation page. The post advises readers to package the steps for booting and inspecting a live app inside a .claude/skills/verify skill (using browser extensions, mobile simulators via MCP, computer use, or local backend runs) so Claude knows to smoke-test changes end to end before committing.
  • Property tests for edge cases and drifted specs: Libraries such as fast-check (JS/TS), Hypothesis (Python), and proptest (Rust) throw thousands of generated inputs at rules that should never break—like round-trip encoding, non-negative account balances, or idempotent retries. Because those inputs do not share the blind spots of the agent that wrote the code, property tests are especially useful during system rewrites when documentation has drifted from actual production behavior.
  • Differential tests for large-scale migrations: When migrating a system whose behavior must stay consistent, differential tests treat the old system as the oracle—feeding identical randomized or sampled production inputs into both versions and flagging any mismatch that remains after normalizing noise such as whitespace.

Guardrails Around the Verification Pipeline: Three Strikes and Base-Branch Rules

Letting an automated change alter its own grading criteria would defeat the purpose of verification, so the Claude Code team puts strict boundaries around how checks and reviews run in their repositories:

  • Changes cannot edit the rules that judge them: During code review, the system always reads REVIEW.md from the base or default branch rather than from the pull request's incoming changes. Reviews are also tied to specific commits, so a passing review on an outdated commit no longer counts if new code is pushed mid-review.
  • Three failed rounds bring in a human: Because no engineer can read every diff at scale, failing checks decide what needs human attention. Claude runs local tests, builds, and linters first and attempts to repair failures on its own, but if a check still fails after three rounds, the agent stops and calls in a person.
  • Diff-triggered reliability checklists: Rather than expecting reviewers to memorize past incidents, the team maintains a 39-item reliability checklist where each rule has a diff trigger (for example, verifying that older transcripts still load safely when session storage changes). Claude checks only the 3 to 10 items matched by a specific diff.
  • One tuned reviewer and staged commit gates: Instead of layering an additional, pricier reviewer model above the main one, the team refines a single reviewer through REVIEW.md and carries context across rounds. They also stamp commits with how they were verified (including "none") and roll out commit gates in "observe" mode before switching to "enforce"—allowing a third attempt through after two blocks in a session so an imperfect agent does not get permanently stuck.

Even if you never touch a software repository, there is a practical takeaway worth borrowing for everyday prompting. In my view, instead of searching for a clever persona prompt and hoping the first draft holds up, you are much better off asking your AI assistant to produce the draft and then evaluate it point by point against an explicit checklist—turning your role from fixing every line yourself into defining what "done" looks like.

Jason Hunt