plugins/agent-teams/commands/team-spawn.md
Spawn a multi-agent team using preset configurations or custom composition. Handles team creation, teammate spawning, and initial task setup.
Verify that CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set:
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in your environment."Parse arguments from $ARGUMENTS:
--name: team name (default: auto-generated from preset)--members N: override default member count--delegate: enter delegation mode after spawningIf a preset is specified, use these configurations:
review — Multi-dimensional code review (default: 3 members)
team-reviewer agents with dimensions: security, performance, architecturereview-teamdebug — Competing hypotheses debugging (default: 3 members)
team-debugger agents, each assigned a different hypothesisdebug-teamfeature — Parallel feature development (default: 3 members)
team-lead agent + 2 team-implementer agentsfeature-teamfullstack — Full-stack development (default: 4 members)
team-implementer (frontend), 1 team-implementer (backend), 1 team-implementer (tests), 1 team-leadfullstack-teamresearch — Parallel codebase, web, and documentation research (default: 3 members)
general-purpose agents, each assigned a different research question or arearesearch-teamsecurity — Comprehensive security audit (default: 4 members)
team-reviewer (OWASP/vulnerabilities), 1 team-reviewer (auth/access control), 1 team-reviewer (dependencies/supply chain), 1 team-reviewer (secrets/configuration)security-teammigration — Codebase migration or large refactor (default: 4 members)
team-lead (coordination + migration plan), 2 team-implementer (parallel migration streams), 1 team-reviewer (verify migration correctness)migration-teamIf "custom" is specified:
--nameTeammate tool with operation: "spawnTeam" to create the teamTask tool with:
team_name: the team namename: descriptive member name (e.g., "security-reviewer", "hypothesis-1")subagent_type: "general-purpose" (teammates need full tool access)prompt: Role-specific instructions referencing the appropriate agent definitionTaskCreate to create initial placeholder tasks for each teammate--delegate flag is set, transition to delegation modeDisplay a formatted team summary:
Team "{team-name}" spawned successfully!
Members:
- {member-1-name} ({role})
- {member-2-name} ({role})
- {member-3-name} ({role})
Use /team-status to monitor progress
Use /team-delegate to assign tasks
Use /team-shutdown to clean up