Source · release

Claude Code release 2.1.334

Author
Anthropic
Published
1 December 2026
Added
2 December 2026
Original
https://github.com/anthropics/claude-code/releases/tag/v2.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.
  • Folder-level REVIEW.md: /code-review now reads a REVIEW.md in 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 config validates a config without starting the gateway. Useful in CI before you deploy.
  • Pricing keys:
    • modelPricing gains cacheWrite5m, cacheWrite1h, and longPrompt (for Haiku 5.5).
    • Gateway pricing.overrides gains cache_write_5m, cache_write_1h, and long_prompt.
    • Old keys still work.
  • Small changes:
    • /model gets a search box when there are more than 25 models.
    • /desktop and claude --desktop now 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.