Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.54 ·

Enterprise Hook Control: allowManagedHooksOnly Policy Setting

Entry
JSON All of v2.0.54
EntryKind: in v2.0.54,
ChangesSection of the release

What: New policy setting that restricts hook execution to only those defined in managed enterprise settings, blocking user, project, local, and plugin hooks.

How to use: Configure in your managed policy settings:

{
  "policySettings": {
    "allowManagedHooksOnly": true,
    "hooks": {
      "PreToolUse": [...]
    }
  }
}

Details:

  • When enabled, only hooks from policySettings.hooks will execute
  • Plugin hooks are explicitly skipped with log message "Skipping plugin hooks - allowManagedHooksOnly is enabled"
  • Complements existing disableAllHooks setting by providing a middle ground
  • Evidence: eQ1() at line 337237, VA0() at line 337232, policy schema at line 503153

See this entry in the whole of v2.0.54 →

Feedback