Sonnet-Main, Opus-advisor, Haiku-subagents… Splits your Claude Code session across three models
Model configuration in Claude Code is usually one decision: which model runs the session. That is a single slider for three different jobs. There is the driver that reads your code and edits files, there is the second opinion you want at the hard moments, and there is the fan-out work that never needed a frontier model. // Detect dark theme var iframe =…
Claude Code allows configuring a session to split across three models: the main model for driving the session, an advisor model for consulting during hard moments, and a subagent model for unimportant tasks. The configuration is done through a single command: npx claude-code-templates@latest --setting model/sonnet-opus-advisor-haiku-subagents.
This sets Sonnet as the main model, Opus as the advisor, and Haiku as the subagent model. The advisor is a server-side tool that receives the conversation, including tool calls and their results, and decides when to intervene. Subagents ignore any model specified in their frontmatter and use Haiku by default. The configuration is stored in a settings file and can be toggled on or off using the /advisor command. The feature is experimental and only works with the Anthropic API.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to