Ray's Knowledge Base
Unlock

Set the model on every subagent call: haiku to explore, sonnet to implement

PreferenceVerified 5 Oct 2026Holds anywhere
Preference. A rule, why it holds, and how to apply it.

Rule#

Set model on every subagent call. Explore (read-only search) agents use haiku. Agents that implement or edit code use sonnet. Do not let them inherit Opus.

Why#

The user corrected the agent for running research and long implementation agents on Opus. A subagent spawned without a model argument inherits the parent session's model.

How to apply#

Pass model explicitly each time. Split a big task into smaller pieces rather than upgrading the model. Thinking effort cannot be set per Agent call; it comes from the agent definition, so set "medium" there.

Also found by searching

  • which model should a subagent use
  • subagent inherited Opus from the parent session
  • Explore agent model haiku
  • long implementation agent model