How to check a Claude Code sub-agent's work before you trust it
A sub-agent finishes and reports back: "Added the page, build is clean, tests pass, committed." It reads well. But the report was written by the same model that did the work, in the same context, possibly right after it hit a problem and moved past it. A summary like that is a claim. It is not yet a result. This page gives you a short, repeatable way to check a sub-agent's output against things that exist outside its own account: files, logs, test output and a re-run.
Last checked: 10 November 2026.
Why the summary is not enough
The checks below catch common failures: a file at the wrong path, a "tests pass" nobody ran, a commit that also swept up someone else's files, or a step the agent should not have taken at all. Three things make a sub-agent's report optimistic by default.
- It grades its own work. The agent that built the thing also decides whether it is done. It shares its own assumptions, so it misses what those assumptions hide.
- It stops when the work looks done. If nothing it can run tells it otherwise, "looks done" is the only signal it has.
- Its summary is compressed. A long run becomes ten lines. Whatever it glossed over is not in those ten lines.
None of this means the agent is careless. It means you should check the work the same way you would check a change from a colleague before it goes live: against the artifact, not the description of it.
Step 0: make the work checkable before you delegate
Verification is much easier when the brief asks for checkable output. Three lines in the brief do most of the work:
- An exact deliverable path. "Write
site/pages/allergens.html", not "add an allergen page". A wrong path, or no path, is then a finding on its own. - A short, honest report with numbers. Ask for at most about 12 lines: what was built, the key numbers (rows, tests, pages built), what did not work, open questions and the commit hash. Numbers give you something to check.
- "Check it is not already done" as the first step. Agents will happily rebuild work that already exists. Ask the agent to look first (recent git history, a search for the main file name) and report what it found.
The six checks
Run these on every deliverable you are about to build on, ship or record as done. For small lookups you can do them yourself in a minute.
- The file exists where the report says. Open it. Do not trust a path you have not opened.
- One specific number matches a source. Pick one number from the report, such as "12 tests passed" or "built 23 pages". Find the same number in the test runner's own output, a log line, a row count or a file listing.
- A cheap re-run gives the same result. Re-run the tests, the build or the one command that produced the number. Look at the actual output line, not a description of it.
- It fits with everything around it. A claimed commit shows in
git log. A claimed tracker update shows on the tracker. A claimed "nothing published" matches the live page. - Scope. Compare the result with the brief. Is anything missing? Was anything done that the brief did not ask for? Pay most attention to outward-facing steps: sending, publishing, pushing to a shared remote.
- Record gaps; don't quietly fix them. If a claim does not check out, write down what was claimed and what you found. The gap usually points to something in the brief that invited guessing, or a tool that fails silently. Fix that too, or the same gap comes back next week.
| The report says | Check this |
|---|---|
| "Tests pass" | The runner's output: the count, and that nothing was skipped |
| "Added the feature" | The diff itself, not the summary of the diff |
| "The number is X" | X in the source it claims to read from |
| "Updated the tracker" | The item, and whether its state changed |
| "Nothing published" | The remote, the outbox, the live page |
Use a reviewer with a fresh context
For anything that matters, hand the checks to a second agent that did not do the work. In IT, the person who made a change does not sign it off. The same idea works here: a reviewer that starts cold does not share the builder's assumptions.
Give the reviewer three things: the original brief, the builder's report and the deliverable paths. Ask it to treat the report as a list of claims, run the cheapest check that would catch each one being false, re-run at least one thing end to end, and write a short verdict:
- PASS: all material claims confirmed, nothing out of scope.
- FIX: fixable gaps. List all of them, not just the first one.
- FAIL: the approach doesn't work, or the agent took a step it should have left to you.
Tell the reviewer not to fix things itself. A reviewer that fixes quietly hides the gap you need to see.
When the verdict is FIX, collect every known problem and send them to one fix agent in a single brief. Then review again. Cap it at two fix-and-review rounds. Fixing one finding per round costs a full cold start each time.
A worked example (invented)
A small bakery webshop. Customers often phone to ask about allergens, so the backlog has an item: "add an
allergen page". The brief names the deliverable (site/pages/allergens.html, linked from the
footer), asks for a step-zero check, and says deploying to the live site is not part of the task.
The builder's report, shortened:
Step zero: no allergen page existed. Added
site/pages/allergens.htmlwith the 14 product lines and their allergens. Footer link added.make build: built 24 pages, 0 warnings. Commita41d07c(3 files). Not deployed.
The reviewer, with a fresh context, checks it:
Verdict: FIX
Checked: 6 claims, 5 confirmed, 1 wrong, 0 could not check
Re-run: make build → "built 24 pages, 0 warnings"
Findings:
1. No earlier allergen page — confirmed: git history of site/pages/ has none.
2. allergens.html exists at the stated path — confirmed.
3. "14 product lines" — wrong: the page lists 13; the rye loaf is missing
compared with the product data file.
4. Footer link — confirmed.
5. Commit a41d07c, 3 files, all under site/ — confirmed.
6. Not deployed — confirmed: live site has no allergen page.
Fix list: add the rye loaf; re-run the build.
The report sounded complete. One number did not match its source, and that one number is the one a customer with an allergy would care about. A single fix round adds the missing line, the reviewer re-checks finding 3 and the re-run, and the verdict becomes PASS. Only then is the item recorded as done. Deploying stays with a person, because it is outward-facing.
Notice what made this cheap: the brief asked for an exact path and numbers, so each claim had something to be checked against.
Frequently asked questions
Can't I just ask the same agent to double-check its work?
You can, and it sometimes catches small slips. But it shares the context and assumptions that produced the work, so it tends to confirm itself. A second agent that starts fresh, with only the brief, the report and the files, is more likely to find what the first one talked itself past.
Does every sub-agent task need a full review?
No. For small lookups and housekeeping, run the six checks yourself; it takes a minute. Use a separate reviewer for anything that will be used, sold, published or built on.
What if the tests really do pass?
Then say so with evidence: the count from the runner's own output, and a note that nothing was skipped. "Tests pass" from the report plus the matching output line from a re-run is a result. The report alone is still a claim.
This page is the short version. The Agent-Ops Kit for Claude Code is the complete written method it comes from: a coordinator skill that briefs and runs sub-agents, the reviewer skill with its PASS / FIX / FAIL format, the brief template, the full verification checklist, a decision-card format for steps that need a human, and one complete invented example run. It is Markdown plus two small Python scripts.
See what's in the kit →Claude Code is a product of Anthropic. This page and the Agent-Ops Kit are independent work by Lerider Technologies and are not affiliated with or endorsed by Anthropic. Drafted with the help of AI and checked against the kit's own files before publication.