Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.282 ·

Managed PostToolUse hooks now get how long the tool ran

PostToolUse hooks run in managed-hooks-only mode now receive the duration of the tool call; before, none was passed

You'll notice Improvements
JSON All of v2.1.282
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.282,
ImprovementsSection of the release

Unclear It is not known how the duration appears in the input a hook receives.

What

A hook is a command that runs automatically at a set point. A PostToolUse hook runs after Claude successfully uses a tool, such as editing a file. Managed hooks are hooks set by an organization.

When only managed hooks are allowed, Claude Code now passes the tool call's duration in milliseconds to PostToolUse hooks. Before, no duration was passed on that path.

Why

Organization hooks can now see how long each tool ran.

Read from
Names in the bundlePostToolUse
Since it was published

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.

Added since A small documentation edit on Hooks reference touched a line naming PostToolUse after this was published. | `effort` | Object with a `level` field holding the [effort level](/docs/en/model-config#adjust-effort-level) in effect when the hook runs: `"low"`, `"medium"`, `"high"`, `"xhigh"`, or `"max"`. If you set a level the active model doesn't … hooks see the edit
Confirmed since Anthropic's documentation has since written up PostToolUse, on Agent SDK reference - TypeScript. On Claude Code v2.1.227 or later, a hook's [`systemMessage`](/docs/en/hooks#json-output) can arrive as this message, with each line prefixed by the hook's name, such as `PostToolUse:Bash says:`. Each [event's section](/docs/en/hooks#hook-e… agent-sdk/typescript see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not known how the duration appears in the input a hook receives.
Anthropic's documentation agreesAnthropic's documentation has since written up PostToolUse, on Agent SDK reference - TypeScript.

See this entry in the whole of v2.1.282 →

Feedback