Give Your Agent Fleet a Real Dollar Ceiling: --max-budget-usd Now Halts Background Subagents

Turns a background fan-out's worst case from unbounded into the fixed dollar cap you set, and throttles the parallel-subagent token spike Advanced 3 min read

Before Claude Code 2.1.216, hitting --max-budget-usd denied new subagent spawns but let already-running background subagents keep burning past the cap. 2.1.216 halts them at the ceiling and adds CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS (default 20) to bound how many contexts draw tokens in parallel. Upgrade and set both to give a long fan-out a true spend ceiling plus a parallelism throttle.

๐Ÿ”’ Pro tip ยท Advanced

Unlock this tip โ€” and 105 more

This is one of 106 advanced, fact-checked tactics reserved for Pro. Get the full 128-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.