header-langage
简体中文
繁體中文
English
Tiếng Việt
한국어
日本語
ภาษาไทย
Türkçe
Scan to Download the APP
Partnered With:

Claude Code lowers the default compaction threshold for most million-context models to about 400,000 tokens, condensing long sessions earlier to save quota.

Beating AI News Flash: Anthropic has begun rolling out new default settings in batches within its coding tool Claude Code (starting from v2.1.334), lowering the auto-compact window for most native million-token context models — including Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable — from 1 million tokens down to around 400,000. Script mode (-p) and SDK calls are also affected. Previously, such sessions had to accumulate to roughly 967,000 tokens before compaction was triggered; after the change, it executes early at around 367,000 tokens used (bottom status bar usage at approximately 37%).


Once auto-compact is triggered, Claude Code replaces the entire prior chat transcript with a brief summary, reloads project rules, memory, and a small number of recently read or modified files, then rebuilds the cache based on the shortened history. Claude Code team member Lydia Hallie explained that in long sessions, every new message requires re-reading the accumulated context; even if cache hits are priced lower, the cumulative cost of stacking it all up remains substantial — and idle periods mid-session that cause cache expiration make it even more expensive. Early compaction reduces the size of each subsequent request, helping long sessions save quota.


Users who rarely hit the limit and want to run the full million-token window can type /autocompact 1m in the session, or change it back to 1 million in the new /config settings panel; the local machine will save this setting for the current model.

举报 Correction/Report
RelatedRecommended
Anthropic chose the harder path, getting stuff done with your terminal, your environment, your config, instead of "writing some code in a clean room and then copy-pasting it over."
The code directly responsible for calling the AI model's API accounts for only 1.6% of the total.
Correction/Report
Submit
Add Library
Visible to myself only
Public
Save
Choose Library
Add Library
Cancel
Finish