You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Plugin HooksArea: what it touches
ImprovementsKind: in v2.1.289,
ImprovementsSection of the release
What
Starting a named teammate (an agent that works alongside the main session) now goes through a plugin's agent.spawn hook, the plugin code that can block, rewrite or change the type of an agent launch. Before, teammates were started directly and skipped it.
When a hook rewrites a teammate launch:
Your permission rules are checked again against the rewritten launch
The hook cannot change the teammate into an agent type that does not run as a teammate
Required MCP servers (external tool integrations) are checked again
The event reported when the teammate starts now includes its agent id and model.
Why
A plugin that controls how agents are launched now covers teammates too, and your permission rules still apply to whatever the hook turns the launch into. This only matters when a plugin uses the agent-launch hook.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added sinceA small documentation edit on Orchestrate teams of Claude Code sessions touched a line naming agent.spawn after this was published.If an installed [mod](/docs/en/plugins/mods/overview) sets a model in its [`agent.spawn`](/docs/en/plugins/mods/reference#subagents) hook, Claude Code uses that model in place of the first source.agent-teamssee the edit
Confirmed sinceAnthropic's documentation has since written up agent.spawn, on Claude Code changelog.* Added workflow agents to the `agent.spawn` mod hook, with their run and index, so a mod can refuse themchangelogsee the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up agent.spawn, on Claude Code changelog.
Anthropic's release notes agreeAdded agent.spawn for teammates, one agent id across plugin hook events, and idle and waiting states in $.agent.list()