Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.0.54 Home All releases olderv2.0.53 v2.0.55newer
Claude Code v2.0.54

Enterprise Hook Control: allowManagedHooksOnly Policy Setting

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

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.0.54 →