
Claude Code 2.1.334: 400K Auto Compaction & Config Controls
Version 2.1.334 updates auto compaction on one million context models to target near 400K tokens and adds a new Auto compact window row in slash config. We also cover fixes for false prompt-too-long errors, model list search, folder-level REVIEW.md support, and gateway config validation.
Chapter 1
Claude Code 2.1.334 Auto Compact and Config Controls
Lachlan Reed
Happy Tuesday, folks, and this episode of the Claude Code Changelog is brought to you by Jellypod AI. Let us get straight into version 2.1.334, which dropped on December 1, 2026. The big headline here is how auto compaction behaves on one million context models. Previously, those massive context windows would wait until they were nearly full before compacting. Now, auto compact's per model auto setting targets near 400K tokens on most current one million context models. And that applies across the board, including non interactive p flag runs and Agent SDK runs.
James Turner
That is a huge shift for anyone running long headless scripts or SDK workflows. Keeping context sizes manageable around 400K instead of letting them balloon to a million tokens means faster, cleaner sessions without hitting a wall at the last second. Even better, you actually have visibility into it now. In 2.1.334, slash config includes a brand new Auto compact window row. You can look right there to see and change the exact threshold that slash autocompact sets, instead of just guessing what it is targeting under the hood.
Lachlan Reed
No more flying blind, which is always a win. And while they were in there tuning compaction, they squashed two nasty related bugs. First, slash context no longer draws the compact buffer as used space when auto compact is turned off. Second, they fixed a bug that was triggering needless auto compaction, or even worse, false Prompt is too long errors, right after a response hit the output token limit before writing any text. If you saw that error pop up out of nowhere last week, 2.1.334 should put it to bed.
James Turner
To get started, run claude with the double dash version flag to confirm you are on 2.1.334. From there, open slash config and look for the Auto compact window row to inspect or adjust your threshold, and keep using slash autocompact just like before. One caveat to watch out for, though. The near 400K default is currently rolling out for standard setups. If you are on a third party provider, or you have telemetry turned off, it is already active for you right now.
Lachlan Reed
Good to know. Before we wrap, there are a few smaller quality of life updates in 2.1.334 worth having on your radar. If your team has a massive list of models, slash model now has a search box whenever the list goes past 25 models, matching both names and model IDs. Just press the down arrow for s and number keys. Also, building on the root REVIEW dot md support from 2.1.333, slash code review now follows folder level REVIEW dot md files in folders above a committed change during local reviews. And for gateway users, you can now run claude gateway with double dash config and double dash check config to validate a file without actually starting the gateway.
James Turner
Two more quick ones to close out. If you use double dash system prompt with a dunder SYSTEM_PROMPT_DYNAMIC_BOUNDARY line on Bedrock, Agent Platform, Foundry, gateways, or with experimental betas off, everything above that boundary now gets its own prompt cache breakpoint. And finally, Windows on Arm users now have slash desktop and claude double dash desktop support. Update your CLI, check your new Auto compact window in slash config, and we will catch you on the next one.