Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SDKArea: what it touches
Internal ChangesKind: in v2.1.336,
Internal ChangesSection of the release
Unclear It is not clear what this handling actually does with a PostToolBatch hook request.
What
A program can run Claude Code inside itself through the SDK (the developer kit for building on Claude Code). The two then exchange control requests, which are messages that pass instructions back and forth. Some of these requests ask the host program to run a hook, which is a script of your own that runs at a set point in a session.
Claude Code now handles a hook request for the PostToolBatch event the same way it already handled hook requests for PreToolUse and messages from MCP servers. PostToolBatch runs after a full batch of parallel tool calls finishes and before the next model call. Before this change, only PreToolUse hook requests and MCP messages were handled this way.
Why
Support for PostToolBatch hooks is growing. Developers whose programs embed Claude Code may now see these requests treated differently from before.