Claude Code 2.1.294
New 1
More Accurate Natural Language Hook Evaluations Prevent Missed Blocks and Premature Exits
If you manage Claude using plain language rules, execution is now much more reliable. When configuring prompt and agent hooks (small programs triggered by specific events), you can write instructions directly in natural language. Previously, instructions like "Block commands that..." sometimes failed evaluation and allowed commands through. When telling Claude "Carry on if the build is broken" on Stop and SubagentStop events, Claude also often misjudged and stopped working early. These evaluations are now fixed: actions that should be blocked are no longer missed. Claude is less likely to stop early when instructed to continue. ⟦Picture a security guard receiving written notes: previously, seeing "block certain visitors" occasionally let people slip by, and seeing "keep watching if unloading is unfinished" often led to leaving early; now the guard fully understands the notes, strictly enforcing blocks and staying on duty when told to continue.⟧
Original changelog
Fixed prompt and agent hooks written as instructions (such as "Block commands that...") allowing what they should block
Improved how prompt hooks on Stop and SubagentStop written as instructions (such as "Carry on if the build is broken") are judged, so Claude is less likely to stop early