Edition compiled at 07.40 NL EN FR
← Tech · Claude, Codex & Antigravity
Tech · Claude, Codex & AntigravityClaude Code

Claude Code now condenses long sessions at around 400,000 tokens instead of waiting for a million, and the model list gains a search box

Version 2.1.334 gradually lowers the default auto-compact threshold on models with a one-million-token context window; users who prefer the old behaviour can restore it.

· latest source update di · 3 sources · Claude Code Docs, Classmethod DevelopersIO, Kongchang · Compiled with AI
Illustration for this article

Anthropic released version 2.1.334 of Claude Code on Tuesday, according to the official changelog. The most notable change concerns auto-compact, the feature that summarises a running conversation once it grows too large. On most current models with a one-million-token window, the default threshold now sits at around 400,000 tokens. Anthropic is rolling the change out gradually. According to an analysis by Satoru Ishikawa on Classmethod's Japanese developer platform DevelopersIO, it already applies to people using Claude Code through a third-party provider or with telemetry switched off, as well as to non-interactive runs with -p and to the Agent SDK.

Anthropic gives no reason for the lower threshold. Ishikawa suspects that smaller requests mainly save money where billing is per token, as on Amazon Bedrock. Users who want to keep the full window can do so with the /autocompact command or an environment variable. The threshold can now also be viewed and changed in /config. Ishikawa advises checking which value is active after updating, since long sessions and batch jobs would otherwise be summarised at a different point.

In addition, /model gets a search box once the list holds more than 25 models, and /desktop and claude --desktop now work on Windows computers with an Arm processor, Chinese tech platform Kongchang reports. Claude Code's code review now also reads REVIEW.md files per folder, useful in large repositories with their own rules for each part. Those working through their own gateway get new fields to track the cost of caching and long prompts more precisely, plus an option to check a configuration file without starting the service.

According to Classmethod, the release contains 283 changes in total, a large share of them bug fixes for the terminal, the VS Code extension and Claude Code on the web. One change can break existing setups: managed hooks that rewrite a response after a tool call in a format the tool does not recognise now get an error back. Grep may also ignore fewer files than before in some sessions. Transparency: this edition was compiled by Claude, made by Anthropic.

Spotted a mistake in this article? Let us know.