Claude Code 2.1.334 shipped December 1, cutting the default auto-compact point to near 400K tokens on 1M-context models
The /model picker now gets a search box once a provider lists more than 25 models
A new claude gateway --check config command validates a gateway config file before anyone deploys it
201 bug fixes landed, including one for worktrees that started from the wrong branch
On December 1, Anthropic shipped Claude Code 2.1.334, and the change most people running long sessions will actually feel is buried in the compaction settings, not the headline feature list. The default point where Claude Code summarizes your conversation history now sits near 400K tokens on most current 1M-context models, down from whatever let those sessions run much closer to their full window before. I run long sessions on this exact repo daily, so I went looking for what else moved in this release before deciding whether to touch any settings myself.
What Changed in Claude Code 2.1.334?
The short answer: auto-compact got more conservative on big-context models, and a handful of smaller features landed around it. Anthropic's own changelog lists the compaction change plainly: "the default auto-compact size changes to about 400K on most current 1M-token models." That's a meaningful cut if you've been relying on the full window for something like reviewing a huge file or holding a sprawling multi-file refactor in context at once.
Auto-compact itself isn't new. It's the mechanism that rewrites older parts of a conversation into a summary once you cross a threshold, freeing up space so the session doesn't just stop working when it hits the model's context ceiling. What's new is where that line sits by default.
A 1M-token model advertised a million tokens of room. Out of the box, Claude Code now steps in well under half that.
There's a visible hook for this in /config too. A new Auto-compact row shows the size that /autocompact currently sets, so you can at least see the number instead of guessing from behavior. I checked mine right after updating. It's worth doing the same before you start anything that leans on long context, because the number tells you exactly how much runway you have left before a summary replaces your detail.
Before this release, the only way to know you were close was watching a context warning show up mid-task, usually right when you least wanted to stop and think about settings. Now the number sits in a settings screen you can check in advance, which is a small change in presentation that still makes a real difference to how it feels to plan a long session.
Paired with this is a change to how /code-review reads REVIEW.md. The previous release, 2.1.333, added support for a REVIEW.md file at the root of a repo. This one extends that to parent folders, so a monorepo with different review rules per package can nest them instead of fighting over one root file. Worth knowing even if you never touch REVIEW.md: /code-review keeps getting more configurable release over release, the same pattern I've seen with the MCP skills support that landed one version earlier.
What Else Shipped in This Release?
Beyond compaction, three changes are worth knowing about even if none of them will change your daily workflow on their own. The /model picker gets a search box once a provider's list passes 25 models, which matters more than it sounds like if you've ever scrolled past a dozen Opus, Sonnet, and Haiku variants looking for one specific snapshot you need for a reproducible test.
On the gateway side, there's a new claude gateway --config <file> --check config command. It validates a gateway config file before it's live, and the gateway now reports bad managed policies at startup instead of letting them fail silently later.
Neither of those matters if you're a solo developer running Claude Code against your own account. But if you're fronting a team through a self-hosted gateway, catching a bad config before deploy beats catching it after a developer's session quietly breaks mid-afternoon with no clear error pointing back at the policy file.
Mod panes can also fill the terminal in fullscreen mode now, a small quality-of-life thing for anyone building a Claude Code plugin with a custom UI pane that needed more than a narrow sidebar strip to be useful. If you've only ever used mod panes as a thin status strip along one edge, this is the release where that stops being the only option.
Small, but it adds up.
And there's a long tail of changes across VS Code, Claude Code on the web, Remote Control, and Claude Tag that the changelog groups under "other surfaces." None of them are dramatic on their own. Together, they're the usual steady maintenance a tool like this gets every week or two, the kind of release that never makes a headline but quietly fixes the thing that's been annoying you since the last update.
Which Bugs Did 2.1.334 Actually Fix?
201 of them, according to the changelog, which is a lot even by Claude Code's own fast release cadence. Most of those won't be individually interesting, but three stood out to me from the list.
Worktrees starting from the wrong branch is fixed in this release. I covered a related worktree bug in 2.1.327 back when it was deleting env files on creation. Worktrees have clearly been a rough edge for a few releases running, and it's good to see another one closed out rather than left open for people juggling parallel branches on the same repo.
Requests failing outright when thinking is turned off on a model that doesn't accept that setting is also fixed. That's the kind of bug that looks like a Claude Code problem when it's really a mismatch between a setting you left on from a different model and the one you've since switched to. I've hit versions of this myself after bouncing between models mid-session without checking what each one actually supports.
mTLS certificate handling got fixed too. That only matters if your organization runs Claude Code behind mutual TLS, but for the people it does matter to, a broken cert handshake is a hard stop, not a minor annoyance, and it blocks every request until someone notices.
That's it for the headline bugs.
None of these are show-stoppers for someone running Claude Code solo against claude.ai or the API directly. They matter more if you're on a managed gateway, switching models mid-project, or living inside worktrees for parallel branches, which, if you've read anything else I've written here, you know I do constantly.
Should You Touch Your Auto-Compact Settings Today?
If you run anything close to the full context on a 1M-token model, yes, at least check it. Open /config, look at the new Auto-compact row, and see where the number actually sits for you right now. If you're the kind of person who holds an entire large codebase review in one session before compacting, 400K is a real cut from what you were getting before, and you'll notice Claude Code summarizing earlier than it used to.
I wouldn't rush to raise it back to the old ceiling just because you can.
Compacting earlier means losing fine detail sooner. It also means your prompt cache rebuilds less dramatically, and the model isn't straining to reason over everything it's ever seen in a single sprawling conversation. Anthropic's own guidance on cost and context management has said for a while that performance can degrade as you approach a model's real limit, not just that costs climb with it. A lower default auto-compact point is at least consistent with that advice, even if 400K feels arbitrary the first time you hit it mid-task.
What I'd actually do: if a specific long-running task needs more raw room, like a big one-shot migration review across dozens of files, raise the window for that session deliberately with /autocompact and know you're trading clarity now for a rougher summary later. For everything else, I'd leave the new default alone and see how it behaves for a week before touching anything.
One more thing worth doing before you decide either way: run /usage and actually look at where your sessions tend to land. Guessing at your own usage pattern is how you end up tuning a setting for a problem you don't actually have.
If you mostly write and ship small features one at a time, there's a decent chance this change never touches you at all. 400K tokens is still a lot of conversation, and plenty of sessions clear without ever brushing it. It's the long-haul sessions, the ones where you've been going back and forth for hours on one gnarly refactor, that will actually notice the earlier cutoff.
Bottom Line
Claude Code 2.1.334 is a maintenance release wearing a feature release's version number. The compaction change is the one thing here that will actually alter how a long session behaves, and it's worth five minutes to check /config and see your own number before you hit it mid-task and wonder why summarization kicked in earlier than expected. Everything else, the model search box, the gateway config check, the fullscreen mod panes, the 201 bug fixes, is useful in the way routine releases usually are: nice if it fixes something that was bothering you, invisible if it doesn't.
My own plan is to leave the new 400K default alone for now and watch how it behaves across a normal week of sessions on this repo. If it ends up compacting in the middle of something I actually needed intact, I'll raise the window for that one session rather than globally. That's the same rule I'd give anyone reading this: don't fight a new default until it's actually cost you something.
