Search the documentation
4 pages for claude_code_subagent_model_force.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…hing other than `inherit`. 4. The lead's current model. If you set [`CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1`](/docs/en/sub-agents#run-every-subagent-on-one-model), the first two sources don't apply. Clau…
Claude Code changelog
Claude Code CLI · in the page
changelog
…auto-approved unless your environment marks them expected * Added `CLAUDE_CODE_SUBAGENT_MODEL_FORCE` to apply `CLAUDE_CODE_SUBAGENT_MODEL` (or the main model) to every subagent, ignoring per-spawn…
Model configuration
Claude Code CLI · in the page
model-config
…` field, including `inherit`, takes precedence. To change that, set [`CLAUDE_CODE_SUBAGENT_MODEL_FORCE`](/docs/en/sub-agents#run-every-subagent-on-one-model) | Note: `ANTHROPIC_SMALL_FAST_MODEL` is d…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…ates-and-models), and [workflow agent](/docs/en/workflows), also set `CLAUDE_CODE_SUBAGENT_MODEL_FORCE` to `1`. Requires Claude Code v2.1.257 or later. * If you set both variables, subagents run on t…