You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.326,
ImprovementsSection of the release
What
A PreToolUse hook is a check that runs before Claude uses a tool, such as reading or editing a file, and it can block that use. When Claude Code runs inside another app and that app does not answer this check, Claude Code now shows a message saying so.
The message explains that until the app answers, file tools work only in the folders the app allowed for this session.
Why
Without this message, file tools could stop working outside some folders with no explanation. Now you can see why.
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 sinceA small documentation edit on Handle approvals and user input touched a line naming PreToolUse after this was published.> 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-inputsee the edit
Confirmed sinceAnthropic's documentation has since written up PreToolUse, on Choose a permission mode.> * Outside Code Mode, the classifier reviews messages Claude sends to another agent with [`SendMessage`](https://code.claude.com/docs/en/tools-reference) before Claude Code delivers them. If an allow rule matches `SendMessage` or a `PreTo…permission-modessee the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up PreToolUse, on Choose a permission mode.