--- name: agent-teams description: "Coordinate multi-agent teamwork with shared task lists, mailbox messaging, and long-lived teammates. Use when the user asks to spawn workers, delegate tasks, work in parallel with agents, or manage a team of workers." --- # Agent Teams Spawn and coordinate teammate agents that work in parallel on shared task lists, communicating via file-based mailboxes. Modeled after Claude Code Agent Teams. ## Core concepts - **Leader** (you): orchestrates, delegates, reviews. Runs the `/team` command and the `teams` LLM tool. - **Teammates**: child Pi processes that poll for tasks, execute them, and report back. Sessions are named `pi agent teams - ` where `` depends on the current style (e.g. teammate/comrade/matey). - **Task list**: file-per-task store with statuses (pending/in_progress/completed), owners, and dependency tracking. - **Mailbox**: file-based message queue. Two namespaces: `team` (DMs, notifications, shutdown) and `taskListId` (task assignments). ## UI style (terminology + naming) Built-in styles: - `normal` (default): Team leader + Teammate - `soviet`: Chairman + Comrade - `pirate`: Captain + Matey Configure via `PI_TEAMS_STYLE=` or `/team style ` (see `/team style list`). Custom styles can be added via JSON files under `~/.pi/agent/teams/_styles/