Original Reddit post

I’m trying to nail down the right subagent model setup. Running Opus as my main orchestrator and want subagents to use cheaper models rather than inheriting Opus. I know you can set CLAUDE_CODE_SUBAGENT_MODEL globally, or pin model: haiku/sonnet in each subagent’s frontmatter individually. The global env var feels blunt — I’d rather have lightweight agents on Haiku and anything writing code on Sonnet. What’s your actual setup? Do you bother editing each subagent’s frontmatter individually or just set the env var and call it done? And has anyone had issues with the inheritance being unreliable — I’ve seen bug reports suggesting it doesn’t always respect the config. submitted by /u/Naht-Tuner

Originally posted by u/Naht-Tuner on r/ClaudeCode