Auto-compact on 1M models moves to about 400,000 tokens

Anthropic changed the default setting for auto-compact in version 2.1.334 of its coding tool Claude Code on Dec. 1 (Dec. 2 Japan time). According to the official changelog, on most current models that can read 1 million tokens (1M; tokens are the units AI uses to process text) at once, the per-model default setting "auto" is now about 400,000 tokens. Runs without interaction (-p) and runs through the software development kit (SDK) are also covered. The change is rolling out, and it already applies when Claude Code is used through third-party cloud providers or with usage data sharing (telemetry) turned off.

Auto-compact replaces the conversation so far with a summary once it reaches a set size (the auto-compact "window") and then continues. With the change, conversations on 1M models switch to a summary as they approach 400,000 tokens.

Lydia Hallie, who works on Claude Code at Anthropic, announced the change on X at 10:26 a.m. Dec. 2 Japan time. Her X profile lists Claude Code and Anthropic.

400k auto-compact is now rolling out as the default in Claude Code for most 1M models! This should help with your usage if you run longer sessions You can still keep the full 1M window by running "/autocompact 1m" or in /config

Compaction now starts at about 367,000 tokens instead of about 967,000

According to the official documentation, auto is a setting "that Anthropic tunes per model for the best cost and performance." The 1M models covered are the Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later, and auto is 400,000 tokens on them. At that setting, compaction starts at about 367,000 tokens. With the full 1M window, compaction starts at about 967,000 tokens.

The documentation says later requests are smaller when compaction runs sooner, so long sessions use fewer tokens.

Point where auto-compact starts on 1M models (thousand tokens). Based on Claude Code's official documentation
  • Full 1M window
  • New auto (400,000 tokens)
  • Point where Claude Code's auto-compact startsAnthropic967 → 367

The status line's usage percentage is measured against the full 1M, so it reads about 37% when compaction starts on auto.

Employee says change helps usage in long sessions

In her latest post, Hallie wrote that the change should help with usage for people who run longer sessions. In a post on Oct. 9 (Oct. 10 Japan time), she had explained that waiting until about 967,000 tokens to compact means every message before that point uses many tokens, because each one includes the whole conversation so far. According to her, most of that is read from the cache, a cheaper store of the recent conversation, but it still counts toward usage and adds up as the conversation grows. At the time, Hallie said setting "/autocompact 400k" makes Claude Code summarize at 400,000 tokens.

Complaints that Claude Code's subscription usage limits run out faster than expected have continued. Boris Cherny, who leads Claude Code, said on Oct. 28 (Oct. 29 Japan time) that the team was fixing several small bugs that sped up consumption but found no single cause. In October, Claude Code also added a feature that automatically summarizes long conversations left idle.

Full 1M window kept with "/autocompact 1M"

To keep using the earlier 1M window, users run "/autocompact 1M" in a session. On a user's own machine, the value is saved for later sessions on that model version, and compaction starts at about 967,000 tokens. Version 2.1.334 also added an auto-compact window row to the "/config" settings screen to check and change the value.

Companies can fix the window at 1M for each model version through settings distributed by administrators (managed settings). When the new default applies, a one-time prompt titled "Autocompact now defaults to 400k tokens" appears. Users can move all models to auto, move only the model in use, or keep saved values, and closing the prompt leaves auto in place with compaction near 400,000 tokens.

In the following cases, conversations run past 400,000 tokens even on the default. If the instructions and tool descriptions sent with every request exceed about 180,000 tokens, the window is raised for that conversation. A resumed conversation already past 400,000 tokens stays at 1M until it compacts. Scheduled tasks in the desktop app or the cloud, sessions in self-hosted environments, and versions before 2.1.334 run at 1M.

The latest version distributed on npm was 2.1.334 as of Dec. 2.

More compactions, and the window may change again

Auto-compact replaces the whole conversation with a short summary. A smaller window means more replacements by a summary for work of the same length. In idle-time summarization, which ORIENS reported on in October, a developer blog pointed out that rejected ideas and exact error messages could drop out of the summary.

The official documentation warns that when the instructions and tool descriptions sent each time are large, a small window can fill up again right after compaction, and asks users to cut tools or instructions rather than shrink the window. Anthropic says it continues to evaluate auto for future models and asks users to check the window again after switching to a newer model.

Some competitors are widening how much their tools can read at once. In November, a developer of Google's development tool "Antigravity" said the amount the tool can read at once would double for three "Gemini 4" models, cutting compaction per turn by a factor of 3.5.