2.1.251
Highlights:
- Added PreModelSwitch/PostModelSwitch hooks to block/confirm/annotate model switches for controlled rollouts
- File Read/Write/Edit now block swapped symlinks that escape the working directory, preventing outside access
CLI changelog
- Added PreModelSwitch and PostModelSwitch hook events (block, confirm, or annotate a model switch); SessionStart resume hooks now receive session staleness and the estimated re-cache cost
- Added live streaming of a foreground subagent's tool calls and results to Remote Control clients (background subagents, the default, still show status only)
- Added a Spend limit bar to /usage and a rate_limits.spend_limit status line field for developers behind a Claude apps gateway with spend limits
- Added a per-session prompt-cache line to /cost (hit ratio, misses, tokens re-cached, warm/cold) and a matching prompt_cache object for status line scripts
- Added attach, logs, stop, respawn, and rm to claude --help; the --resume message for a running background session now names the exact claude attach command
- Fixed file tools (Read, Write, Edit) following a symlink swapped inside the working directory after the permission check, which could read or write outside the approved location
- Fixed plugin commands declared in a marketplace entry being able to point outside the plugin directory; such paths are now rejected with a path-traversal error
- Fixed project settings being able to enable detailed beta tracing or raw API body logging, and a lower-scope beta tracing endpoint bypassing an OTLP collector pinned by managed settings or a host app
- Fixed the Workflow tool reading (and quoting in errors) a scriptPath outside what the session may read before the permission check ran
- Fixed Grep and Glob not applying Read(...) deny rules to files reached through a symlinked search path
- Fixed conversations getting stuck on "text content blocks must be non-empty" errors after a turn where the model produced only thinking
- Fixed the first launch on a fresh install starting in default mode instead of auto mode for accounts whose startup default is auto mode
- … +59 more CLI changelog entries
Source: https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21251
Metadata
-
Time since 2.1.250 release: 17h 32m 15s
-
Bundle file size: -7,842.7 kB (-14.4%)
-
Prompt files: +2 (+18.2%)
-
Prompt tokens: +7,355 (+53.9%)
Prompt token mix by kind:
- tools: 69.3%→59.8%
- system: 30.7%→40.2%
Files: