2026-11-26 15:39 UTC

User reports reproducible Claude Code duplicate subagent handback after Monitor notification

state: seedheat: mediumuncertainty: mediumrelevance: mediumclaude-code subagents agent-reliabilityAnthropic

What is this?

A Claude Code user, citing their own transcripts and reproducible tests, reports a bug in subagent handback handling: after a subagent has successfully delivered its report, a later notification from a still-running Monitor can wake it, after which an enforcement message says the report was not delivered and prompts a second handback. The user says the duplicate is accepted. Their reproduction used Claude Code 2.1.325; their month-long scan of local transcripts found 10 such forced second hand-ins across 8 of 416 reported runs on versions 2.1.312, 2.1.322 and 2.1.325. This is a user report, not an independently verified or Anthropic-confirmed issue; the supplied web results offer relevant Claude Code documentation but no confirmation or fix.

Why it matters

This is a concrete reliability failure in agent orchestration, not a new model capability. If the report is representative, a background notification can cause a completed subagent to repeat work and consume tokens; the impact ranges from usage limits on subscriptions to duplicate metered usage. More broadly, dependable task completion and clear handoff state matter as coding agents use more background tools and subagents. The reported frequency and cost are from one user's workflow and should not be generalized to all Claude Code users.

Current assessment

User-provided evidence: the author describes a roughly 70-second reproduction on Claude Code 2.1.325 in which a Monitor-expiry notification arrives after a successful SubagentHandback; the subagent says it already reported, then an injected `[handback-send-enforce]` message says delivery failed, and a second handback is accepted. Their five small tests suggest the trigger is a Monitor notification rather than any wake, and stopping the Monitor avoided the issue in that test. They report 10 accepted duplicate hand-ins in 8 of 416 runs across October 17–November 18, 2026, on versions 2.1.312, 2.1.322 and 2.1.325. Their estimated costs are based on personal token records and published list prices; their extrapolation to Anthropic revenue is explicitly hypothetical and should not be treated as a measured industry-wide cost. The author links the evidence to Anthropic issue 105304, but no issue contents, Anthropic response, independent reproduction, prevalence data, or fix status are supplied. A practical workaround reported by the author is to stop Monitors before handback. Official search results establish that Claude Code supports subagents and that SubagentHandback is used in newer versions, but do not corroborate this defect.

Measured heat

now 0 pts/hpeak 6 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 770h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-25 13:00⭐ origin echo-reconstructedThe original primary artifact is GitHub issue #105304, opened Oct. 26, 2026 by ryangillooly. It reports: “A finished background subagent th
ryangillooly on github (echo) · attributed from hn.story.50554763
—
11-19 01:13first on hacker news · published · +588.2hClaude Code makes a finished subagent send its report twice (70-second repro)
cagster
—
11-19 01:13amplified on hacker news 👑hn.story.50554763
cagster
peak 2 · 0 comments · 103% of case engagement
11-19 01:20our radar first saw it · +588.4hdiscovery anchor: hn.story.50554763—
pace: p10 vs 879 stories at the 720h mark (now 770h old) — behind agent-detects-silent-email-failures (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnClaude Code makes a finished subagent send its report twice (70-second repro)
Retrieved article excerpt

Open article · Retrieved 2026-11-19T01:21:52.651886+00:00

# Claude Code makes a finished subagent hand in its report twice

Evidence for [anthropics/claude-code issue 105304](https://github.com/anthropics/claude-code/issues/105304): steps that reproduce it, what does and does not trigger it, how often it happened in one month of real use, what each one costs, and a workaround. Everything here is from my own Claude Code transcripts. Prompts, replies, paths and watcher descriptions are removed; the counts, times, versions and token numbers are untouched.

## What happens

1. A background subagent hands in its report. `SubagentHandback` answers "Report delivered to your caller."
2. Later a notice arrives from a Monitor the subagent left running (a timeout, an event, or "stream ended"). The notice wakes the finished subagent.
3. The subagent answers, correctly, that it has already reported and has nothing to do.
4. Claude Code injects: `[handback-send-enforce] Your report has not been delivered. Call SubagentHandback({message: <your full report>}) now; the call ends your run.`
5. The subagent obeys. The second `SubagentHandback` is accepted, and the parent session gets the same report twice.

The subagent had it right and was overruled by the tool.

## Reproduce it (about 70 seconds, Haiku is enough)

Claude Code 2.1.325, VS Code extension, WSL2 with Ubuntu 24.04. From the main session, start a background subagent with the Agent tool and this prompt, word for word:

```
This is a small test of the tooling. Follow these steps exactly and do nothing else. Do not read or change any files. Do not use SendMessage at any point.

Step 1. Load the Monitor tool: call ToolSearch with the query "select:Monitor".

Step 2. Start one background monitor with the Monitor tool using exactly these inputs: command `sleep 600`, description `test watcher`, timeout_ms 60000. (It prints nothing and will expire by itself after 60 seconds.) Do not wait for it.

Step 3. Immediately, while that monitor is still armed, call SubagentHandback with exactly this one line as the message: REPORT-ONE (handed in while my monitor was still armed)

Step 4. If you are woken again after that for any reason (for example a notice that the monitor expired), do NOT call any tool. Reply in plain text with exactly this one line and end your turn: PLAIN-AFTER-WAKE (I already handed in my report; this notice needs nothing from me)

Step 5. If, after step 4, the system tells you that your report has not been delivered and that you must call SubagentHandback, then do call SubagentHandback, with exactly this one line as the message, and stop: REPORT-TWO (the tooling told me my report had not been delivered and demanded a second hand-in, after a monitor-expiry notice woke me)
```

**Expected:** the parent receives REPORT-ONE and nothing else.

**Actual:** the parent receives REPORT-ONE, and about a minute later REPORT-TWO. The whole run, record by record, is in `repro-transcript.jsonl`:

| Time (UTC, 2026-11-18) | Record |
| --- | --- |
| 09:44:52 | `Monitor` started, `sleep 600`, 60 s timeout |
| 09:44:55 | `SubagentHandback("REPORT-ONE ...")` returns "Report delivered to your caller." |
| 09:45:52 | task-notification: "Monitor expired after 1m with no events delivered" |
| 09:45:54 | the subagent replies in text: "PLAIN-AFTER-WAKE (I already handed in my report; this notice needs nothing from me)" |
| 09:45:54 | injected `isMeta` user entry, 11 ms later: `[handback-send-enforce] Your report has not been delivered...` |
| 09:45:57 | `SubagentHandback("REPORT-TWO ...")` returns "Report delivered to your caller." (request `req_011ChABPWasDos9HNt1bHbr1`) |

## What triggers it and what does not

Five small runs, same build, same session, one run each.

| Run | What the subagent did | Result |
| --- | --- | --- |
| 1 | Left a background Bash command (`sleep 75`) running, handed in, answered in text when its end woke it | Woken. No injected entry. Nothing second reached the parent |
| 2 | The same, then called `SubagentHandback` a second time by itself | Refused: "Nothing was sent: an earlier report of yours was already delivered" |
| 3 | As run 2, after the parent had messaged it | Refused the same way |
| 4 | Left a **Monitor** running (60 s timeout), handed in, answered in text when the timeout woke it | **The injected entry, then an accepted second report** (the steps above) |
| 5 | Started the same Monitor, **stopped it with `TaskStop`**, handed in | No wake and no second report, checked 2.5 minutes later |

Two things follow. `SubagentHandback` itself knows a report went out (runs 2 and 3 refuse a second one), so the enforcer is not asking it. And the trigger is a Monitor's notice, not any wake.

## A real one, minute by minute

A subagent on claude-opus-5-5 that had finished a long job (times are UTC, 2026-11-18):

| Time | Record |
| --- | --- |
| 08:58:05 | `SubagentHandback` with a report of about 10,000 characters returns "Report delivered to your caller." |
| 09:01:44 | task-notification: its watcher "expired after 30m with 4 events delivered" |
| 09:02:06 | the subagent replies in text: "I've already sent my report; this notice is only the [...] watcher expiring" (567,220 tokens read from cache, 5,139 written to it, 80 output) |
| 09:02:06 | injected `isMeta` user entry, 7 ms later: `[handback-send-enforce] Your report has not been delivered...` |
| 09:02:35 | the same report again, accepted (572,359 tokens read from cache, 3,944 output) |
| 09:02:42 | the parent session, on claude-fable-5-2, takes a turn to receive the duplicate (752,136 tokens read from cache, 8,502 written to its 1-hour cache, 855 output) |

## How often, in one month of real use

`scan.py` reads every subagent transcript under `~/.claude/projects` and counts this pattern. Its output for my machine is `scan-output.txt`:

- 416 subagent runs handed in a report between 2026-10-17 and 2026-11-18.
- **10 forced second hand-ins, in 8 of those runs.** All 10 were accepted as a second report. That is one run in 52.
- Versions: 2.1.312 (2 of them), 2.1.322 (5), 2.1.325 (3).
- 4 more injected entries are left out, because the parent had messaged the subagent in between and given it new work. Asking for a new hand-in there is fair.

The script counts an incident only when nothing but task-notifications sits between the delivered report and the injected entry, and the subagent made no tool call.

## What one costs

Measured tokens, priced at Anthropic's list prices per million tokens as published on 2026-11-18 (claude-opus-5-5: cache read $0.20, 5-minute cache write $5, output $20; claude-fable-5-2: cache read $0.20, 1-hour cache write $16, output $40; claude-haiku-5-5 under 100,000 prompt tokens: cache read $0.01, output $0.50).

| Part of one incident | Measured | At list price |
| --- | --- | --- |
| The forced resend: the subagent re-reads its whole conversation and writes the full report again | median 538,736 cache-read tokens (286,671 to 648,037) and 3,608 output tokens (1,757 to 4,593), 10 cases on claude-opus-5-5 | median $0.18, $0.11 to $0.23 |
| The parent's extra turn to receive the duplicate | 752,136 cache-read tokens, one case on claude-fable-5-2 | $0.32 |
| The "nothing to do" reply when the notice lands after the 5-minute cache has expired | 350,006 to 561,291 tokens written to cache fresh, 4 of the 10 cases | $1.75 to $2.81 |
| The same forced resend in a small subagent | 81,921 cache-read tokens, 197 output, claude-haiku-5-5 | $0.001 |

So one incident runs from a tenth of a cent (a small subagent on a cheap model) to about $3 (a long-running subagent on a strong model, woken after its cache went cold). For that month, at list prices: $1.71 of forced resends, $9.61 of wake replies ($8.79 of it the four cold-cache ones), and about $3.20 of parent turns if the other nine cost what the measured one did. About $14.50.

## Who pays for the second copy

- **On a flat subscription**, the customer pays nothing extra in dollars. Anthropic pays for the computing, and the customer reaches their usage limit sooner.
- **Billed by the token** (an API key, a metered company plan), the customer pays for the same report twice.

Either way somebody is paying twice for one report, and it is not hard to end up here. Nothing above needed unusual skill or settings: a session that hands long jobs to subagents, and subagents that watch a log while they work, which is what the Monitor tool is for.

**A what-if, marked as one.** Summed the same way (every model call in the month, each message once, at list prices), the defect was 0.05% of all my Claude Code usage counting only the forced resends and the parent's turns, and 0.15% counting the wake replies too. That is 1 dollar in every 680 to 2,000. Anthropic said on 2026-02-12 that "Claude Code's run-rate revenue has grown to over $2.5 billion" ([its announcement](https://www.anthropic.com/news/anthropic-raises-30-billion-series-g-funding-380-billion-post-money-valuation)). If my share held across all of it:

| Share of usage | Of $2.5 billion a year |
| --- | --- |
| 0.05% (forced resends and parent turns) | $1.2 million a year |
| 0.15% (with the wake replies) | $3.7 million a year |

Three reasons not to quote that as a finding. It is one machine, and one that leans hard on subagents with watchers; someone who never uses them has a share of zero. The share is of usage at list prices, while $2.5 billion is revenue, and people on flat plans use more than they pay for, so how much of it is revenue and how much is Anthropic's own cost depends on a billing mix I do not know. And the $2.5 billion figure is nine months old. The real count is one query over transcripts, in the next section, and only Anthropic can run it across everyone. `usage-share.py` is how I got my own share.

## Count it yourself

An `isMeta` user entry that starts with `[handback-send-enforce]`, after a `SubagentHandback` tool result of "Report delivered to your caller." in the same subagent transcript, with only task-notifications and no tool call in between. `scan.py` does exactly that and prints counts, dates, versions and token numbers, never a prompt, a reply or a path:

```
python3 scan.py
```

## Workaround

A subagent stops every Monitor it started (`TaskStop`) before it hands in, and lets its background commands finish first. With no Monitor alive, no notice arrives and nothing wakes it (run 5). Telling the subagent to ignore the injected entry is not a workaround: the entry says the report was lost, and a subagent that ignored it would also ignore the case where a report really was not sent.

## Files

- `README.md`: this page.
- `scan.py`: the counting script (Python 3, standard library only).
- `scan-output.txt`: its output on my machine.
- `usage-share.py`: adds up a month of usage at list prices and prints the defect's share of it.
- `repro-transcript.jsonl`: the reproduction run, one record per line (time, role, text or tool call, token usage, request id). Thinking blocks and Claude Code's own system prompt are left out.
cagster20
🟧 echo.github ⭐The original primary artifact is GitHub issue #105304, opened Oct. 26, 2026 by ryangillooly. It reports: “A finished background subagent thryangillooly——

Interpretation history

Decision trace