{"version":"2.1.260","anchor":"plugin-agentspawn-hooks-can-now-rewrite-or-deny-subagent-la","canonical_anchor":"plugin-agentspawn-hooks-can-now-rewrite-or-deny-subagent-la","heading":"Plugin agent.spawn hooks can now rewrite or deny subagent launches","tier":"internal","area":"Plugins","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.260\/e\/plugin-agentspawn-hooks-can-now-rewrite-or-deny-subagent-la","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.260","markdown":"### Plugin agent.spawn hooks can now rewrite or deny subagent launches\n\nPlugin hooks can now deny or rewrite subagent launches before they start.\n\nPlugin `agent.spawn` hooks can now intercept the Task tool's subagent-spawn path: a hook can deny a spawn outright, or rewrite its agent type, prompt, description, `cwd`, model, or background flag before launch. New guardrails accompany this: agents renamed by a hook get their MCP requirements rechecked, `cwd` changes are rejected when isolation is `worktree`, and a hook can't retarget an unconfined web-fetch dispatch to another agent without classifier review.\n\n- Area: Plugins\n- Names: `agent.spawn`\n- Tier: Under the hood\n- Useful: 4\/5\n- Signal: 3\/5"}