Claude Code verification: checks before done
A check can pass and still miss the bug. A page test can find the Save button while the reader can’t see it, because it looks for the button in the page, not on the screen.
A coding agent that says done has not shown you a result yet. Give it a check it has to run, and make it report what the check said:
- In the rules file: “Run the tests and read the output yourself” and “Didn’t run a check? Say so. An unrun check is not a pass” (One AGENTS.md for Claude Code and Codex).
- Split building from checking. Thariq from Anthropic’s Claude Code team found that turning effort up mostly buys more verification and edge-case testing, so a builder works on low effort and a verifier on high runs the feature first, then adds tests (Builder on low effort, verifier on high).
- A rule is something the agent reads; a check runs whether it read the rule or not. Installed as a pre-commit hook, lint stops the commit while it fails, and the lint error names the helper to use (Repeat mistakes as helpers and lint rules).
- Know when to stop: “If the same bug survives two fixes, stop” (Bug-fix loop rules for CLAUDE.md or AGENTS.md).
14 tips11K+ saves on X, as of
When a check passes
Passing-check rule: what each check misses
All checks pass and a bug still ships: each check’s command, output and coverage, and for each pass one bug it would let through.
Rules that make it check
1.9K saves
One AGENTS.md for Claude Code and Codex
Two agents, one rules file: plan first, smallest change, subagent roles, own the bug, verify before done, Lessons per correction.
740 saves
Builder on low effort, verifier on high
High effort mostly buys verification: a builder on low, a verifier on high, one CLAUDE.md rule runs each feature through both.
1.4K saves
Blast radius, red team and 3 more prompts
‘Fix this bug’ hands you defaults: what your diff touches, an end-to-end goal, a red-teamed plan, a user walk, a thinking budget.
Try to break it before you ship
2.1K saves
Pre-launch check: 4 test subagents
Try to break it yourself first: 16 questions on security, data, flows and environment, issues ranked by severity, then fixed.
487 saves
Component stress test in every state
Sample data proves little: the real component rendered in every state that matters, fixed only where a failure reproduces.
143 saves
State machine check: wrong transitions in red
Bugs between a feature’s states: every state from UI to server on one HTML page, then a numbered list with file, line and why.
Checks that stop the action
184 saves
Repeat mistakes as helpers and lint rules
The agent keeps making one mistake: the right way in a helper, the old way banned by lint, an error that names the helper to use.
662 saves
Claude Code permissions: deny, ask and allow commands
Claude deleted a config that ‘looked unused’: risky commands blocked, pushes ask first, routine ones run, deny always wins.
Ask before what can't be undone
257 saves
One-way door rules for AGENTS.md: when to ask
Questions you’d only rubber-stamp: work you can undo done and shown after, a stop at anything you can’t undo.
Checks that run without you
387 saves
Nightly routine reviewing the day’s pushes
Today’s pushes to main, reviewed while you sleep: a draft PR per bug with a test that fails first, in the cloud, laptop closed.
Parallel PR checks with claude --cloud
PRs wait their turn for one machine’s checks: each head runs your gate in its own cloud session and gets a PASS or FAIL comment.
When the fixes go in circles
317 saves
Bug-fix loop rules for CLAUDE.md or AGENTS.md
Agents that both fix and review can’t stop going back and forth: stop after two failed fixes, review only this round’s changes.
3.2K saves
Bug-score rule for Astra’s code reviews
Astra flags bugs that almost never happen and Opus fixes each one: bugs scored, low scores filed as issues, code left alone.