Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

PreToolUse hooks can pass a reason code with their permission decision

A PreToolUse hook's permissionDecisionReasonCode is now kept in the result, and some events gain an optional written_at time

Use it now Improvements
JSON All of v2.1.333
Use it nowTier: 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.333,
What probably matters to youSection of the release
What

A hook is a command you configure to run when something happens in Claude Code. A PreToolUse hook runs before a tool is used and can block it. Changes:

  • permissionDecisionReasonCode from a PreToolUse hook is now copied into the result Claude Code records.
  • Two kinds of event gained an optional written_at field.
  • A new attachment type, projects_instructions, was added.
Why

Programs built on Claude Code with the SDK, and programs that handle hooks, get more detail about permission decisions and events.

Read from
Names in the bundlePreToolUse
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 PreToolUse, on Automate actions with hooks. Agent hooks use the `"ok"` / `"reason"` response format and run for up to 50 tool-use turns. They don't support the prompt-hook `impossible` field. On `ok: false`, Claude Code handles an agent hook the way it handles a prompt hook with `co… hooks-guide see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up PreToolUse, on Automate actions with hooks.
Anthropic's release notes agreeFixed a crash or freeze when a mod drew a Code block in a row beside long text or another Code block

See this entry in the whole of v2.1.333 →

Feedback