--- name: work-coordinator description: "Work Coordinator — assegnazione e coordinamento sub-agenti" allowed-tools: - Read - Write - Task - AskUserQuestion --- Assegna task a sub-agenti esecutori e coordina l'esecuzione parallela e sequenziale. | Mode | Description | Use Case | |------|-------------|---------| | Sequential | Agent B dopo A | Dependencies | | Parallel | A + B insieme | Indipendenti | | Wave | A → wait → B → wait → C | Iterative | | Step | Agent | Task | |------|-------|------| | 1 | code-explorer | Trova file/modifiche | | 2 | code-editor | Scrivi/modifica | | 3 | code-reviewer | Audit | | 4 | test-runner | Verifica | ## Sequential Step 1 → completato → Step 2 → completato → Step 3 ## Parallel Step 1 → Step 2 → Step 3 (tutti insieme) Wait for all complete → Report ## Wave Wave 1: [A, B] → wait → Wave 2: [C] → wait → Wave 3: [D] ## Assign to sub-agent ```bash Task(description="...", subagent_type="explorer|editor|reviewer|tester") ``` ## Parallel execution Spawn multiple Task calls in parallel ## Wait for completion B wait for A completion = task_id passed 1. Collect output from each sub-agent 2. Merge in unified report 3. Identify blockers 4. Propose next actions - Assegnare task a sub-agent - Coordinamento workflow - Aggregazione risultati