PreModelSwitch and PostModelSwitch: Claude Code Lets You Veto a Model Change
Claude Code 2.1.251 adds PreModelSwitch and PostModelSwitch hook events to block, confirm, or annotate a model switch, plus live streaming of foreground subagent tool calls to Remote Control clients.
What it is
A new Claude Code release adding hook events tied to model switching, plus visibility and cost-tracking additions for sessions running behind a gateway.
What it does
PreModelSwitch and PostModelSwitch hooks let a project intercept, confirm, or annotate any mid-session model change; foreground subagent tool calls now stream live to Remote Control clients instead of showing status only; /usage and /cost gain a spend-limit bar and a per-session prompt-cache line showing hit ratio and misses.
Why it matters
The same release wave continued with v2.1.250 (bug fixes only), and later 2.1.240/2.1.241 style maintenance-only releases, confirming Anthropic is still shipping near-daily even between headline feature drops.
How to use it
Update Claude Code and register a PreModelSwitch hook in your project config if you need to block or log model changes; see the full changelog at the v2.1.251 release.