plugins/agent-teams/commands/team-feature.md
Orchestrate parallel feature development with multiple implementer agents. Decomposes features into work streams with strict file ownership, manages dependencies, and verifies integration.
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set$ARGUMENTS:
<feature-description>: description of the feature to build--team-size N: number of implementers (default: 2)--branch: git branch name (default: auto-generated from feature description)--plan-first: decompose and get user approval before spawningDecompose the feature into work streams:
If --plan-first is set:
Present the decomposition to the user:
## Feature Decomposition: {feature}
### Stream 1: {name}
Owner: implementer-1
Files: {list}
Dependencies: none
### Stream 2: {name}
Owner: implementer-2
Files: {list}
Dependencies: blocked by Stream 1 (needs interface from {file})
### Integration Contract
{shared types/interfaces}
Wait for user approval before proceeding
If user requests changes, adjust decomposition
--branch specified, use Bash to create and checkout the branch:
git checkout -b {branch-name}
Teammate tool with operation: "spawnTeam", team name: feature-{timestamp}team-lead agent to coordinateTask tool to spawn a team-implementer:
name: implementer-{n}subagent_type: "agent-teams:team-implementer"prompt: Include owned files, interface contracts, and implementation requirementsTaskCreate for each work stream:
TaskUpdate to set blockedBy relationships for dependent streamsTaskUpdate (set owner)TaskList for progressAfter all tasks complete:
Present feature summary:
## Feature Complete: {feature}
Files modified: {count}
Streams completed: {count}/{total}
Tests: {pass/fail}
Changes are on branch: {branch-name}
Send shutdown_request to all teammates
Call Teammate cleanup