Claude Code Subagents Gone Wild: Developer Burns 2.76M Tokens in One Go
swong8 · reddit · 2026-08-01
A developer reported that Claude Opus 5 subagents ran unbounded while analyzing a large codebase, spawning nested subagents and burning through 2.76 million tokens in a single task, which exhausted their 5-hour usage cap.
The developer suspects that Anthropic pruned system prompts in newer models, removing previous safeguards. The issue was compounded by harness defects where failed agents kept running in the background, and their reports failed to reach the main agent, triggering massive retry loops.
Best Practice: When using subagents, explicitly limit the count (e.g., to 3), forbid them from spawning their own subagents, and avoid running them in the background.
More from coding & agent
- Tencent Releases UI-Mate-27B, a Desktop GUI Agent Model — tencent · 2026-08-24
- Comparing AI Subscriptions: DeepSeek API vs. Claude Pro vs. Local LLMs — Unlikely_Bluejay5392 · 2026-08-24
- Claude Code introduces 'Remote Control' feature to boost coding efficiency — rohanpaul_ai · 2026-08-24
- rauchg lays out fx extension philosophy: MCP, Skills, Plugins and Unix composition — AccBalanced · 2026-08-24
- Netflix details its production LLM judge: hundreds of thousands of recommendations scored weekly — omarsar0 · 2026-08-24
- smolvm passes Simon Willison's Fable 5 agent test as a secure sandbox — yawnxyz · 2026-08-24