PreModelSwitch: Claude Code Can Now Veto a Model Change
Claude Code 2.1.251 adds PreModelSwitch and PostModelSwitch hook events. The matcher fires on the canonical name of the model you are switching to, and exit code 2 cancels the switch.
191 posts · Page 3 of 20