Angaben zum Datum
Datum des passenden GitHub-Releases.
Erstmals gesehen am .
Claude Code von Anthropic
Claude Code 2.1.251
Neu sind die Hook-Events PreModelSwitch und PostModelSwitch, Live-Streaming von Subagent-Aufrufen an Remote Control, eine Spend-limit-Anzeige in /usage und eine Prompt-Cache-Zeile in /cost, außerdem Sicherheitsfixes für Symlinks, Plugin-Pfade und Tracing-Einstellungen.
- Added
PreModelSwitchandPostModelSwitchhook events (block, confirm, or annotate a model switch);SessionStartresume 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
/usageand arate_limits.spend_limitstatus 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 matchingprompt_cacheobject for status line scripts - Added
attach,logs,stop,respawn, andrmtoclaude --help; the--resumemessage for a running background session now names the exactclaude attach <id>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 …