Switching the model under working agents without breaking them
A new model ships every few weeks. A practical way to switch the model under a working agent system: pin the ID, test on your own real tasks, measure cost per task, and start small with a rollback one config line away.
On November 9, 2026, Anthropic announced Claude Fable 5.2 and Claude Mythos 5.2. The first has the API ID claude-fable-5-2; the second (claude-mythos-5-2) is only available to organizations that pass Anthropic’s verification programs. Only weeks earlier, according to the official release notes, came Opus 5.5 on September 22, Sonnet 5.5 on September 28 and Haiku 5.5 on October 7.
That pace puts anyone running an agent system in front of the same question again and again: should I switch? And how do I switch without breaking something that worked yesterday?
Notice that Anthropic’s own page for the new release says moving from Fable 5.1 starts with changing the model ID, and then lists four changes that can break your code. The models overview, for its part, recommends starting with Opus 5.5 for most workloads and moving to Fable 5.2 when your evals on Opus fall short. So “change one line” is not the whole story, and “newest” is not the automatic choice, even according to the vendor.
What follows isn’t specific to Anthropic. It applies to any provider, and to local models through Ollama too.
1. Pin the exact ID, not “latest”
First question: can the model change under you without you deciding?
In Ollama, model names follow a model:tag format, and if you omit the tag it defaults to latest. That name doesn’t tell you which build is actually running. Write the full tag in your config, and record the digest that GET /api/tags returns for each local model. If the digest changes, the model may have changed even though the name didn’t.
At Anthropic, the “Model IDs and versioning” page is explicit: each model ID identifies a pinned version that stays constant for the lifetime of that ID. From the 4.6 generation on, the dateless ID (such as claude-sonnet-4-6) is not a moving pointer; it is the snapshot, and an updated version ships under a new ID. Older models have aliases such as claude-sonnet-4-5 that point to the most recent dated snapshot. If you use a model from those generations, put the dated ID in production rather than the alias.
The same page adds an important note: the weights are fixed for an ID, but the serving infrastructure around the model (request router, safety classifiers, sampling logic) can change, and can produce minor behaviour differences. Pinning reduces surprises; it doesn’t remove them. That’s why you need the next step.
2. A small eval set built from your own tasks
Published benchmarks measure other people’s tasks. What you care about is whether this model completes the tasks your agents actually do.
Build a small set, say thirty to fifty cases, taken from real logs: ordinary requests, edge cases, and cases where the current model has failed before. Give each case an expected outcome you can check automatically where possible.
Anthropic’s guidance on building evals says the same: mirror your real task distribution and don’t forget edge cases; automate grading where you can (string match, code checks, or grading by another model); and prefer more cases with automated grading over a few hand-graded ones. If a model does the grading, it’s best practice to use a different model from the one under test.
Here is one record in a layout I’m proposing, a case from an agent that triages customer messages for a small shop:
{
"id": "triage-017",
"source": "real request, anonymised",
"input": "Order arrived damaged, customer asks for a replacement.",
"expect": {
"tools_called": ["lookup_order"],
"tools_forbidden": ["issue_refund"],
"max_tool_calls": 3,
"output_schema": "schemas/triage-v2.json",
"checks": ["category == 'damaged_item'", "reply mentions replacement"]
},
"result": {
"model": null, "passed": null,
"input_tokens": null, "output_tokens": null,
"tool_calls": null, "seconds": null
}
}
Run the full set on the current model first to get a baseline, then on the candidate with the same settings. Compare case by case, not average against average: a model that raises the overall pass rate but breaks two critical cases is not an upgrade.
3. Check tools and format, not just answer quality
In an agent system, a good answer isn’t enough. What usually breaks things:
- Tool calls: does it call the right tool, with the right arguments, a sensible number of times? Or does it skip the tool and guess?
- Output format: if code or another agent reads the output, any change in JSON shape or a field name breaks the chain. Check it against a schema, not by eye.
- API behaviour: the Fable 5.2 page gives clear examples. If your code changes anything that comes before an earlier thinking block (the system prompt, the tool list, or an old message), the request fails the prefix check with a 400 error. The older
computer_20251124tool returns an error on every platform except Amazon Bedrock. And if you come from Opus 5 or earlier, forcing a specific tool throughtool_choicealso returns a 400.
None of this shows up in an “is the answer correct” test.
4. Measure cost and latency per task, not per-token price
Price per million tokens is misleading on its own. What you actually pay is the number of tokens one task consumes from start to finish, across every tool call and turn.
An example from this very release: Anthropic prices Fable 5.2 at $8 per million input tokens and $40 per million output tokens, against $10 and $50 for Fable 5.1. The company says it completes challenging tasks with fewer tokens than its predecessor at medium effort. But it also says that at high and above the model thinks before almost every reply, and that a prompt line asking it to answer without deliberating doesn’t stop it from thinking at medium and above. So the real cost of your tasks may go down or up, and the only way to know is to measure.
For each case, record input and output tokens (the usage field in Anthropic’s response, prompt_eval_count and eval_count in Ollama), the number of tool calls, and time to task completion. Then compare both the average and the worst cases. Anthropic itself recommends re-running your evals when you migrate, with an effort sweep that starts at the default, high.
5. A stronger model can behave differently
An upgrade doesn’t mean a better version of the old behaviour; it can mean different behaviour. The Fable 5.2 page lists differences that appear without any code change, including:
- On long tasks it can end a turn before the work is done, with a list of what remains or an offer to continue, more often at
lowandmedium. - Long runs of tool calls can pass with little user-facing text.
- It follows style rules closely, so a hard limit on sentence length can make its prose choppy.
- How much it delegates to subagents depends on your prompts and tasks, and subagents can account for a large part of a session’s cost.
In general, a stronger model may be more verbose, call tools more often, or take more initiative than your system was designed for. A prompt written to compensate for the old model’s weaknesses can become a burden on the new one, so review it after the switch.
6. Start with one agent, keep rollback one config change away
Don’t switch every agent on the same day. Pick one low-risk agent, or a small share of new conversations, and watch it for a few days before widening.
Make the model a per-agent config value, not a string hardcoded in the code. An example in a format of my own:
# models.yaml - one entry per agent, read at startup
agents:
triage:
model: claude-fable-5-1 # current, pinned ID
candidate: claude-fable-5-2 # under evaluation
candidate_share: 0.10 # share of NEW conversations only
extractor:
model: "local-model:exact-tag" # never a bare name or :latest
expected_digest: "<digest from GET /api/tags>"
Rolling back is then a one-line edit and a reload. One Anthropic detail to watch: thinking blocks produced by Fable 5.2 are read only by Fable 5.2 and Mythos 5.2. If you move a running conversation to another model, the API drops those blocks and the request still succeeds, but the turns that run on the other model lose that reasoning. The clean approach is to apply the switch, in both directions, to new conversations only.
No need to rush
A pinned model won’t change under you overnight. Anthropic commits to at least 60 days’ notice before retiring a publicly released model on its platforms, and lists Fable 5.2’s retirement as not sooner than November 9, 2027. You have time to test calmly.
In short: pin the ID, keep an eval set from your real tasks, check tools, format and cost per task, and start small with a rollback ready. That way each new release becomes a decision you measure, not a risk you absorb.
