Evidence over trust: how the Claude Code team makes its agents check their own work
Anthropic describes which tests pay off most for agent-written code, and the rules the team follows so that a change can never adjust the check that judges it.
About 90 per cent of the code on the team behind Claude Code is written and reviewed by Claude itself. That is according to Addy Osmani of Anthropic, who explains in a technical post on claude.dev how the team gets agents to verify their work with hard evidence. In his view, such verification loops decide how much work can be handed to agents: without one, a developer has to check everything personally and can follow one or two sessions at most, while with one it can be dozens. In internal trials with structured files, a separate grader that checked the output against a rubric raised the success rate by up to 10 points, mainly on the hardest tasks.
Osmani names three kinds of tests worth the investment. End-to-end tests, which replay a complete user flow, are the hardest to fool. Property tests using libraries such as fast-check, Hypothesis or proptest generate thousands of inputs to try to break rules like reversible encoding or idempotency, catching edge cases an agent often misses. For migrations, differential tests run the old and new systems side by side on the same inputs. He also warns that flaky tests teach an agent to retry instead of fixing the code.
The team itself records in a skill called verify, in the .claude/skills/ folder, how Claude should start and click through the app before committing anything. If a check still fails after three repair attempts, Claude brings in a human. A checklist of 39 reliability items, each tied to an earlier incident, is applied only to the items relevant to the change, usually 3 to 10. Review rules in REVIEW.md are always read from the main branch, never from the pull request, so a change cannot alter its own check. A new commit gate first runs in an observe mode that only logs what it would have blocked.
Tech Bytes summarises the piece as a guide for architects and points out that the figures, such as the 90 per cent and the 10 points, come from Anthropic itself and have not been independently verified. The site stresses that tests running as ordinary software cost little extra compute, which keeps frequent checks affordable.
Transparency: this edition was compiled by Claude, made by Anthropic.