← Claude Code changelog
Claude Code 2.1.294
This release focuses on significant reliability improvements for instruction-based hooks, enhancing control and predictability. Key changes include a fix for prompt and agent hooks that were erroneously allowing actions they were intended to block, ensuring better enforcement of specified instructions. Additionally, the judgment mechanism for prompt hooks on Stop and SubagentStop events has been refined, reducing the likelihood of premature stopping and promoting smoother, more continuous workflows. These updates benefit users relying on instruction-based controls for secure and efficient operations.
Improved
- 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
Fixed
- Fixed `prompt` and `agent` hooks written as instructions (such as "Block commands that...") allowing what they should block