⌨️CLAUDE_CODE_SUBAGENT_MODEL_FORCE
Also known as CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1
Set to 1, it puts one model on each helper.
Think of it like
It is like a rule that all the players wear one shirt. No one gets to pick.
Example
Emma's company caps cost by running all helpers on Haiku. With FORCE set, an agent file can ask for Opus and still get Haiku.
Why it matters
A team can be sure no helper runs on a costly model by mistake.
Definition
Example code
bash
export CLAUDE_CODE_SUBAGENT_MODEL=haiku
export CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1
claudeCommon mistake
Key takeaways
- 1Needs the model var. FORCE alone does nothing.
- 2Beats everything. Calls and agent files.
- 3Explore and Plan too. Built-ins included.