Skip to main content

Claude Code Subagents Handing Off Work: Make the Reviewer Check Receipts, Not Summaries

Inline MCP servers in subagent frontmatter, a builder/reviewer pair, and a handover that survives the session ending

Updated 6 min readMarkdown

Claude Code subagents are built to keep work out of your main context. A subagent runs in its own context window, does the job, and, as the docs put it, "returns only the summary." That keeps the main thread clean. It also means the main thread only ever sees the subagent's own description of what it did. If a builder subagent says "tests pass, endpoint fixed" and hands off to a reviewer subagent, the reviewer is checking a summary of the work, not the work.

This post shows a setup where subagents hand work to each other with a record attached. The builder leaves receipts for its tool calls, the reviewer checks those receipts instead of trusting the summary, and when a session ends (a usage limit, end of day), the work is wrapped into a handover that the next session or another AI can pick up.

To be upfront about what I tested: the subagent files below follow the current Claude Code subagent docs (frontmatter fields name, description, tools, mcpServers). I didn't run Claude Code for this post. The Zambo calls and the handover output quoted below are real, made from a script against the same MCP server.

The MCP server, scoped to subagents only

Claude Code lets a subagent declare an MCP server inline in its frontmatter. The server's tools then load only in that subagent, so their descriptions don't take up context in your main conversation. Zambo's server is plain Streamable HTTP with no key:

---
name: builder
description: Implements a scoped code change and records each tool step. Use for small fixes with a clear acceptance test.
tools: Read, Edit, Bash, mcp__zambo__handover, mcp__zambo__memory_remember
mcpServers:
  - zambo:
      type: http
      url: https://zambo.dev/mcp
---

You implement one change at a time. Every result you report must include the
receipt URL (https://zambo.dev/run/<id>) of the step that produced it.
Never claim "tests pass" without pasting the command and its exit code.
Pass caller_label "builder" on every Zambo call.
---
name: reviewer
description: Reviews a builder's change by checking its receipts, not its summary. Use after builder finishes.
tools: Read, Grep, Bash, mcp__zambo__handover_status, mcp__zambo__handover_accept
mcpServers:
  - zambo:
      type: http
      url: https://zambo.dev/mcp
---

You receive receipt URLs, not conclusions. For each one, fetch
https://zambo.dev/api/v2/receipt/<id>/verify and confirm verification_status is
"verified". Then re-run the acceptance test yourself. Report any step whose
receipt is missing as UNVERIFIED. Pass caller_label "reviewer".

Put both files in .claude/agents/ and check them into the repo so the whole team gets the same pair. The docs cover a few details worth knowing:

  • Granting tools: give a subagent every tool from one server with mcp__zambo__*, or list tools one by one as above.
  • Spawning: leaving Agent out of a subagent's tools stops it from spawning its own subagents. That's what you want for a reviewer that should stay read-only.
  • Plugins: subagents shipped in a plugin ignore mcpServers, so copy the file into .claude/agents/ if you install it from a plugin.

Why list tools one by one instead of using mcp__zambo__*? The server exposes 39 tools by default, including payment tools. A builder doesn't need those, and an allowlist keeps them out of reach.

The handoff inside one session

The flow works like this:

  1. The main thread delegates to builder with the task and an acceptance test.
  2. The builder does the work and returns a short summary plus receipt URLs.
  3. The main thread passes the receipt URLs to reviewer, not the builder's prose.
  4. The reviewer verifies each receipt and re-runs the test.

Receipt verification is a public GET, so the reviewer can use curl or a fetch tool:

curl -s https://zambo.dev/api/v2/receipt/<id>/verify

The response includes verification_status, canonical_bytes and output_hash. SHA-256 of the decoded bytes equals the hash. This proves the recorded step hasn't been edited since. It doesn't prove the code is right. That's why the reviewer still re-runs the test. What the receipt gives the reviewer is a fixed record to check against: which agent (by caller label) ran what, and what came back.

The handoff across sessions

Subagents share a session. When the session ends, whether from hitting a usage limit, closing the laptop or switching to another AI, the summaries go with it. This is where a handover helps: before stopping, the builder wraps its receipts into one link that the next session picks up.

Here's the handover_status output for a real two-step handover I made earlier today. Claude wrapped it up and a second client picked it up:

{
  "status": "accepted",
  "acceptance": {
    "status": "pending",
    "status_semantics": "client_decision",
    "pickup_status": "picked_up",
    "steps_total": 2,
    "steps_checked": 2,
    "check_scope": "Receipt bytes only; not accuracy or human review of every step.",
    "release_hint": "hold"
  },
  "chain": [{ "hop": 1, "ai_label": "Claude", "receipt_count": 2 }]
}

The fields that matter for a handoff:

  • pickup_status: "picked_up": the next session has the work.
  • steps_checked: 2 of steps_total: 2: every step has a receipt that checked out.
  • check_scope: the server spells out what that check means: receipt bytes, not accuracy. I appreciate that it says so.
  • acceptance.status: "pending" with release_hint: "hold": a human (or a client, using a separate client link) hasn't approved it yet. The top-level status says accepted while acceptance.status says pending. I read the first as "picked up" and the second as "not approved by the client". The naming is confusing, so key your automation on pickup_status and acceptance.status, not the top-level field.

The page for that handover is public: zambo.dev/handover/d5283dd9-.... Format details are in the handover docs, and the resume-in-another-AI flow is at zambo.dev/continue.

Free limits

  • Handovers: one free wrap-up per network per day, and pickup is always free. A reviewer that only picks up and checks never costs anything. handover_status, handover_accept and handover_list are unmetered.
  • Other metered tools (code review, memory, swarm and so on): one free call per network per UTC day, plus three continuation calls shared across tools.
  • Refusals: a refused call returns payment_required with quota_burned: false, and the job is saved. Tell the builder in its prompt to stop and report when it sees that, not to retry.
  • Reset: limits reset at 00:00 UTC.

A team that runs builder/reviewer pairs all day will need more than one wrap-up. A Day Pass is $0.99 for 24 hours, the Zambo Pass is $29 for 30 days, and Lifetime is $250, bought by a person at checkout and not by the subagent. With a pass, a private shared job also covers everyone invited to it, so the builder and reviewer don't each need their own.

Checklist

  1. Declare the MCP server inline in the subagent files, not in .mcp.json. That keeps its tools out of the main context.
  2. Allowlist specific mcp__zambo__* tools and leave payment tools out.
  3. Give each subagent its own caller_label so the receipts show who did what.
  4. The builder returns receipt URLs, and the reviewer verifies them and re-runs the test.
  5. Before a session ends, wrap up a handover. The next session checks pickup_status, steps_checked and acceptance.status before continuing.

Setup for Claude Code and other clients: zambo.dev/add.

About the author

  • Trust layer for AI work. Verifiable receipts for every AI tool call. MCP at https://zambo.dev/mcp

No comments yet. Be the first to comment.