What’s new
- Fable 5 — state-of-the-art on nearly all tested benchmarks, with exceptional performance in software engineering, knowledge work, scientific research, and vision. The longer and more complex the task, the larger Fable 5’s lead over earlier Claude models.
- Mythos 5 — the same underlying model as Fable 5, but with safeguards lifted in some areas. Restricted to Glasswing partners (defensive cybersecurity and biomedical research). For most users, Fable 5 is the right default.
- Built-in safeguards — Fable 5 detects requests in narrow risk areas (cybersecurity, biology, chemistry, distillation) and quietly falls back to Opus 4.8 on those queries. Fallbacks happen in under 5% of sessions on average, and users are informed when they occur.
Installation
Environment Setup
Set your Anthropic API key:.env file:
Quick Start
The minimum needed to run a Fable 5 agent:Complete Example: Quantitative Trading Agent
Here is a fully-configured Fable 5 agent tuned for finance research. This is a good template to copy for serious workloads — it uses extended thinking, high reasoning effort, and a detailed system prompt:Why these parameter choices?
temperature, top_p, and tools_list_dictionary are left at their None defaults: Fable 5 supports neither temperature nor tool calling.
Extended Thinking & Reasoning Effort
Fable 5 supports Anthropic’s extended thinking. Swarms exposes this through three parameters:reasoning_enabled— turns on the explicit thinking block.thinking_tokens(default1024) only takes effect when this isTrue.thinking_tokens— the maximum number of tokens the model can spend on internal reasoning before producing its final answer. Larger budgets help on multi-step problems (proofs, code refactors, deep research) at the cost of latency and tokens.reasoning_effort— a coarse dial, forwarded on its own (LiteLLM maps it to a thinking budget)."low"is roughly chat-quality,"medium"suits analytical work,"high"is best for hard problems where you want the model to think before answering.
The autonomous loop’s
think tool is off by default (think_tool=False), so a model that already reasons natively doesn’t spend an extra round-trip on it. Leave it off for Fable 5.Choosing budgets
Streaming
Stream tokens straight to stdout:arun_stream:
Tools (Not Supported)
Fable 5 does not support function calling / tool use. Passingtools=[...] or tools_list_dictionary=[...] to a Fable 5 agent will not work.
If your workflow needs tools, the recommended pattern is to split responsibilities across two agents — a tool-calling model gathers the data, and Fable 5 does the reasoning over it:
Vision
Fable 5 has strong vision capabilities. Pass an image path, URL, or base64 string torun():
Autonomous Loops
For agents that should plan, execute, and reflect until done, setmax_loops="auto":
persistent_memory=True and context_compression=True for long-running production agents.
Multi-Agent Systems with Fable 5
Every Swarms multi-agent structure works with Fable 5 the same way it works with any other model — just setmodel_name="anthropic/claude-fable-5" on the agents.
The examples below leave
temperature, top_p, and tools_list_dictionary at their None defaults, which is what Fable 5 needs. If you want a tool-calling agent in the mix, give that role to a different model (e.g. claude-sonnet-4-6) and let Fable 5 do the reasoning.Sequential Workflow
Concurrent Workflow
Run several Fable 5 agents in parallel:Mixture of Agents
Fable 5 also makes an excellent aggregator on top of cheaper worker models — let smaller models propose ideas in parallel and have Fable 5 synthesize the final answer:Hierarchical Swarm
Make Fable 5 the director and let cheaper models be the workers:Safety Fallbacks
Fable 5 detects requests in a narrow set of high-risk topic areas (cybersecurity, biology, chemistry, distillation-style extraction) and silently routes those queries to Opus 4.8 instead. Anthropic reports that fallbacks happen in under 5% of sessions on average, and the user is informed whenever a fallback occurs. For Swarms users this means:- You don’t need to do anything. Fallback is handled inside the Anthropic API; Swarms surfaces the response normally.
- Your agent may occasionally return text noting that a different model answered. This is expected behavior, not an error.
- If your domain is consistently flagged (e.g. legitimate defensive cybersecurity work), apply for access to Mythos 5 — see below.
Mythos 5 (Restricted Access)
Mythos 5 is the same underlying model as Fable 5, but with safeguards lifted in some areas. It is currently restricted to Glasswing partners working on defensive cybersecurity and biomedical research. Anthropic plans to expand access through a broader trusted-access program. If you have access, use it the same way as Fable 5:Production Best Practices
When deploying Fable 5 agents to production, these defaults work well:Cost Controls
- Tier reasoning effort to task complexity —
"low"for triage and routing,"high"only for the work that needs it. - Cap
thinking_tokensper agent — start at1024and only increase if quality demands it. - Use Fable 5 as the aggregator, not every worker — Mixture of Agents and Hierarchical Swarms get most of the benefit when only the top of the hierarchy runs on Fable 5.
- Set
max_loopsexplicitly — avoid"auto"in production unless you have a hard timeout or token budget elsewhere.
Observability
Setverbose=True and autosave=True during development so you can inspect every loop. In production, prefer your own logging via streaming_callback rather than stdout.
Troubleshooting
AuthenticationError — your ANTHROPIC_API_KEY isn’t set or doesn’t have access to Fable 5. Run echo $ANTHROPIC_API_KEY and confirm.
Empty responses on reasoning tasks — if you previously hit a regression where non-OpenAI providers returned empty strings when reasoning_effort was set, this was fixed in Swarms v12. Make sure you’re on the latest release: pip install -U swarms.
Slow responses — Fable 5 with thinking_tokens=16000 and reasoning_effort="high" is deliberately slow because the model is reasoning before answering. Drop both to 1024 / "medium" for routine tasks.
Mythos 5 returns access errors — your API key isn’t whitelisted for Mythos 5. Apply through Anthropic’s trusted access program or stay on Fable 5.
Next Steps
- Agent API Reference — every parameter Fable 5 agents accept.
- Model Providers — using other providers alongside Fable 5.
- Multi-Agent Architectures — composing Fable 5 agents into swarms.
- Production Best Practices — running Fable 5 agents at scale.