Claude Code can move some tool calls to the background so that they finish while the conversation goes on. A tool call is one action Claude takes, such as running a command. Before it moves a call, Claude Code checks whether any hooks would run on the result. Hooks are your own scripts. The ones checked here are PostToolUse, PostToolUseFailure and PostToolBatch.
That check is now done separately. If looking up the hooks fails, the call does not move to the background. The test for whether a tool counts as having a hook also changed.
Tool calls whose results your hooks need to see stay in the foreground more reliably.
tengu_tool_detach Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.326: on
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
Read once, for one account on one subscription tier, against v2.1.326. It isn't a statement about your account. What a flag value here can and cannot tell you
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
For redaction or transformation use cases, intercept at `PreToolUse` for outbound tool inputs and `PostToolUse` for the results of successful calls. `PostToolUseFailure` can't rewrite a result, so it can't redact a failing command's output.hooks see the edit
* Changed managed `PostToolUse` hooks to no longer fire for calls refused before they ran: no log entry, rewrite, block or stop there; `PostToolBatch` gets most, not marked as refusedchangelog see the edit
* Fixed Claude getting a long managed PostToolUse hook output twice when a mod added context to the tool callchangelog see the edit
Anthropic's documentation has since written up PostToolUse, on Claude Code changelog.