Under the hood
No documentation found
Plugin hooks can now deny or rewrite subagent launches before they start.
Plugin 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.
Names in the bundleagent.spawn