Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.271 ·

Hook add/replace operations now validate before applying

Adding or replacing a hook now runs a validation check before applying the change

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaHookswhat it touches
KindImprovementsin v2.1.271,
You'll notice

Adding or replacing a hook now runs a validation check before applying the change

What

Hooks are scripts that run automatically at certain points, such as before or after a tool call. When you add or replace a hook matcher (the rule that decides when a hook fires), Claude Code now runs a validation pass first. If that validation fails, the operation is rejected with a specific outcome instead of always being applied.

Why

This stops invalid hook configurations from being silently saved, catching problems at the point of change rather than later when the hook fails to work as expected.

See this entry in the whole of v2.1.271 →