What probably matters to youSection of the release
What
A hook is a script that runs at a set point. PostToolBatch hooks run after a batch of tool calls Claude made at the same time has finished, before the next request to the model. Programs that run Claude Code through the SDK, its programming interface, can now send a request to mark one of these hooks as idle or not idle. Hooks marked idle are skipped when Claude Code picks which hooks to run.
The request must name the PostToolBatch event, a non-empty matcher (the pattern that picks the hook) and idle set to true or false. Anything else is rejected with "Invalid set_hook_idle: event must be PostToolBatch, matcher a non-empty string, and idle true or false".
Why
A program can switch a PostToolBatch hook off and on again while Claude Code is running, without changing the hook settings.