Claude Code Auto-Compact Hits Early. Should You Keep the Full 1M?
Claude Code auto-compact now targets 400K on most 1M models. Check the override and protect task continuity before choosing a bigger context window.

Claude Code auto-compact is moving to a 400K window on most current 1M-context models, including scripted -p and SDK runs. The rollout ships with version 2.1.334, released December 2 at 3:42 AM IST. The full 1M option remains available. Anthropic's release notes
The immediate decision is whether your task benefits more from keeping detailed history or from shortening later requests. Start with the automatic setting for bounded work. Consider a larger window when a task needs many earlier details together. Write down the task's decisions either way. A bigger ceiling cannot substitute for knowing which evidence matters.
Lydia Hallie's December 2 rollout announcement points users who want the full window to /autocompact 1m or /config. The useful question is what happens to the work when the summary arrives.
Why Claude Code auto-compact can fire at 37%
Anthropic documents compaction at approximately 367K tokens for the 400K automatic window, versus 967K for an explicitly selected 1M window. The status percentage still measures the full million, explaining the roughly 37% reading. The window and the point at which summarization starts are different numbers. Official threshold explanation

Threshold diagram based on Anthropic's documentation, checked December 3, 2026. The bars show documented approximate trigger points.
The documented current-model group includes Fable, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later. Older 200K configurations do not become million-token sessions by changing this setting. Model configuration
Large instruction and tool payloads can raise the window. Resuming a conversation already past 400K keeps 1M until compaction. Scheduled tasks and self-hosted sessions retain 1M, and older clients differ. Check the value in the active session. Documented exceptions
In a resumed conversation, wait for a reply before inspecting the value. A locally saved choice applies to that model version, so check again after a model change. Inspecting the active window
/autocompact
/autocompact 1M
/autocompact autoThe first command displays the active setting. The second selects 1M, and the third restores the default. A higher-priority policy or environment override can still govern the session, so read the command's response. Setting precedence
How an earlier trigger can change usage
We subtracted the documented trigger points. The 367,000 threshold is 600,000 tokens lower than 967,000, a difference of about 62%. That percentage measures the trigger position. Cost, quota use and error rates need their own measurements.
Here is a separate hypothetical example. Suppose ten later requests each carry 600,000 tokens of unchanged history. That represents six million history-token reads. If a summary instead leaves each of those requests carrying 100,000 tokens, the same ten reads total one million. The difference is five million repeated tokens. Both history sizes and the request count are hypothetical.
old_trigger = 967_000
new_trigger = 367_000
earlier_percent = 100 * (old_trigger - new_trigger) / old_trigger
# Hypothetical repeated-history reads, excluding all other tokens.
read_difference = 10 * (600_000 - 100_000)
print(round(earlier_percent, 2)) # 62.05
print(read_difference) # 5000000Your cost depends on the mix of new input and cached reads. Prompt caching prices them differently. Compaction also rewrites the conversation, so the shorter history needs a cache rebuild. Anthropic's prompt-caching explanation describes that tradeoff. A fair total includes the summary, rebuild, later reads, new output and any work repeated because a detail went missing.
An Ultra user asked why they would want earlier compaction. Hallie said cached reads add up in long sessions, especially around cache expiry. She advised users who rarely hit limits that they could keep 1M. In a separate reply she said the summarization method is unchanged and the cache rebuilds for the shorter history. Ultra and cache reply · Compaction and rebuild reply
Protect the reasoning you cannot afford to repeat
The concern in the replies is practical. A GitHub issue opened December 2 reports long sessions being summarized during a task and asks for the former default back. In a Reddit discussion, commenter Wezabis2 asks whether the agent can retain both failed approaches and the reasons they failed.
Anthropic says compaction produces a summary that can lose detailed earlier instructions. Its description of the agent's context recommends persistent rules in CLAUDE.md and focused compact instructions. The context-window reference says project-root instructions return from disk and up to five recent files are reread, with size limits. Add important files and evidence to your handoff record so the next step can find them.
Consider a hypothetical authentication bug. The agent has ruled out cookie expiry, reproduced a proxy-header problem and started a fix. A handoff that says only “fix login” leaves too much work to reconstruct. A useful note records the rejected hypothesis, evidence file, current patch and next check. Keep the record in your task notes and explicitly ask the agent to read it after a summary.
Goal: Login must survive the reverse proxy without weakening cookie flags.
Ruled out: Cookie expiry; reproduction also fails with a fresh cookie.
Evidence: See the saved redacted request fixture and failing test name.
Decision: Preserve Secure and HttpOnly; inspect forwarded host handling.
Changed: Record exact files and what still needs review.
Next check: Run the focused proxy test, then the authentication suite.Replace every example with your actual evidence. A filename without a real file is another unsupported assertion. Keep transient bug details in the task record. Reserve root instructions for enduring constraints. The goal is a reviewable chain from observation to decision, with enough detail to detect when the agent starts repeating a rejected fix.
Compare accepted work before choosing a permanent override
For your next representative task, record the client version, model, active window and starting context. Set an acceptance condition before the run, such as a particular regression test passing with the existing security checks intact. Avoid comparing an easy fresh task at 400K with a difficult resumed investigation at 1M.
After a compaction, ask the agent to restate the unresolved issue and next verification step from the saved evidence. Compare that answer with your notes. Count repeated failed approaches, missing constraints and time spent restoring context. Those observations show whether summarization harmed this workflow more directly than a context percentage does.
For usage, record /usage before and after the task. Anthropic's usage documentation distinguishes plan usage from the session's locally estimated API cost and exposes cache statistics. Capture rebuilds and cache-read totals alongside completion time. A lower estimate paired with an unacceptable patch is a failed comparison.
This is a proposed evaluation procedure. Our check in this article covered the threshold arithmetic, and a session comparison requires separate testing. For billing-route questions, our Claude Code pricing guide explains why a terminal dollar estimate and an actual subscription charge need separate checks.
What to do
- Inspect the session first. Read the active window and model before a long run. Verify the active session even after updating the client, because Anthropic is rolling out the change.
- Choose around the task. Keep the automatic policy for focused work with clear checkpoints. Consider 1M when a single analysis needs many earlier details together. Check whether that larger history actually improves accepted output.
- Save evidence before summarization. Record failed approaches, open decisions, changed files and the next check. Review the agent's continuation against that record.
- Measure a complete task. Include rebuilds, retries and restoration time. Restore the automatic setting when the reason for a larger window ends, then verify the active value.


