Vibe Coding
Claude Code 2.1.251 Adds PreModelSwitch and PostModelSwitch Hooks, and Tells SessionStart Resume Hooks What a Re-Cache Will Cost
Version 2.1.251, dated 2026-08-28 by releasebot.io, introduces `PreModelSwitch` and `PostModelSwitch` hook events that can block, confirm, or annotate a model switch, and `SessionStart` resume hooks now receive session staleness plus the estimated re-cache cost. That second half is the useful one for anyone running scheduled agents: a resume hook can now decide whether reviving a stale session is worth the cache rebuild rather than guessing. The model-switch hooks give teams a policy point for pinning expensive models on specific projects.
Source
↳ Follow the thread