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
- Subsola: a free open-source 3D map of underground utilities in 10 US cities, built with Claude Code — anselm · 2026-12-02
- "CI/CD is dead": Developer lays out the AI Software Factory replacing traditional pipelines — Pavan_Belagatti · 2026-12-02
- Codex lead confirms upgraded harness not shipped yet; current one 'will seem primitive in 2-3 months' — VraserX · 2026-12-02
- banger: open-source agent skill writes hit-style Suno songs hook-first — tetsuoai · 2026-12-02
- Agent skills cut AI music video generation to under 2 hours, Suno skill released — tetsuoai · 2026-12-02
- Redditor secretly undid Claude Code's work every 10s; agent honestly reported a "ghost" — 32minutos · 2026-12-02