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
One change · claude-code

Hooks reference changedhooks

Upstream edited this page at 7 Nov 2026 19:18 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 7 Nov 2026 19:37 UTC.

Upstream edited
Recorded here
Lines+1added
Lines−1removed
From line 2,162 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits136to this page, all time

The whole hunk

from line 2162, old and new numbered
/
lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 2162
21622162| Field | Description |
21632163| :- | :- |
21642164| `behavior` | `"allow"` grants the permission, `"deny"` denies it. [Deny and ask rules](https://code.claude.com/docs/en/permissions.md#manage-permissions) are still evaluated, so a hook returning `"allow"` doesn't override a matching deny rule |
2165| `updatedInput` | For `"allow"` only: modifies the tool's input parameters before execution. Replaces the entire input object, so include unchanged fields alongside modified ones. The modified input is re-evaluated against deny and ask rules |
2165| `updatedInput` | For `"allow"` only: modifies the tool's input parameters before execution. Replaces the entire input object, so include unchanged fields alongside modified ones. The modified input is re-evaluated against deny and ask rules. `AskUserQuestion` and `ExitPlanMode` [need this field](#allow-with-updatedinput) |
21662166| `updatedPermissions` | For `"allow"` only: array of [permission update entries](#permission-update-entries) to apply, such as adding an allow rule or changing the session permission mode |
21672167| `message` | For `"deny"` only: tells Claude why the permission was denied |
21682168| `interrupt` | For `"deny"` only: if `true`, stops Claude |
from line 3741
37413741* **Exits with code 2**: Claude Code ignores a `hookSpecificOutput` printed by the same hook
37423742* **Prints a top-level `"decision": "block"`**: the block overrides an `action` in the same output
37433743 
3744When several hooks match the same request, a decline from one of them overrides an `accept` or `cancel` from anoth
3744When several hooks match the sam
Feedback