How to Build Autonomous Agents with Claude Fable 5 That Actually Finish

Duncan RogoffDuncan Rogoff July 3, 2026 11 min read
A yellow industrial robot arm working in an automated manufacturing cell
Photo via Pexels

How to Build Autonomous Agents with Claude Fable 5: The Core Idea

Straight up, the model is the easy part now. Claude Fable 5 is built to run an agent, not just answer a prompt. It works autonomously for longer than any model before it, and it holds context across millions of tokens. That is exactly what an agent needs: the ability to plan, act, check its own work, and keep going without losing the thread. The hard part, the part that decides whether your agent finishes or spins, is the instructions you give it.

I have spent fifteen years shipping inside teams at Apple, PlayStation and Schwab, and agents fail for the same reason projects fail: the brief was vague. A capable model with a fuzzy goal wanders. A capable model with a tight contract finishes. This post is about the contract, grounded in what Fable 5 actually does well (https://www.anthropic.com/news/claude-fable-5-mythos-5).

Why Fable 5 Is Built for Agents

Three properties make Fable 5 an agent engine rather than just a smarter chatbot, and they are the reasons to build on it:

  • It sustains long, multi-step work. Fable's lead grows the longer and more complex the task is, which is the exact shape of an agentic job that searches, decides, calls tools, evaluates, and loops back. In early testing it ran a codebase-wide migration on a 50-million-line codebase in a single day, a job that would have taken a team over two months. That is the ceiling of what a well-built agent on this model can reach.
  • It remembers. With persistent file-based memory it stays coherent across millions of tokens, and memory improved its results about three times more than it did the previous Opus model. An agent that can write to and read from a memory file works a long job across many sessions without starting over each time.
  • It is efficient enough to be practical. Fable is more token-efficient than past models and finishes in fewer turns, which matters a lot when an agent makes many calls. Fewer turns is both faster and cheaper.

The Agent Contract

Before you deploy any Fable 5 agent, write its contract. This is the CCC framework I use, four parts, and skipping any one of them is how agents go wrong. A capable model will fill gaps with reasonable-sounding assumptions, and those assumptions are rarely what you meant.

  1. The goal. State the final deliverable or end state in plain terms. Not do some research, but produce a competitive analysis of these five companies as a structured document. The agent needs to know what done looks like.
  2. The tools. List what it has access to and which tool to use for what. Ambiguity here is where agents waste turns trying the wrong approach.
  3. The stopping condition. Tell it exactly how it knows it is finished. When you have gathered at least five reliable sources and written a synthesis, output a completion marker and stop. Without this, a capable model keeps finding more work to do and never lands.
  4. The failure path. Define what counts as failure and what to do about it. Instruct it to escalate or say it could not find something rather than continue confidently in the wrong direction. An agent that knows how to fail safely is worth more than one that never admits it is stuck.

Give It a Memory, and Keep It Lean

Fable's file-based memory is the feature that turns a long job from impossible into routine, but memory and context are not the same thing. Memory is what the agent chooses to keep. Context is everything it carries in every call, and you pay to process all of it every turn.

So give the agent a persistent memory file for the facts it will need later, and keep the live context lean. Summarize intermediate results instead of appending them in full, clear tool history once a step is done, and break a very long job into shorter sub-tasks with fresh context. This is the difference between an agent that stays sharp over a long run and one that slows down and drifts as its context bloats.

Keep It From Burning Cash

An agent makes many calls, so cost discipline matters more here than anywhere else. The same levers that make an agent lean also make it cheap:

  • Mix models. Not every step needs Fable 5. Run the reasoning-heavy steps on Fable and hand routine steps like formatting or extraction to a cheaper model. This is usually the biggest single saving in an agent.
  • Cache the constant parts. If the agent reuses a large system prompt or reference document across calls, cache it. Reused context is billed at roughly a tenth of the normal input rate, and an agent loop reuses context constantly.
  • Set a conservative effort budget. Fable's internal reasoning costs tokens, so start the thinking budget low and raise it only for steps that genuinely need more depth.

The Failure Modes to Design Around

Three things go wrong with agents on any capable model, and each has a fix you build in up front:

  • It loops without finishing. Almost always a missing or fuzzy stopping condition. Fix it in the contract with explicit completion criteria the agent can check itself against.
  • It makes things up. When an agent cannot find what it needs through its tools, it can fill the gap with plausible fiction. Instruct it explicitly to prefer saying it could not find reliable information over inventing it, and add a verification step for high-stakes work.
  • It hands off to Opus 4.8 mid-run. When a request touches cybersecurity, biology and chemistry, or model distillation, Fable routes it to Opus 4.8 and tells you. Since the July redeploy that classifier is tighter, so benign coding can trip it. Design your agent to expect the handoff on security-adjacent steps rather than assume every step runs on full Fable.

Build the contract, give it a memory, keep it lean, and design around the failure modes, and Fable 5 will run jobs that used to need a person babysitting them. That is the whole promise of an agent, and this model is the first one strong enough to keep it. Tell me what you are having yours run in the comments.

Frequently asked questions

Why is Claude Fable 5 good for building agents?

Because it is built for long-horizon autonomous work. Fable 5 works independently for longer than any model before it, its lead grows on complex multi-step tasks, and it stays coherent across millions of tokens with persistent file-based memory, which helped it about three times more than it did the previous Opus model. Those are exactly the properties an agent needs to plan, act, and keep going.

What makes a Fable 5 agent fail?

Usually a vague task definition, not the model. A capable model fills gaps with reasonable assumptions that may not match your intent. Every agent needs a clear contract: a specific goal, the tools it can use, an explicit stopping condition, and a defined failure path so it escalates or admits it is stuck rather than continuing confidently in the wrong direction.

How do I stop a Fable 5 agent from looping forever?

Give it an explicit stopping condition it can check itself against. For example, tell it that when it has gathered at least five reliable sources and written a synthesis of a defined length, it should output a completion marker and stop. Agents loop when they do not know what done looks like, so defining completion in the contract fixes it.

How do I control the cost of a Fable 5 agent?

Mix models so only the reasoning-heavy steps run on Fable and routine steps use a cheaper model, cache any large context the agent reuses across calls so it is billed at roughly a tenth of the input rate, and set a conservative effort budget that you raise only for steps that need more depth. Agents make many calls, so these levers compound.

Does Fable 5 have persistent memory for agents?

Yes. Fable 5 supports persistent file-based memory, so an agent can write facts it will need later to a file and read them back across sessions, staying coherent across millions of tokens. Keep the live context separate and lean, summarizing intermediate results rather than carrying everything forward, since you pay to process the full context on every call.

Is it safe to run client data through a Fable 5 agent?

Check the retention policy first. Every request on a Mythos-class model, including Fable 5, is retained for 30 days on first- and third-party surfaces. Anthropic says it is not used to train models and is deleted after 30 days, but for sensitive client data that is a conversation to have with the client before the agent runs, not a detail to skip.

Last reviewed by Duncan Rogoff on July 3, 2026

Duncan Rogoff

Written by

Duncan Rogoff

Apple · PlayStation · Charles Schwab

Keep reading

Ready to build it yourself?

Join Claude Code Club, the #1 community for learning claude code, for $9/month.

← Back to the blog