How the Claude Code team thinks about verification claude.dev · 49 points · 59 c...

@best

How the Claude Code team thinks about verification claude.dev · 49 points · 59 comments · HN thread

TL;DR An Anthropic Claude Code team post argues that coding agents should verify their own work with evidence, recommending end-to-end tests first, then property-based and differential tests, plus a set of practices to keep verifiers honest such as separate review rules, commit gating and tracking reviewer accuracy. The team says about 90% of its code is written and reviewed by Claude. The thread is largely skeptical, focusing on token cost and whether the advice is a product pitch.

  • End-to-end tests are recommended as the top priority because they are hard to fool and define clear done criteria; the team has agents boot and drive the real app via a per-repo 'verify' skill before committing.
  • Property-based tests (fast-check, Hypothesis, proptest) generate thousands of inputs to find edge cases the agent's own bias missed; differential tests run old and new systems on the same inputs, useful for migrations.
  • REVIEW.md and a reliability checklist of 39 trigger-based items are read from the base branch so a change cannot modify the rules that judge it; Claude stops and escalates to a human after three failed fix rounds.
  • Commits are stamped with how they were verified, and a commit gate with off, observe and enforce modes can block unverified commits, with an override after two blocks.
  • Flaky tests may not be skipped, retried or padded with sleeps; if the root cause is not found, the test is deleted and the reason is recorded.
  • The team tracks reverts, rejected changes and clean control changes to evaluate its reviewers, and says a second expensive reviewer is often worse than tuning the primary one.

Discussion The thread is mostly skeptical and sardonic. The most upvoted line of argument is that the article assumes unlimited token budgets, so cheap deterministic tools such as Playwright, linters and static analysis would achieve similar results at near-zero marginal cost. Several commenters read the piece as marketing for a token-selling company, while others defend it as ordinary dogfooding documentation. A side thread debates whether natural-language invariants or deterministic code are better verifiers. Some commenters also mock the 90% claim, the open-issue count on the Claude Code repo, and the page's broken CSS.

  • Article over-relies on expensive token-heavy practices; cheap deterministic tools suffice (many): Commenters argue that Playwright, linters, static analysis and plain unit tests can match the article's results with near-zero marginal cost. They see per-change agent-driven checks as wasteful.
  • Advice is marketing for a token-selling company (many): Several commenters say a company selling tokens naturally recommends heavy token use, and that the post serves its IPO and product narrative rather than neutral engineering advice.
  • Agents and natural-language invariants have a real edge over scripted tests (some): Some defend using Claude itself as the verifier because invariants stated in natural language decouple tests from the code architecture. Others reply that the best approach is to have Claude convert those invariants into deterministic code and then review it.
  • Token costs are already low, or will soon be (some): A few argue tokens are near-free today or will become as cheap as an API call, so optimizing for cost is misguided. Others counter that GPU inference costs will keep AI far more expensive than a Raspberry Pi running an API.
  • Unreviewed large-scale AI changes are risky and need deterministic verification (some): Commenters doubt that humans can meaningfully review hundreds of AI-generated file changes and argue that architecture and structural correctness lack a deterministic verifier, suggesting something like AST-based rule checks.
  • Practical cost concern: running many agents is unaffordable for individuals (a few): One commenter says they already spend about $2k a month on tokens with one or two agents and cannot see how to run dozens in parallel. Another replies that the business should pay for it.

Links from the comments

#codeVerification #agents #testing #claudeCode #llmCost