{"version":"2.1.326","anchor":"plugin-hooks-can-intercept-subagent-spawn-fork","canonical_anchor":"plugin-hooks-can-intercept-subagent-spawn-fork","heading":"Plugin hooks can block or rewrite a subagent before it starts","tier":"notice","area":"Hooks","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/plugin-hooks-can-intercept-subagent-spawn-fork","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Plugin hooks can block or rewrite a subagent before it starts\n\nStarting a forked subagent now runs a plugin hook that can deny it or change its prompt and description\n\n**Unclear.** It is not clear whether plugins can use this hook in normal Claude Code sessions.\n\n**What**\n\nA subagent is a separate Claude worker that Claude starts to handle part of a task. Starting a forked subagent used to happen directly. It now runs a plugin hook first, a check supplied by a plugin, which can refuse the start or rewrite the subagent's prompt and description. A refusal is reported as `subagent_spawn_denied_by_hook`.\n\nResuming an agent that is still stopping is now refused with a message saying it is still stopping.\n\n**Why**\n\nPlugins gain a say over when subagents start and what they are told.\n\n- Area: Hooks\n- Names: `subagent_spawn_denied_by_hook`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}