Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 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
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.

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