Anthropicβs Claude Code is hemorrhaging tokens due to a notification logic flaw in multi-agent workflows. A new GitHub issue (#105928) highlights how lead sessions on Opus are being woken hundreds of times per week solely to receive redundant 'waiting' status updates from subagents. For teams running expensive model stacks, this isn't just an annoyance; it's a direct hit to the bottom line.
The Notification Nightmare
The core problem lies in how Claude Code handles background processes. When a subagent initiates a background poll loopβsuch as until grep -q DONE log; do sleep 10; doneβthe parent agent receives a notification every time the loop checks in. In one documented case, a lead session was woken 283 times in a single week. 132 of those wake-ups were exclusively for 'waiting' status updates, forcing the expensive Opus parent to re-read its entire context window just to learn that nothing had changed.
The Cost of Context Re-reading
Every time a parent agent is 'woken,' it must reload its context to process the notification. This is computationally trivial for the logic but financially devastating for the API bill. The issue notes that two specific teammates running background polls kept the parent pinging for 15 to 16 hours straight. The user describes this as the parent 're-reading its whole context just to learn "still waiting"'βa massive waste of tokens on a premium model.
Community Workarounds and Hooks
Until Anthropic patches the harness, developers are deploying PreToolUse hooks to suppress these notifications. One effective workaround involves intercepting Bash and PowerShell calls within subagents. If a command is set to run_in_background: true, the hook converts it to a foreground call with a long timeout, preventing the subagent from ending its turn and triggering a parent wake-up. This approach effectively silences the 'waiting' pings for standard background jobs.
Key Takeaways
- A single lead session was woken 283 times in one week, with 132 wake-ups caused solely by redundant 'waiting' notifications from subagents.
- Background poll loops can keep the parent agent pinging for 15β16 hours, forcing expensive context re-reads for no progress.
- Developers can use PreToolUse hooks to convert
run_in_background: truecalls into foreground calls with long timeouts to avoid parent wake-ups. - The ideal fix requires a harness update where subagents waiting on their own children do not notify the parent at all.
The Bottom Line
This is a classic engineering oversight: prioritizing notification verbosity over cost efficiency. While the community has built clever hooks to mitigate the damage, the real fix belongs in the Claude Code harness itself. Subagents waiting on their own children should not wake the parent; the current behavior is a token tax on patience.