The problem: one big model for everything costs too much, a small one gets the hard decisions wrong
You use the most capable model for every step and the spend goes up, or you use a cheaper one and it gets lost on
the two or three choices that matter. The idea of making two models work together comes from here, but under the
same name live four different mechanisms, which answer four different questions: opusplan changes
model at the boundary between planning and execution, the advisor lets the executor decide when to ask for an
opinion, sub-agents delegate the work wholesale to smaller models, and the fallback has nothing to do with quality,
because it exists so as not to stop when a model is overloaded. The short answer is that only advisor and
delegation are levers of cost and quality, and each is measured against two alternatives: the same model at a lower
effort level, and the smaller model alone. According to Anthropic's measurements, which I attribute here and do not
reproduce, the official page says that an advisor can help only if the executor really consults it.
I do not have a key to make a pair of models work, so you will not find a result for a pair. You will find the code that compares the three arms and says when a pair does not pay off, tested on data I wrote and declared as such, a check for the fallback chain run on your version of Claude Code, and an inspection of the sub-agents of your repository. To decide whether the big model is really needed read first Fable or Opus: When Moving Up a Model Pays Off; to measure the spend What a Claude Session Costs; for the structure of sub-agents Specialized Subagents in Claude Code.
Four mechanisms, four questions
Before mixing, tell apart what you need, because the four mechanisms do not replace one another:
opusplan: you decide, in advance, with a fixed rule. It uses Opus during the plan and then switches to Sonnet for execution; it does not look at the difficulty of the task;- the advisor: the executor decides, turn by turn, whether to ask a stronger model for a second opinion. The cost depends on how many times it gets stuck;
- the sub-agents on a smaller model: the main model decides what to delegate. The cost depends on how much work can be separated;
- the fallback: availability decides. It comes into play only when the primary model is overloaded or unavailable, and it improves nothing.
The distinction that counts is between who decides and what you obtain. A fixed plan (opusplan) is
predictable but does not know when the task is easy; an advisor adapts the spend to the difficulty, but only if the
executor notices it is stuck; a delegation pays off when the work splits into independent parts and badly when it is
a chain. The fallback has to be kept out of the conversation about costs, and the same goes for results: if the
model changes during a measurement, you are measuring something else.
The advisor pays off only if it is consulted
In Anthropic's measurements, the only pair in which the executor consulted often obtained 1.7 points more than the executor alone, at the limit of the noise between one run and another, spending about 2.1 times as much. Where the executor consulted little or never, the pair stayed within the noise or did worse: in one case out of 300 tasks the advisor was called only once and the score fell by 7 points. The definition of the tool weighs about a thousand tokens per request even when it is never called. The guide's advice is to measure the consultation rate on your own tasks and to compare the pair with the two alternatives, and the code below does so.
Each run has an arm (the pair, the same model at lower effort, the smaller model alone), an outcome, a cost and a
number of consultations. You derive the consultations field from your logs: the documentation says that the API
lists every consultation in usage.iterations[] with type advisor_message and that Claude
Code shows an "Advising" line in the transcript, but the format of your logs remains yours. The verdict function
asks two questions in order. The first is whether the executor consults at least as much as you consider necessary
(a threshold you declare, because the documentation does not give one). The second is whether one of the other two
alternatives succeeds just as well while spending less: in that case the pair is dominated and there is no point in
adopting it.
"""Una coppia esecutore + advisor ripaga? La si confronta con le due alternative che la documentazione indica."""
from collections import defaultdict
BRACCI = ("coppia", "stesso_modello_meno_effort", "modello_inferiore_solo")
def riepilogo(prove):
"""Per braccio: riuscite, spesa, USD per riuscita, e quante prove hanno consultato l'advisor almeno una volta."""
out = {}
per_braccio = defaultdict(list)
for p in prove:
per_braccio[p["braccio"]].append(p)
for nome in BRACCI:
r = per_braccio.get(nome, [])
if not r:
raise ValueError(f"manca il braccio '{nome}': senza i tre bracci il confronto non e' valido")
spesa = sum(p["costo_usd"] for p in r)
ok = sum(1 for p in r if p["riuscita"])
out[nome] = {"prove": len(r), "riuscite": ok, "spesa": round(spesa, 4),
"usd_per_riuscita": round(spesa / ok, 4) if ok else None,
"con_consulto": sum(1 for p in r if p.get("consulti", 0) > 0)}
return out
def verdetto(prove, soglia_consultazione):
"""Adotta la coppia solo se consulta davvero e se nessun'altra alternativa fa almeno altrettanto spendendo meno."""
r = riepilogo(prove)
c = r["coppia"]
tasso = c["con_consulto"] / c["prove"]
if tasso < soglia_consultazione:
return r, tasso, f"no: l'esecutore consulta nel {tasso:.0%} delle prove, sotto la tua soglia del {soglia_consultazione:.0%}"
for nome in ("stesso_modello_meno_effort", "modello_inferiore_solo"):
a = r[nome]
if a["riuscite"] >= c["riuscite"] and a["spesa"] <= c["spesa"]:
return r, tasso, f"no: '{nome}' riesce {a['riuscite']} volte contro {c['riuscite']} e spende {a['spesa']} contro {c['spesa']}"
return r, tasso, "non scartata: nessuna alternativa fa almeno altrettanto spendendo meno (se l'extra vale la spesa lo decidi con il costo per riuscita)"
def stampa(titolo, prove, soglia):
r, tasso, v = verdetto(prove, soglia)
print(titolo)
for nome in BRACCI:
x = r[nome]
print(f" {nome:27} riuscite={x['riuscite']:>2}/{x['prove']} spesa={x['spesa']:>6} USD/riuscita={x['usd_per_riuscita']} consulto={x['con_consulto']}")
print(f" consultazione della coppia: {tasso:.0%}")
print(f" verdetto: {v}")
To test it I wrote three scenarios by hand. The costs and outcomes are test data to make the comparison run, not measurements of any pair of models: the only thing the output proves is that the code tells apart the three cases that matter.
python3 -I prova_coppia.py
# Output:
# A: advisor mai consultato
# coppia riuscite= 7/10 spesa= 3.0 USD/riuscita=0.4286 consulto=0
# stesso_modello_meno_effort riuscite= 7/10 spesa= 2.5 USD/riuscita=0.3571 consulto=0
# modello_inferiore_solo riuscite= 5/10 spesa= 1.0 USD/riuscita=0.2 consulto=0
# consultazione della coppia: 0%
# verdetto: no: l'esecutore consulta nel 0% delle prove, sotto la tua soglia del 50%
# B: advisor consultato, la coppia riesce di piu'
# coppia riuscite= 9/10 spesa= 4.5 USD/riuscita=0.5 consulto=9
# stesso_modello_meno_effort riuscite= 7/10 spesa= 2.5 USD/riuscita=0.3571 consulto=0
# modello_inferiore_solo riuscite= 5/10 spesa= 1.0 USD/riuscita=0.2 consulto=0
# consultazione della coppia: 90%
# verdetto: non scartata: nessuna alternativa fa almeno altrettanto spendendo meno (se l'extra vale la spesa lo decidi con il costo per riuscita)
# C: advisor consultato, ma l'effort piu' basso fa uguale per meno
# coppia riuscite= 8/10 spesa= 4.5 USD/riuscita=0.5625 consulto=10
# stesso_modello_meno_effort riuscite= 8/10 spesa= 2.5 USD/riuscita=0.3125 consulto=0
# modello_inferiore_solo riuscite= 5/10 spesa= 1.0 USD/riuscita=0.2 consulto=0
# consultazione della coppia: 100%
# verdetto: no: 'stesso_modello_meno_effort' riesce 8 volte contro 8 e spende 2.5 contro 4.5
In case A the executor never calls the advisor: the pair succeeds as much as the other arm but costs more, because the definition of the tool weighs even when idle. In case B the pair succeeds more and is not discarded, and note that it still costs more per success (0.5 against 0.36): "not discarded" does not mean "worth it", because whether that extra success is worth the spend you decide with the cost per success of the previous article. In case C the advisor is always called and it is of no use, because the same model at lower effort does the same while spending less. It is the most instructive case: a high consultation rate does not prove that the pair works, it only proves that the advisor is working.
The fallback is something else, and it can distort your measurements
There are two fallbacks. The first, a chain, triggers when the primary model is overloaded or unavailable: you set
it with --fallback-model (a comma-separated list) or with the fallbackModel entry in the
settings, and it holds for a single turn, because at the next message Claude Code tries the primary model again. The
second, by content, triggers when the safety classifiers flag a request (more often cybersecurity or biology): the
request is rerun on another model and, the guide says, the session continues on the fallback model until you change
it yourself with /model. In a measurement this is a danger: a session that moves to another model
halfway is no longer a test of what you thought you were measuring.
The chain has three peculiarities that the guide declares and that a check can verify: it stops at three entries
after duplicates are removed, extra entries are silently ignored, and Claude Code does not confirm the chain at
startup and /status does not show it. I wrote a check that reads a test settings file (the entries are
an example of shape, not a recommended configuration), computes the effective chain and verifies on the real help of
your version that the options exist.
{
"fallbackModel": ["sonnet", "haiku", "sonnet", "claude-haiku-5-5", "claude-opus-5-5"]
}
The test file has five entries on which the check must stumble: a duplicate and an entry beyond the limit. The script reads them, applies the guide's rule and queries the real help of the installed version.
"""Prima di fidarti di una catena di fallback: la tua versione conosce le opzioni, e quante voci contano davvero?"""
import json
import subprocess
import sys
LIMITE_CATENA = 3 # dalla pagina model-config: oltre la terza voce, dopo la rimozione dei doppioni, si ignora
OPZIONI = ("--fallback-model", "--model", "--effort")
OPZIONALI = ("--advisor",)
def catena_effettiva(voci):
"""Toglie i doppioni mantenendo l'ordine, poi taglia a tre: e' cio' che Claude Code usera'."""
viste, pulita = set(), []
for v in voci:
if v not in viste:
viste.add(v)
pulita.append(v)
return pulita[:LIMITE_CATENA], pulita[LIMITE_CATENA:]
def leggi_catena(percorso):
dati = json.load(open(percorso, encoding="utf-8"))
voci = dati.get("fallbackModel", [])
if not isinstance(voci, list) or not all(isinstance(v, str) for v in voci):
raise ValueError("fallbackModel deve essere una lista di stringhe")
return voci
def aiuto():
return subprocess.run(["claude", "--help"], capture_output=True, text=True, timeout=60).stdout
if __name__ == "__main__":
voci = leggi_catena(sys.argv[1])
attiva, ignorate = catena_effettiva(voci)
testo = aiuto()
print("catena letta :", voci)
print("catena effettiva :", attiva)
print("voci ignorate :", ignorate or "nessuna")
for o in OPZIONI:
print(f"{o:18}:", "nell'aiuto" if o in testo else "ASSENTE dall'aiuto")
for o in OPZIONALI:
print(f"{o:18}:", "nell'aiuto" if o in testo else "non nell'aiuto di questa versione")
sys.exit(0 if not ignorate and all(o in testo for o in OPZIONI) else 1)
python3 -I verifica_catena.py settings-prova.json
# Output:
# catena letta : ['sonnet', 'haiku', 'sonnet', 'claude-haiku-5-5', 'claude-opus-5-5']
# catena effettiva : ['sonnet', 'haiku', 'claude-haiku-5-5']
# voci ignorate : ['claude-opus-5-5']
# --fallback-model : nell'aiuto
# --model : nell'aiuto
# --effort : nell'aiuto
# --advisor : non nell'aiuto di questa versione
# exit=1
The five entries become three: sonnet appears twice and the second is a duplicate, and
claude-opus-5-5, fifth in order, falls outside the limit. The exit code is 1 precisely because an entry
is ignored: it is a warning you can put in a script before a long job. Two cautions. My check removes only the
duplicates that are identical as strings: I do not know whether Claude Code resolves the aliases first, so
haiku and claude-haiku-5-5 might count as one and the effective chain might be shorter
than the one I print.
The --advisor option, which the command-line reference page documents, does not appear in the help of
this version (2.1.325): the last line says so. It is not an absence to be read as "the option does not exist": the
Claude Code advisor page declares that the option is not listed in claude --help, so for this option the
help is not the judge. For the others (--fallback-model, --model, --effort)
the check remains valid, and the commands inside the session, like /advisor, have a minimum version
indicated by the commands page.
Delegating: you choose the model of a sub-agent, and an order applies
A sub-agent is a Markdown file with a YAML header, and the model field chooses its model: an alias
(sonnet, opus, haiku, fable), a full identifier, or
inherit to use the model of the main conversation. When one field is not enough, Claude Code resolves
the model in a precise order, and the order matters because each step wins over those that follow:
- the
modelparameter passed by Claude in the single call (an alias only); - the
modelfield in the sub-agent definition; - the environment variable
CLAUDE_CODE_SUBAGENT_MODEL, if you set it; - the model of the main conversation.
The practical consequence: a sub-agent without the model field in effect inherits the model of the
conversation, so if you switch to an expensive model with /model the delegated work follows it too,
unless the file fixes a smaller model. Here is the minimal form of a cheap sub-agent, written as a template to adapt
(I did not run it, because doing so would need a session with a model):
---
name: revisore-test
description: "Rilegge i test appena scritti e segnala quelli che non provano nulla."
tools: Read, Grep, Glob
model: haiku
---
Sei un revisore di test. Leggi i file indicati e per ciascun test dici che cosa verifica davvero.
To know what really happens in your repository, without calling any model, it is enough to read the files. The
script below counts, by value, the model field in the sub-agents. The output is measured on this
repository (72 files in .claude/agents/): 43 declare sonnet, 12 haiku, 10
opus and 7 have no field, and those seven therefore follow the later steps of the order.
"""Quale modello userebbe ciascun sub-agent? Legge il campo model del frontmatter, senza chiamare nessun modello."""
import re
import sys
from collections import Counter
from pathlib import Path
def modello_dichiarato(testo):
"""Il valore di 'model:' nel frontmatter YAML, oppure None se il campo manca o non c'e' frontmatter."""
m = re.match(r"---\n(.*?)\n---", testo, re.S)
if not m:
return None
r = re.search(r"^model:\s*(\S+)\s*$", m.group(1), re.M)
return r.group(1).strip("\"'") if r else None
def riepilogo(cartella):
conteggio = Counter()
for f in sorted(Path(cartella).glob("*.md")):
conteggio[modello_dichiarato(f.read_text(encoding="utf-8")) or "(nessun campo)"] += 1
return conteggio
if __name__ == "__main__":
c = riepilogo(sys.argv[1])
print("file letti:", sum(c.values()))
for valore, n in c.most_common():
print(f" {valore:16} {n:>3}")
python3 -I modelli_agenti.py .claude/agents
# Output:
# file letti: 72
# sonnet 43
# haiku 12
# opus 10
# (nessun campo) 7
The number to look at is the last one: the files without the field are those whose cost depends on how you started the session. Delegating to a smaller model is not always a saving, though. According to Anthropic, delegation proved advantageous in two cases: routine work with a long cost tail, and work larger than a context window. On a set of defect searches, Opus 5.5 with Sonnet 5.5 sub-agents cost about a third less than an Opus session for each part, with a similar score. On code tasks, Haiku 5.5 sub-agents cut the cost per attempt by 32% and the share of successes by about 4 points, about what a lower effort level would have given without sub-agents: an alternative to reducing effort, not an improvement. That is why the right comparison is always with the lower effort, as in the code above.
Status as of 2026-11-14: names, commands and measurements (rechecked on the official pages on 2026-11-14)
These are version facts: reread the source page before relying on a name or a number.
- Alias
opusplan: Opus during the plan, Sonnet for execution. The aliasesopus,sonnet,haikupoint to different versions depending on the provider (on the Anthropic API, Opus 5.5, Sonnet 5.5, Haiku 5.5). - Advisor: a tool in beta on the API and experimental in Claude Code, not available on Amazon Bedrock, on Google Cloud's Agent Platform or on Microsoft Foundry; in Claude Code
/advisor [model|off](the forms without an interactive terminal require 2.1.260 or later) and the--advisoroption, which the documentation declares it does not list in--help(and indeed the help of 2.1.325 does not show it). A Fable 5.2 executor accepts only a Fable 5.2 or Mythos 5.2 advisor, otherwise the request returns a 400 error. - Chain fallback: three entries at most, valid for one turn. The content fallback, from Fable and Opus 5.5, reruns biology requests on Opus 5 and cybersecurity ones on Opus 4.8; for Sonnet 5.5 the cybersecurity requests go to Sonnet 5 and the biology ones end with a refusal.
- Anthropic measurements: advisor +1.7 points for about 2.1 times the cost with frequent consultation; −7 points on a set where the advisor was called once in 300 tasks; Sonnet 5.5 sub-agents under Opus 5.5: about a third less on a set larger than one window.
The list is the block you will update at the next generation, and only that. Note that the measurements are Anthropic's, internal and, by its own admission, indicative: the guide invites you to measure again at every new version, because every release shifts both the capability gap between the models and the price ratio.
What stays true with the next generation
What stays true is the distinction between the four mechanisms (who decides and what you obtain), the comparison of the pair against "same model at lower effort" and "smaller model alone", the consultation rate as a quantity to measure before trusting an advisor, and the order of resolution of the sub-agents' model as something to read on the current page. The names of the models, the aliases per provider, the fallback rules and the very existence of some options will change.
What I did not verify
I did not make any pair of models work: the three scenarios are test data, and Anthropic's measurements are cited and not reproduced. I did not read the API advisor page in full and I did not see the format of your consultation logs. I did not verify whether Claude Code resolves the aliases before removing the duplicates from the fallback chain. I did not run the example sub-agent file.
Frequently asked questions
Is an advisor worth using?
Only if the executor really consults it and the pair beats the two alternatives: the same model at lower effort and the smaller model alone. A high consultation rate alone is not enough to prove it.
Does the fallback serve to save money?
No: it triggers for availability or for content, not for cost. In a measurement it has to be watched, because a change of model halfway through a session distorts the comparison.
Why does a sub-agent without a model field cost more than expected?
Because, according to the resolution order of the sub-agents page, it inherits the model of the main conversation (except for the environment variable): if you switch to a more expensive model, the delegated work follows it too.
What you can do now
You can tell the four ways of mixing models apart by what they decide, and compare a pair with the two alternatives the documentation indicates, using the consultation rate as a first filter. You can check a fallback chain on your version, you can see which sub-agents in your repository follow which model and why, and you know what is missing: the real measurement of your pair, which requires a key and your own tests.
In this series. Previous article: Fable or Opus: When Moving Up a Model Pays Off.
Sources
- Claude Docs: Optimizing for cost and intelligence - advisor and orchestrator strategies, Anthropic's measurements, advice on what to measure and what to compare against, about 1,000 tokens of advisor definition, accessed 2026-11-14
- Claude Code Docs: Escalate hard decisions with the advisor tool -
/advisor,--advisor(not listed in--help),advisorModel, accepted pairs, provider requirements, experimental status, accessed 2026-11-14 - Claude Code Docs: Model configuration - aliases per provider,
opusplan, fallback chains (three entries after duplicates are removed, one turn), content fallback, accessed 2026-11-14 - Claude Code Docs: Create custom subagents -
modelfield and order of resolution of a sub-agent's model, accessed 2026-11-14 - Claude Docs: What's new in Claude Fable 5.2 - constraint on the executor and advisor pair for Fable 5.2, accessed 2026-11-14
- Claude Code Docs: Commands -
/advisorcommand and minimum version of the non-interactive forms (2.1.260), accessed 2026-11-14 - Claude Code Docs: CLI reference - options
--fallback-modeland--advisor, accessed 2026-11-14
coppia.py, verifica_catena.py and modelli_agenti.py were run with Python 3 on 2026-11-14 (the first on test data written by me, the others on real files and on the help of Claude Code 2.1.325); no pair of models was made to work (no key). Names, commands and Anthropic's measurements were compared with the official pages on 2026-11-14. The code listings and the program outputs are reproduced exactly as in the Italian original, so identifiers, messages and comments inside them are in Italian.
Commenti
Caricamento commenti...
Sign in to comment