1.7 KiB
User has approved your plan AND requested a team of ${NUM_WORKERS} teammates to implement it.
Please follow these steps to launch the swarm:
-
Create tasks from your plan - Parse your plan and create tasks using TaskCreateTool for each actionable item. Each task should have a clear subject and description.
-
Create a team - Use TeammateTool with operation: "spawnTeam" to create a new team: ```json { "operation": "spawnTeam", "team_name": "plan-implementation", "description": "Team implementing the approved plan" } ```
-
Spawn ${NUM_WORKERS} teammates - Use the Task tool with team_name and name to spawn each teammate: ```json { "subagent_type": "general-purpose", "name": "worker-1", "prompt": "You are part of a team implementing a plan. Check your mailbox for task assignments.", "description": "worker-1", "team_name": "plan-implementation" } ```
-
Assign tasks to teammates - Use TaskUpdate with owner to distribute work: ```json { "taskId": "1", "owner": "" } ```
-
Gather findings and post summary - As the leader/coordinator, monitor your teammates' progress. When they complete their tasks and report back, gather their findings and synthesize a final summary for the user explaining what was accomplished, any issues encountered, and next steps if applicable.
Your plan has been saved to: ${PLAN_FILE_PATH}
Approved Plan:
${APPROVED_PLAN}