You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
What
Hooks are your own commands that Claude Code runs at set moments, such as before a tool is used. Organizations can restrict them through managed settings, which are settings an organization deploys to its users' machines. Examples are disableAllHooks and allowManagedHooksOnly.
Claude Code now keeps a record of these restrictions. If it could not read the organization's hook restrictions before the managed settings were emptied, it does the following:
Runs only the hooks the organization deploys.
Keeps plugins that are fetched by running a command switched off.
Logs the problem as an error.
Why
A failure to read the policy now leaves the restrictions on rather than lifting them, so an organization's hook rules cannot be dropped by accident.
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 sinceAnthropic's documentation has since written up disableAllHooks, on Desktop application.* **[`disableAllHooks`](https://code.claude.com/docs/en/settings-reference#disableallhooks)**: every configured hook is disabled, managed ones includeddesktopsee the edit
Confirmed sinceAnthropic's documentation has since written up allowManagedHooksOnly, on Desktop application.* **Your own use**: add the hook to `~/.claude/settings.json` on the remote machine. If your organization limits hooks, as [`allowManagedHooksOnly`](https://code.claude.com/docs/en/settings-reference#allowmanagedhooksonly) and [`strictPlug…desktopsee 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 allowManagedHooksOnly, on Desktop application.