---
name: agent-team
description: Dispatcher orchestration pattern. Orchestrator delegates to specialist agents. Never executes, always delegates.
user-invocable: true
---

# Agent Team — Dispatcher Orchestrator

Set up a dispatcher-style multi-agent system where an orchestrator delegates work to specialist agents.

## How It Works

```
User -> Orchestrator reviews -> picks specialist -> dispatch_agent() -> work done -> result back
```

The orchestrator NEVER does the work. It delegates, then synthesizes.

## Configuration

```yaml
teams:
  - name: frontend
    agents: [planner, builder, reviewer]
  - name: backend
    agents: [designer, coder, tester]
```

## Agent Definition

Each agent is a .md file:

```yaml
---
name: Builder
description: Writes production code from specs
tools: [Read, Write, Edit, Bash]
---
You are a senior software engineer. Write clean, tested code.
```

## Usage

```bash
pi -e extensions/agent-team.ts
```

$ARGUMENTS
