The Claude Code team sets out how it checks the code Claude writes
A post on the claude.dev blog explains which tests let a coding agent prove its own work, and the habits the Claude Code team uses to keep those checks honest. With a reliable way to verify, the post argues, a team can run dozens of agents at once instead of reading every diff.
A coding agent writes more code than a person can read. If a human still has to check every change, that human sets the limit on how much work can be handed over, and in practice only one or two agents can run at a time. The answer the Claude Code team gives is to let the agent check its own work with evidence, and to put real engineering effort into those checks. On that team, the post says, about 90% of the code is written and reviewed by Claude.
In the post of 16 November, Addy Osmani names three kinds of tests worth the investment. End-to-end tests drive a real user flow, such as adding an item to a cart and checking out, and are hard to fool because the whole feature either works or does not. Property tests state something that must always hold, for example that encoding a value and decoding it again returns the original, and let a library such as fast-check, Hypothesis or proptest generate thousands of inputs to break it. Because those inputs do not share the blind spots of the agent that wrote the code, they find the edge cases agents tend to miss. Differential tests run the old and the new system on the same inputs, which suits migrations. The post also reports an internal test on structured file generation in which a separate grader, checking Claude's work against a rubric, raised task success by up to 10 points.
The second half describes the team's own practice. Running the app counts for more than tests: a skill called verify, kept in .claude/skills/ close to the code, starts the app or the simulator, and Claude uses it before committing. Claude runs the checks and fixes what fails; if a check still fails after three rounds, it stops and brings in a person. A reliability checklist of 39 items, each with a trigger that can be read from a diff, lets Claude check only the items that match, usually 3 to 10. Review rules live in a REVIEW.md that is read from the base branch, so a change cannot rewrite the rule that judges it. A commit gate with off, observe and enforce modes can block a commit when the session ran neither /code-review nor /verify, and every commit is stamped with how it was verified, including "none".
The checks are checked too. The team tracks reverted changes, changes a maintainer rejected and a size-matched set of changes that stayed clean, and it measures recall separately for raw findings, after verification and in the final review, to see where a bug that was found gets lost. A missed bug becomes a rule only when the pattern appears in at least two pull requests and can be seen in a diff; three agents then try to disprove it before a person approves it. Flaky tests may not be retried until they pass or padded with sleeps: if Claude cannot find the cause, it deletes the test and writes down why.
If a change can modify the check that judges it, the check is broken." Review rules are therefore read from the base branch, never from the pull request under review.
