{"version":"2.1.328","anchor":"agent-http-hooks-run-on-the-machine-hook-precedence-for-man","canonical_anchor":"agent-http-hooks-run-on-the-machine-hook-precedence-for-man","heading":"Agents' web-request hooks run locally, and managed hooks take priority","tier":"notice","area":"Hooks","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/agent-http-hooks-run-on-the-machine-hook-precedence-for-man","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Agents' web-request hooks run locally, and managed hooks take priority\n\nHooks that an agent defines as web requests now run on your machine, and organization-managed hooks outrank flag and personal hooks\n\n**Unclear.** It is not stated whether this hook behaviour reaches every user or is switched on only for some.\n\n**What**\n\nA hook is a command or request that Claude Code runs automatically at set moments, such as before or after it uses a tool. Before this change, only command hooks, which run a program, could run on your machine. An http hook belonging to an agent can now run there too. An http hook is one that sends a web request instead of running a program. Any other kind of hook gets the message \"only a command hook, or an agent's http hook, runs on this machine\".\n\nWhen the same hook is defined in more than one place, Claude Code now keeps one copy and ranks the sources in this order:\n\n- Managed hooks, set by your organization's administrators, win first\n\n- Hooks passed on the command line with a flag come next\n\n- Personal hooks from your own settings come last\n\n**Why**\n\nHooks set by your organization now take priority over hooks from less trusted places, so a personal hook cannot replace one your administrators put in place.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: both\n- Heads-up: yes"}