Unclear What decides whether a session's server checks calls before hooks run is not stated.
What
A hook is a script you set up to run at certain points while Claude works. PreToolUse hooks run before a tool call (one action Claude takes, such as running a command), and PermissionRequest hooks run when a tool call needs a permission decision. This release limits what these hooks can do in several ways:
- Changed input can be denied. If a
PreToolUseorPermissionRequesthook changes a tool call's input, and the session's server checks calls before hooks run, the call is now denied. The message reads "A ${n} hook changed the ${e.name} call, and this session's server checks calls before a hook changes them. The call is denied." This check only applies under a condition the finding could not identify. - Organisation limits still apply. Organisation limits (
orgLimit) and related details are now carried through decisions made byPermissionRequesthooks, so a hook can no longer get around them. - Some approvals need a person. A new
hookAskFloorcheck turns certain hook approvals into a question that a person must answer. - Hook permission updates are filtered. Permission changes a hook hands back (
updatedPermissions) are now filtered rather than applied as given. - Skill check reworked. The permission check for skills now handles blank text differently.
Why
If you use hooks to approve tool calls automatically or to rewrite their input, some of those calls may now be denied or come back to you as a question instead of going ahead. Check your hooks if calls they used to approve start stopping.
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.
With the flag, your run doesn't consult the host or wait on it. Anything that would prompt is denied unless a `PermissionRequest` hook allows it, Claude is told that nobody can approve the request and not to retry it, and the run continues…headless see the edit
> To check calls that run without your callback, such as file reads inside your [working directories](https://code.claude.com/docs/en/permissions.md#working-directories), use a [`PreToolUse` hook](https://code.claude.com/docs/en/agent-sdk/…agent-sdk/user-input see the edit
A matching tool use can still run without your approval if a [`PermissionRequest` hook](https://code.claude.com/docs/en/hooks#permissionrequest) or a [mod](https://code.claude.com/docs/en/plugins/mods/overview.md#what-a-mod-can-reach) allo…settings-reference see the edit
* Improved how a PreToolUse hook's `updatedInput` is kept when more than one hook answers a tool call; the rewrite now runs in more caseschangelog see the edit
What decides whether a session's server checks calls before hooks run is not stated.
Anthropic's documentation has since written up PreToolUse, on Claude Code changelog.