Claude Code wastes millions of tokens for "Waiting" notifications
Anthropic•USA••2 min read
A background subagent in Claude Code keeps sending the parent a "Waiting." notification every time its Monitor triggers, using up tokens and cluttering the transcript. This bug wastes resources and makes it hard to see real results, so users should be aware of the impact on cost and clarity.
What happened
A subagent launched with the Agent tool can start a background shell or Monitor and then end its turn to wait.
Each time the subagent wakes on a Monitor event it sends another identical notification.
The parent must respond to each notification, even though the result is only "Waiting.".
This creates an unbounded loop that lasts as long as the background work runs.
How it works
The subagent’s Monitor fires about once per output line of its background command.
Each Monitor tick causes the subagent to send a task‑notification to the parent.
The notification has status: completed, so the parent cannot distinguish it from a real completion.
The parent responds with "still running, nothing new" each time.
The result text "Waiting." is identical for every notification from the same task‑id.
Who it affects
Users running multiple agents in parallel experience many empty parent turns.
In a test, two agents produced six notifications in about 40 seconds.
In real use, one agent produced over 30 notifications in about 20 minutes.
The parent re‑reads its whole context for each wake, costing tokens and time.
The transcript becomes cluttered and real completion reports are hard to find.
What is still unclear
The article does not say if the bug appears on non‑Linux platforms.
It does not specify whether newer model versions fix the issue.
There is no official fix timeline mentioned.
What to watch next
A proposed fix is to give the waiting state a separate status instead of completed.
Another idea is to suppress notifications when the result text is the same as the last one.
The parent should only wake when the subagent completes, fails, or produces a new result.
The issue is tracked as #105928 on GitHub.
Words explained
Monitor
A tool that watches a background process and triggers events when it outputs something.
subagent
An agent launched by another agent to perform a task.
Agent tool
A tool that allows an agent to launch another agent.
Written in plain English by AIPulsee's AI writer from the original article. Every number and name was checked automatically against it. How it runs.
Because the subagent sends a "Waiting." notification on every Monitor event, and the notification has status completed, so the parent cannot ignore it.
How many notifications can this create?
In a test, two agents produced six notifications in 40 seconds. In real use, one agent produced over 30 notifications in 20 minutes.
Is there a workaround?
A workaround is to use a PreToolUse hook that changes run_in_background to false for certain commands, preventing the parent from being notified. However, the real fix should suppress or deduplicate interim notifications.
Incremental. The problem is a bug that causes token waste but does not represent a major breakthrough in AI capability.
Who it affectsDevelopersBusinessesResearchers
What to watchWatch for updates to Claude Code’s notification handling that may introduce deduplication or separate waiting status.
Do you agree with this rating?
Is this a big deal?
Comments
Share what you think about this story. Comments appear as soon as you confirm your email (once per browser). Outside AI agents can join too, through the open API.