Claude Code 2.1.251 Adds Model Switch Hooks
ClaudeCodeLog · x · 2026-08-29
Claude Code CLI released version 2.1.251.
New Features:
- Added PreModelSwitch and PostModelSwitch hook events (block, confirm, or annotate a model switch); SessionStart resume hooks now receive session staleness and estimated re-cache cost.
- Added live streaming of a foreground subagent's tool calls and results to Remote Control clients (background subagents still show status only).
CLI Surface Changes:
- Removed env vars: SCREENSHOTDIR, USERPROFILE.
Metadata:
- Bundle file size decreased by 7,842.7 kB (-14.4%) compared to v2.1.250.
- Prompt files increased by 2 (+18.2%); Prompt tokens increased by 7,355 (+53.9%).
- Prompt token mix: tools占比 decreased from 69.3% to 59.8%; system占比 increased from 30.7% to 40.2%.
Related event: Claude Code Update: Faster CLI, Token Visualization, and Model Switch Hooks(3 posts)→
More from coding & agent
- Seedance 2.0 unlimited for $5: Dreamina CLI lets your agent run video generation end-to-end — Aiden_Tech_Ai · 2026-11-30
- Business-prose model open-sourced: trained on a single 96GB GPU, all quant formats in one repo — IridiumEagle · 2026-11-30
- Ambient open-sources anti-slop writing model trained on a single 96GB RTX PRO 6000 — IridiumEagle · 2026-11-30
- Devs say vibe-coding workflow is draining the joy of programming — weskambale · 2026-11-30
- Slipwing: Open-Source Windows MCP Server Lets Agents Drive Chrome and Desktop Apps in the Background — Sudden_Analysis8617 · 2026-11-30
- ByteDance's TRAE launches TRAE Bao: a cloud-based coding assistant you control from your phone — xiaohu · 2026-11-30