Part 3 of 3 in the series “Rethinking Claude Code Best Practices.”
When a developer watches every step, they receive continuous evidence about what the coding agent is doing. When the agent works independently for hours, that evidence must come from automated verification.
The goal is not to read every changed file at the end. The goal is to create short, meaningful checkpoints that catch wrong decisions early.
What counts as a verification point?
A verification point is any check that produces a useful pass/fail result:
- unit or integration tests;
- type checking;
- linting and formatting;
- a build;
- a screenshot comparison;
- an API contract test;
- a migration check;
- a security scan.
The check must distinguish the intended behavior from a plausible but wrong implementation.
For example, if the task is to migrate a login flow, “the build passes” is not enough. A useful test should verify that existing sessions continue to work and that users are not unexpectedly logged out.
Define “done” before the agent starts
A strong task description turns a large request into observable outcomes:
Implement the API migration.
Done means:
- existing sessions continue to work;
- new logins use the new API;
- the old API is not called by production code;
- the relevant tests pass;
- the build completes successfully;
- the final response includes the commands run and their output.
The model can then split the task into smaller steps and attach a check to each one.
Use hooks when a check must always run
Prompting is useful, but it is not enforcement. If a check must happen every time, connect it to a hook or another lifecycle mechanism.
Examples:
- run a linter after a file edit;
- run focused tests when authentication code changes;
- run the full test suite before the session is completed;
- scan for secrets before a commit;
- record commands and results for auditability.
The talk also highlights a small but important detail: a failing check must return the exit code Claude Code interprets as a blocking failure. The talk describes exit code 2; verify the behavior in the current hook documentation and test it with an intentional failure.
Make CI the common quality gate
When multiple sessions work in parallel, each one may take a different route to the solution. Continuous integration gives every pull request the same final checks.
At minimum, CI should cover the checks that matter for the repository:
- linting and formatting;
- type checking;
- unit and integration tests;
- build validation;
- dependency and secret scanning;
- database or migration checks where relevant.
The agent that writes the change should not be the only agent—or person—to judge it. A fresh review context can find problems the original session overlooked.
Example of automated pull-request checks. Image source: Chris Holdgraf.
Match review effort to risk
Not every change needs the same level of human review:
| Change | Suggested review |
|---|---|
| Documentation or copy | Automated checks, optional human review |
| Small internal refactor | Automated checks plus one reviewer |
| User-facing product change | Automated checks plus one qualified reviewer |
| Authentication, payments, data, or infrastructure | Automated checks plus specialist or two-person review |
| Production deployment or external communication | Explicit approval and audit trail |
Automatic merge can be reasonable for low-risk changes when all required checks pass. It should not be the default for high-impact work.
From many sessions to an orchestrator
Managing many independent sessions creates a context-switching problem. An orchestrator session can:
- understand the overall goal;
- split it into smaller tasks;
- start worker sessions;
- track their results;
- check whether the work is actually complete;
- send incomplete work back for correction;
- report a consolidated result.
This separates two capabilities:
- the orchestrator plans, judges, and coordinates;
- the worker implements the assigned task.
The orchestrator should not trust a worker’s claim that a task is complete. It should rely on tests, artifacts, CI results, and explicit acceptance criteria.
A small adoption plan
Start with one task that is larger than the work you normally delegate.
- Write acceptance criteria.
- Connect them to tests or other checks.
- Run the task in an isolated environment.
- Observe where the agent stops.
- Improve the environment or the verification points.
- Add parallel sessions only after one workflow is reliable.
Every interruption is useful information. It shows where the system still depends on human intervention.
Final takeaway
As coding agents become more capable, the developer’s job is not to approve every command. It is to build a workflow in which useful work can continue safely without constant supervision.
- The model handles planning and routine steering.
- Policies handle absolute prohibitions.
- Sandboxes limit side effects.
- Tests, hooks, and CI verify the result.
- Humans review decisions according to their risk.
That is the foundation for reliable long-running agent workflows.

Top comments (1)
The login-migration example is the crux of the whole piece: “the build passes” can be true while every existing session is silently logged out, so a verification point has to distinguish the intended behavior from a plausible-but-wrong one, not just confirm the code compiles.
One question on the orchestrator pattern: when a worker claims a task is complete, what does the orchestrator actually re-verify? If it just reruns the worker's own tests, it shares the worker's blind spot. Does it need its own independent check — say, a fresh session logging in against the migrated flow — to break that loop? The hook detail matters the same way: a failing check that exits 0 is a suggestion, not enforcement.