How the Claude Code team verifies agent-written code
- Addy Osmani’s article says about 90% of the Claude Code team’s code is written and reviewed by Claude, so verification loops are what let them run dozens of agents at once instead of one or two.
- In internal testing on structured file generation, a separate grader checking work against a rubric improved task success by up to 10 points, with the biggest gains on the hardest problems.
- It names three kinds of tests worth investing in.
- End-to-end tests, which are hard to fool because either the whole feature works or it doesn’t.
- Property tests (fast-check, Hypothesis, proptest) for round-trips, invariants, idempotency and equivalence, which catch edge cases the agent didn’t think of.
- Differential tests, which run the old and new systems on the same inputs during migrations.
- The team’s own practices go further.
- A “verify” skill in .claude/skills/ boots and drives the real app before every commit.
- If a check still fails after three rounds, Claude stops and brings in a human.
- A 39-item reliability checklist is triggered from the diff, so usually only 3 to 10 items run.
- REVIEW.md is read from the base branch, so a change can’t modify the checks that judge it.
- A commit gate starts in observe mode, and every commit is stamped with how it was verified, including “none.”
- Missed bugs become rules only if they show up in at least two PRs and survive three agents trying to disprove them, and flaky tests get deleted with a written reason rather than retried.

