Source · release
Claude Code release 2.1.334
Summary
Claude Code 2.1.334 adds per-folder REVIEW.md files for /code-review and an
auto-compact row in /config. It also adds a way to check a gateway config without
starting it, and finer cache pricing keys. It lowers the default auto-compact point to
about 400K tokens on most current 1M-context models. The changelog has no dates; the
date above comes from the matching Agent SDK release (TypeScript 0.3.334, 2026-12-01).
This note was read from CHANGELOG.md in the repository.
Key points
- Auto-compact about 400K by default on most 1M-context models (rolling out).
- Check or change it in the new Auto-compact window row in
/config, or with/autocompact. - Raise it again if long sessions need the full window, at a higher token cost.
- Check or change it in the new Auto-compact window row in
- Folder-level
REVIEW.md:/code-reviewnow reads aREVIEW.mdin a subfolder as well as the repo root, so each part of a monorepo can have its own review rules. - Gateway config check:
claude gateway --config <file> --check configvalidates a config without starting the gateway. Useful in CI before you deploy. - Pricing keys:
modelPricinggainscacheWrite5m,cacheWrite1h, andlongPrompt(for Haiku 5.5).- Gateway
pricing.overridesgainscache_write_5m,cache_write_1h, andlong_prompt. - Old keys still work.
- Small changes:
/modelgets a search box when there are more than 25 models./desktopandclaude --desktopnow work on Windows on Arm.
Why it matters
The new auto-compact default changes how long sessions behave without any action on
your side: costs go down, but older detail is summarised sooner. Per-folder review rules
make the local /code-review added in 2.1.333 practical in large repos.