{"version":"2.1.336","anchor":"control-request-handling-extended-to-posttoolbatch-hook-call","canonical_anchor":"control-request-handling-extended-to-posttoolbatch-hook-call","heading":"PostToolBatch hook requests from SDK hosts get the same handling as PreToolUse","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/control-request-handling-extended-to-posttoolbatch-hook-call","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### PostToolBatch hook requests from SDK hosts get the same handling as PreToolUse\n\nClaude Code now handles PostToolBatch hook requests from programs that embed it the same way it handles PreToolUse hook requests\n\n**Unclear.** It is not clear what this handling actually does with a PostToolBatch hook request.\n\n**What**\n\nA 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.\n\nClaude 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.\n\n**Why**\n\nSupport for `PostToolBatch` hooks is growing. Developers whose programs embed Claude Code may now see these requests treated differently from before.\n\n- Area: SDK\n- Names: `PostToolBatch`, `PreToolUse`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}