5 pages for claude_code_max_concurrent_subagents.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
prompting-claude-opus-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-opus-5
…eterministic caps are the `CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH` and `CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS` environment variables and the SDK's `max_budget_usd` (typescript: `maxBudgetUsd`) option. Ol…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…gents.md#let-subagents-spawn-their-own-subagents) | | Concurrency | [`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`](/docs/en/env-vars) | `20` subagents running at once, counting every subagent Claude spawns…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS` | How many [subagents](/docs/en/sub-agents#concurrent-subagent-limit) can b…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…n the running count drops below the limit. To change the limit, set [`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`](/docs/en/env-vars) to any positive whole number. Sessions with [ultracode](/docs/en/model-c…
Week 30 · July 20–24, 2026
Claude Code CLI · in the page
whats-new/2026-w30
…e the [limit](/docs/en/sub-agents.md#concurrent-subagent-limit) with `CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS``--max-budget-usd` now enforces the cap on subagents: once spend reaches it, Claude can't sta…