# Claude Code 2.1.251

By Steven Van · 2026-08-28

Added PreModelSwitch and PostModelSwitch hook events (block, confirm, or annotate a model switch); SessionStart resume hooks now receive session staleness…

[Claude Code](<https://creatorstoolbox.com/tools/claude-code>) [2.1.251](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21251>) adds hook events for model switching, live streaming of subagent activity to Remote Control, and spend-limit visibility for teams behind a gateway.

- New **PreModelSwitch** and **PostModelSwitch** hook events can block, confirm, or annotate a model switch; **SessionStart** resume hooks now receive the session's staleness and the estimated cost of re-caching it.

- Remote Control clients can now watch a foreground subagent's tool calls and results stream live; background subagents, the default, still show status only.

- A spend limit bar has been added to **/usage**, with a matching **rate\_limits.spend\_limit** status line field for developers behind a Claude apps gateway with spend limits.

- **/cost** now shows a per-session prompt-cache line (hit ratio, misses, tokens re-cached, warm or cold), with a matching **prompt\_cache** object for status line scripts.

- **claude --help** now lists **attach**, **logs**, **stop**, **respawn**, and **rm**; the **--resume** message for a running background session now names the exact **claude attach** command to use.

The release also fixes a bug where file tools could follow a symlink swapped into the working directory after the permission check, letting them read or write outside the approved location, and closes a path-traversal hole where plugin commands declared in a marketplace entry could point outside the plugin directory.

[![](<https://opengraph.githubassets.com/1c44a02e32016a621b4346fffa25e1736ef65afb7e0e26fa3286b45462f5e78d/anthropics/claude-code>)](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21251>)

![Claude Code](<https://www.google.com/s2/favicons?domain=claude.com&sz=128>)

Claude Code

Anthropic's agentic coding tool — Claude in your terminal, IDE, desktop app and browser, reading and editing your codebase, running commands, opening pull requests and working on tasks in the cloud.

[View Claude Code →](<https://creatorstoolbox.com/tools/claude-code>)

Sources

[Original source](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21251>)

[Read Claude Code 2.1.251 on Creators Toolbox](<https://creatorstoolbox.com/blog/claude-code-claude-code-2-1-251>)

---
Canonical source: https://creatorstoolbox.com/blog/claude-code-claude-code-2-1-251
