Harness Engineering 6 months ahead, in a few hours.

Claude Code advisor: how to use /advisor and advisor mode

Thomas Poulain Ā·

Claude on Sonnet 5.5 consults an Opus 5.5 advisor when an error keeps coming back. The advisor reads the whole conversation and sends advice back. You turn it on with /advisor opus or the advisorModel key, and the advisor has to rank at or above your main model.

The advisor in Claude Code is a server-side tool that lets Claude consult a second, usually stronger model in the middle of a task. That second model receives the full conversation, every tool call and result included, and sends back guidance that Claude applies before it carries on. You pick the advisor model with /advisor, and Claude decides when to call it.

A lot of people search for it as ā€œadvisor modeā€. In practice, your main model keeps doing the work for the whole session and calls the advisor like any other tool. The feature is still experimental.

When does Claude call the advisor?

The timing is up to the model, with no fixed rule behind it. Per the docs, Claude tends to check in before committing to an approach and before declaring a task done. A recurring error is another common trigger.

You can ask for a consultation in your prompt, something like consult the advisor before you continue. There’s no setting to cap or force calls, so if you want more or fewer of them, say so in your instructions.

While a call runs, the transcript shows an Advising line. Once it returns, press Ctrl+O to read the guidance. If the files or a failed step contradict the advice, Claude flags the conflict instead of following it blindly.

How do I turn on the advisor in Claude Code?

From inside a session:

/advisor          # open the picker
/advisor opus     # set Opus directly
/advisor off      # turn it off

Your pick is saved as advisorModel in ~/.claude/settings.json, so it sticks across sessions. You can also set it by hand:

{ "advisorModel": "opus" }

For a one-off session, there’s a launch flag. It works even though claude --help doesn’t list it:

claude --advisor opus

To disable the tool entirely:

export CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1

What changed in recent versions?

  • v2.1.260: /advisor got a text form (/advisor, /advisor <model>, /advisor off) for places with no picker, such as -p runs, the Agent SDK, the desktop app and Remote Control.
  • v2.1.287: Sonnet 5.5 can advise Opus 4.7 and 4.8, and pairings the API would refuse are flagged up front.
  • v2.1.293: Claude Haiku 5.5 (claude-haiku-5-5) landed, usable as either the main model or the advisor.

Which model pairing should I use?

The advisor has to rank at or above your main model, or Claude Code won’t attach it. Here’s part of the pairing table from the docs:

Main modelAccepted advisors
Haiku 5.5Fable, Opus 4.7 or later, Sonnet 5 or later, Haiku 5.5
Sonnet 5.5Fable, Opus 5 or later, Sonnet 5.5
Opus 5 or Opus 5.5Fable, Opus 5 or later

Pass an alias (fable, opus, sonnet) or a full model ID like claude-opus-5-5. Haiku 4.5 can call an advisor but can’t be one, and Fable needs Fable access.

If you’re not sure where to start, run Sonnet as the main model with Opus advising. Sonnet handles the routine turns, and Opus weighs in on planning, confusing failures and the final check. Haiku with an Opus advisor costs more than Haiku alone, but per the docs it still comes in under switching the main model to Sonnet or Opus.

Subagents inherit the configured advisor, and the same pairing check runs against their own model.

How much does the advisor cost?

On every call, the advisor reads the whole conversation at its own rates, on top of what your main model uses. On API billing you pay its input and output prices. With Opus 5.5 advising, that’s the full transcript at Opus input pricing, which the v2.1.280 changelog and Anthropic’s API pricing list at $4 per million tokens. On a subscription, advisor usage counts toward your plan limits.

Turning /advisor on or off mid-session doesn’t invalidate your main model’s prompt cache. The advisor’s own read is never cached, though, so each call processes the full transcript from scratch. /usage shows session totals with the advisor included.

When is the advisor worth it?

It earns its keep on long, multi-step tasks where the quality of the plan decides how things end. A large refactor is the textbook case. It also helps when an error keeps coming back after several fixes.

On a small fix it adds very little. If every turn needs the strongest model, switch the main model with /model instead. And if you only want Opus while planning, the opusplan setting uses Opus in plan mode and Sonnet for execution.

What are the advisor’s limits?

  • Anthropic API only, so no Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform or Microsoft Foundry.
  • Claude Code turns it on through a feature flag fetched from Anthropic. A variable that blocks flag fetching, like DISABLE_TELEMETRY, keeps the advisor off.
  • If the API refuses a pairing mid-conversation, Claude Code carries on without the advisor and shows no error. A new pick only takes effect after /clear or /compact.

How do I keep advisor costs down?

Because the advisor rereads the entire history on each call, the length of your conversation drives what it costs. Clearing between tasks with /clear and compacting long sessions with /compact are what I cover in module 7 of the course. To compare model families before you settle on a pairing, module 1 walks through them.

To see these articles more often on Google, add Harness Engineering to your preferred sources.

You might also like