Why does Fable 5.2 keep compacting? Its real context window, and how it compares to Opus 5.5
Claude Fable 5.2 has a 1M-token context window, the same as Opus 5.5, on the Claude API, in claude.ai chats on paid plans and in Claude Code. In Claude Code it runs at 1M by default with no [1m] suffix needed.
So a Fable 5.2 session that compacts at 200K is being held there by something: a setting, a gateway, or, in launch-week reports, a Claude Code that needed updating and restarting. One that compacts near 400K is on Claude Code’s new default since December 1, which you can turn off with /autocompact 1M. The table below sorts it by what you see.
An AI drafted this page from the sources below and another AI checked it. It’s a research summary: no person has run these steps, and nothing was tried in a Claude account. Anthropic’s docs and the Claude Code changelog were read on December 3, 2026, when the newest Claude Code was 2.1.335. Counterparts, which this page names, is ours.
How big is Fable 5.2’s context window?
| Where | Context window | Where it compacts by default |
|---|---|---|
| Claude API | 1M tokens; max output 128K | Only if you turn on server-side compaction |
| claude.ai chats, paid plans | 1M tokens | Not stated in the help page read |
| Claude Code, v2.1.334 and later | 1M tokens | About 367K (the |
| Claude Code, v2.1.321 to v2.1.333 | 1M tokens | Near the full 1M |
Claude Code with CLAUDE_CODE_DISABLE_1M_CONTEXT=1 | Treated as 200K | At the 200K boundary |
Opus 5.5 gets the same rows. Anthropic’s model overview gives both models 1M tokens and 128K output, and says 1M tokens is “roughly 555k words”. Fable 5.2 needs Claude Code v2.1.321 or later; an older version gets an error from the API, not a smaller window.
Why it compacts, by what you see
Run /context first. It shows what is filling the window, and /autocompact with no value shows your auto-compact window (on auto, 400K, which compacts at about 367K). Then find your case:
| You see | What’s going on | What to do |
|---|---|---|
Compacts every few turns, /context counts against 200K | Something holds the session to 200K | Check |
/context shows 1M, but /autocompact reports 200K | A saved window: |
|
| “This session is on auto, which now autocompacts near 400k tokens instead of 1m to lower the cost of long sessions. To opt out, run /autocompact 1m.” | The new default, working as designed | Keep it, or |
| A prompt titled “Autocompact now defaults to 400k tokens” | A one-time choice | Apply moves your 1M models to |
| “Autocompact is thrashing: the context refilled to the limit within 3 turns of the previous compact, 3 times in a row.” | One read or tool output fills the window right after each compaction | Read files in smaller pieces, send big reads to a subagent, or |
| “Raised this conversation’s auto-compact window” | More than about 180K tokens of system prompt, tools and instruction files go with every request | Fewer tools or shorter CLAUDE.md files, because a smaller window would refill right after compacting |
| Compacts after you’ve been away | Idle compaction, from 200K tokens by default | See compaction failing, or set |
| “Model ... isn’t recognized · context assumed to be ...” | Your Claude Code doesn’t know the model ID, often a gateway’s name for it |
|
Claude Code’s changelog for v2.1.334, released December 1, reads: “Changed auto-compact’s per-model auto setting to near 400K on most current 1M models, -p and SDK runs too (rolling out; on now with third-party providers or telemetry off)”. So two people on the same version can see different behaviour for now. Anthropic’s docs say a session resumed past 400K, a scheduled task, or a version before v2.1.334 still gets 1M.
On a gateway that really stops at 200K, the docs point the other way: set CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000 so Claude Code compacts before the gateway refuses.
What happened in launch week
Fable 5.2 came out on November 9, 2026, with Claude Code v2.1.321. Within three days, four r/ClaudeCode threads asked why it compacted so often, two of them with 200K in the title. One opened: “It didn’t write a single line but compacted 6 times already for me.” Another user pasted the thrashing error above and said they “can’t even read two MD files before compacting again.”
What fixed it, by their own reports:
- “I updated CC and restarted T3 and it works fine. But I did have the issue” (CC is Claude Code; T3 Code is another app they ran it in).
- On a later thread, the poster said it was “still” happening after updating. A reply gave
/model claude-fable-5-2[1m], and the poster answered “Thank you! It’s worked.”
One commenter called the 200K “a bug”. Anthropic hasn’t said so, and its docs don’t explain the launch-week reports. The changelog has related lines: v2.1.316 notes that Claude Code assumed a 200K window for a model ID it didn’t recognize, and v2.1.323, on November 12, changed that assumption to 1M.
That fits the reports without proving the cause. The docs say Fable needs no [1m] suffix. If you still see 200K on a current version after checking your settings, /model claude-fable-5-2[1m] is what fixed it for one user.
Should you use the full 1M?
Anthropic’s reason for the 400K default is cost: “Your later requests are smaller when compaction runs sooner, so long sessions use fewer tokens.” Each turn sends the whole context, so even with caching, a turn late in a 900K session costs more than one in a 300K session. On a Max plan that draws down the Fable share of your weekly limit faster too.
Several people in the launch threads had already set their own windows below 1M: “I set mine at 350”, “i use 250k context”, “/autocompact 450k anyways since 1m is overkill”. Others want the whole window for big codebases. Both are supported: /autocompact 300k or /autocompact 1M saves the size for the current model, and /autocompact auto goes back to Anthropic’s default.
Fable 5.2 vs Opus 5.5
On paper the two share a window, an output limit and a knowledge cutoff. Where they differ:
| Fable 5.2 | Opus 5.5 | |
|---|---|---|
| Context window | 1M tokens | 1M tokens |
| Max output | 128K tokens | 128K tokens |
| API price, input / output per million tokens | $8 / $40 | $4 / $20 |
| Cache reads per million tokens | $0.20 | $0.20 |
| Default effort on the API | high | medium |
| Default effort in Claude Code | medium | medium |
| Thinking | Adaptive, always on | Adaptive, always on |
| What Anthropic says it’s for | “demanding reasoning and long-horizon agentic work” | “long-running agentic coding and knowledge work” |
| On Pro and Team standard seats | Usage credits only | Your plan’s usual limits |
| On Max, Ultra and Team premium seats | Up to 50% of the weekly limit, used faster | Your plan’s usual limits |
| In Claude Code | v2.1.321 or later; |
|
Anthropic’s own advice: “start with Claude Opus 5.5 for most workloads. Use Claude Fable 5.2 for demanding reasoning and long-horizon agentic work, or when your evals on Claude Opus 5.5 at higher effort still fall short.”
We haven’t run the two models on the same prompts, so there’s no measurement of ours here. What users said in a 154-comment r/ClaudeCode thread asking what Fable does that Opus 5.5 can’t:
- The top reply, at 697 points: “Fable 5.2 is much much better than Opus 5.5 in spending quota and your money faster.”
- “Fable is a collaborator and opus is a workhorse.” Several people use Fable for planning, architecture and review, and hand implementation to Opus.
- One user put a review of a larger project at “$54”, and a small one at “$24”, on high effort.
- One user who had compared Fable 5.1 with Opus 5.5 on structural reviews said “they both found different things, none was clearly better than the other.”
For a measured comparison of two Claude models’ replies, see Sonnet 4.5 vs Sonnet 5.5, which includes Opus 5.5.
What a compaction keeps
Compaction replaces the conversation with a summary. Anthropic’s docs list what comes back from disk afterwards: the project-root CLAUDE.md and unscoped rules, auto memory, the plan from plan mode, skill descriptions, and up to five of the files Claude read or edited, most recently modified first. Rules scoped to paths and nested CLAUDE.md files reload only when Claude touches their files again. Anything you only said in the chat survives as far as the summary keeps it. Claude Code memory covers how to keep decisions in files that reload.
The docs also say SessionStart hooks that match the compact source run after a compaction and their output goes into the new context. That’s where Counterparts, which we make, fits: after compaction, Counterparts puts your memory back, and what was said before the compaction is still written up. The hook re-delivers the wake: Claude’s own short note of who you are, what you’re working on and where you left off. The same note opens your next session, too.
It doesn’t change when or how often Claude Code compacts.
It’s free, with its source on GitHub, and runs in Claude Code on a Mac, Linux or Windows. In Claude Code: /plugin marketplace add mlapeter/counterparts, then /plugin install counterparts@counterparts, and restart.
Questions people ask
What is Fable 5.2’s context window?
1M tokens. Anthropic’s docs give Claude Fable 5.2 a 1M-token context window on the Claude API, with no beta header needed, and its help center lists 1M for Fable 5.2 in claude.ai chats on paid plans, in Claude Code and in Cowork. Its maximum output is 128K tokens per request. Anthropic puts 1M tokens at roughly 555,000 words.
Does Fable 5.2 only have a 200K context window?
No. If a Claude Code session on Fable 5.2 compacts at about 200K, something is holding it there: the CLAUDE_CODE_DISABLE_1M_CONTEXT setting, an auto-compact window of 200K saved earlier (/autocompact, autoCompactWindow or CLAUDE_CODE_AUTO_COMPACT_WINDOW), a gateway or proxy, or, before v2.1.323, a gateway’s name for the model that Claude Code doesn’t recognize. In launch week several people on r/ClaudeCode saw 200K; replies say updating Claude Code and restarting, or /model claude-fable-5-2[1m], fixed it for them. Anthropic hasn’t published a cause.
Why does Claude Code compact Fable 5.2 at 400K?
Since Claude Code v2.1.334 (December 1, 2026), the default auto-compact setting on current 1M-token models, Fable 5.2 and Opus 5.5 included, is near 400K tokens, rolling out. Compaction then runs at about 367K. Anthropic says this lowers the cost of long sessions. Run /autocompact 1M to use the whole window; compaction then runs at about 967K.
What does “Autocompact is thrashing” mean on Fable 5.2?
Claude Code compacted, but the context filled up again within three turns, three times in a row, so it stopped. A large file, a big tool output or a large CLAUDE.md is the usual cause. Read the file in smaller pieces, send big reads to a subagent, or /clear. Since v2.1.335 the message names instruction files such as CLAUDE.md when they take up the most room.
Is Fable 5.2 better than Opus 5.5?
Anthropic says to start with Opus 5.5 for most work, and to use Fable 5.2 for demanding reasoning and long-horizon agentic work, or when Opus 5.5 at higher effort still falls short. Fable 5.2 costs twice as much per token on the API ($8 and $40 per million input and output tokens, against $4 and $20); cache reads cost the same, $0.20 per million, on both. Both have a 1M-token window and 128K maximum output. We haven’t run the two side by side.
Is Fable 5.2 included in Claude Pro or Max?
On Pro and Team standard seats, Fable models run on pay-as-you-go usage credits from the start. On Max, Ultra and Team premium seats, you can use up to 50% of your weekly limit on Fable models at no extra cost, and they use it faster than other models. Anthropic also lists limited-time Fable 5.2 launch offers: Max, Ultra and Team premium subscribers from before launch got one to three Fable limit resets, usable until March 8, 2027, and Pro’s free launch week ended November 16. Claude Code needs v2.1.321 or later for Fable 5.2.
Does compaction lose my work?
It summarizes the conversation. Claude Code reloads the project-root CLAUDE.md, auto memory, plan-mode plans and up to five of the files Claude read or edited from disk, and runs SessionStart hooks set for compaction. What was only said in the conversation survives only as far as the summary keeps it. Counterparts, which we make, puts your memory back after each compaction through that hook; it doesn’t change when Claude Code compacts.
Questions? Ask in r/AIMemorySystems.
References
- Anthropic, Claude API docs: Models overview, Claude Fable 5.2, Context windows, Pricing
- Anthropic, Claude Code docs: Model configuration (extended context, auto-compact window, effort), Explore the context window (what survives compaction), Commands, Errors
- Claude Code changelog: v2.1.316, v2.1.321, v2.1.323, v2.1.334, v2.1.335
- Anthropic Help Center: Claude Fable models on your plan, How large is the context window on paid Claude plans?, Fable 5.2 launch offers
- r/ClaudeCode, read through the Arctic Shift archive: compacted 6 times, the thrashing error, updated and restarted, the
[1m]reply and the poster’s answer, own windows, what Fable does that Opus 5.5 can’t - Ours: Counterparts for Claude Code
- Related: Context compaction failing, Claude Code memory, Sonnet 4.5 vs Sonnet 5.5
More guides: all guides.