What probably matters to youSection of the release
What
A hook is a command you configure to run automatically when something happens in Claude Code. A new hook event, Interrupt, fires once when an interrupt ends the main conversation's turn.
Matching: the hook is matched on the interrupt's source, which is user, session or system, the same way SessionStart is matched on its source.
Input: the hook receives JSON with hook_event_name set to "Interrupt", a source, a reason (stop, permission_denied, rewind or other) and, where known, via (terminal or client).
Output: the hook's output and exit code are ignored, so it cannot block or change the interrupt.
Skipped: it does not run for subagents (helpers Claude Code starts for part of a task), when settings hooks are turned off, or when no Interrupt hook is registered.
Remote switch: the hook stops running only if the switch tengu_jolly_tulip is explicitly set to false. Nothing has been read about this switch.
Control requests: messages that remote and SDK senders use to control a session gain an optional, internal interrupted_by field with values session or system, marking an interrupt that no person asked for.
Why
You can now attach your own actions to interrupts, and tell an interrupt you caused apart from one triggered by the session or the system.