The model field on a subagent accepts haiku, sonnet, opus, a full model ID, or inherit, which is the default. Exploration does not need the strongest model: the built-in Explore subagent already runs on Haiku, and a custom search subagent should do the same.
Before you start
You need a custom subagent that searches or explores, for example a codebase researcher. Note the cost difference matters most on long searches, not on a single question.
Set the model field in the frontmatter
Open the subagent file and set model to haiku in the frontmatter. A user or project subagent named Explore overrides the built-in one and keeps its own model field, so define one with model: haiku to run exploration on a lower-cost model. To force one model onto every subagent, use the run-every-subagent-on-one-model setting instead.
Test a search and check the result quality
Ask the subagent to find where a feature lives and check the answer names the right files. If the answer is vague, the problem is usually the description or the tools, not the model: a cheaper model with a clear task beats a strong model with a vague one.
Worked example: Model choice for three fictional subagents
Maple Shop is a fictional online shop with three subagents. The table shows which model each one uses.
| Subagent | Model | Why |
|---|---|---|
| explorer | haiku | Searches files and returns paths |
| reviewer | sonnet | Reasons about code patterns |
| planner | sonnet | Plans multi-step work |
Expected result (UNTESTED): the explorer returns the right file paths on haiku, and the reviewer and planner keep their stronger model. We checked the Claude Code subagents documentation, which describes the model field and the Explore override, but we did not run a subagent on this machine.
Limits
A cheaper model can miss subtle patterns a stronger model would catch, so do not put haiku on a reviewer that needs deep reasoning. The model field is per subagent: changing it does not change the main conversation model.
