How to configure sub-agent model in Claude Code
Claude Code let’s you to customize the sub-agent model. This is especially useful if you’re using some powerful model like Fabel 5.1
You can just do it by setting the env variable
CLAUDE_CODE_SUBAGENT_MODEL=opus
By setting this, any new sub-agents that spawns will use that configured model instead.