On this page
If your Claude Code limit keeps running out, the usual cause is simple: the biggest model is doing every job. Planning a feature and looking up a file cost the same premium rate. This setup gives each job to the model that fits it.
Why your tokens disappear
Claude Code runs your conversation on your main model. The built-in Explore agent, the one that searches your codebase, uses that same model by default. So if your main model is Opus, every file search and every "read this file" is billed at Opus rates.
- Sonnet: your main model. It writes and runs the code.
- Opus: the advisor. It plans, untangles stuck bugs and reviews, but does not write the code.
- Haiku: the Explore agent. It searches files and reads docs.
Step 1: Make Sonnet your main model
In Claude Code, run:
/model sonnetSonnet now writes and runs your code. For most everyday work it is more than enough, and Claude Code keeps it as your default for new sessions.
Step 2: Make Opus the advisor
/advisor opusOpus stops touching the code. Sonnet calls on it only at the hard moments: planning a feature, a bug that keeps coming back, or a final check of the work. To make both choices permanent, add them to your settings:
{
"model": "sonnet",
"advisorModel": "opus"
}The advisor tool is still marked experimental. Each advisor call is billed at Opus rates on top of your main model, but because Opus only steps in now and then, a faster main model with a stronger advisor typically costs less than running Opus for everything.
Step 3: Send file searches to Haiku
Create this file in your project root:
---
name: Explore
description: Fast read-only file search
model: haiku
tools: Read, Grep, Glob
---
Search the codebase quickly and report concise findings. Read-only.An agent named Explore in your project replaces the built-in one, and model: haiku moves all that searching to the cheapest model. Keep the tools line: it limits the agent to reading and searching. Writing "read-only" in the description alone does not stop it from editing files.
Want it in every project? Save the same file in ~/.claude/agents/ instead.
Opus thinks. Sonnet codes. Haiku searches.
Check that it worked
- Run /model and confirm Sonnet is selected.
- Run /agents and look for your Explore agent on Haiku.
- Watch your usage for a few days and compare it with before.
The whole setup at a glance
# 1. Sonnet writes the code
/model sonnet
# 2. Opus only advises on the hard parts
/advisor opus
# 3. Haiku does the searching
mkdir -p .claude/agents
# then save .claude/agents/Explore.md (see step 3)Frequently asked questions
Will Sonnet write worse code than Opus?
For most everyday tasks Sonnet is plenty. The hard calls, like planning and stubborn bugs, still get Opus through the advisor.
How much will I save?
It depends on how you work, and Anthropic does not publish a fixed figure. The saving comes from Opus no longer doing routine work such as searching and reading files.
Is the advisor tool safe to use?
It is marked experimental in Claude Code. Turn it on, then keep an eye on your usage for a few days.
How do I undo it?
Run /model opus to switch back, run /advisor to change or switch off the advisor, and delete .claude/agents/Explore.md.
