---
name: multi-agent-status
language: en
description: "Show every multi-agent task's ID, phase, branch, and status. Use when asked what is running, or for an overview of every task."
user-invocable: true
---

# multi-agent status  -  Task Status Dashboard

Show every active and completed task as a table.

## Steps

1. **Detect project**  -  Find the repo root from cwd (if none, look at all known repos):
   - `~/my-ui-components/.worktrees/`
   - `~/my-figma-app/.worktrees/`
   - `~/my-ios-app/.worktrees/`

2. **Scan worktrees**  -  Read the `agent-state.json` file in each worktree directory:
   ```bash
   find {repo}/.worktrees/ -name "agent-state.json" -maxdepth 2
   ```

3. **Parse state**  -  For each task:
   - `taskId`, `branch`, `currentPhase`, `status`, `startedAt`, `autopilot`

4. **Show as a table**:
   ```
   🤖 Multi-Agent Tasks

   | ID | Jira/Task | Branch | Phase | Status | Duration |
   |----|-----------|--------|-------|--------|----------|
   | #1 | PROJ-133139 | feature/PROJ-133139-... | 7/7 DONE | ✅ Complete | 12m |
   | #3 | PROJ-133408 | feature/PROJ-133408-... | 7/7 DONE | ✅ Complete | 8m |

   💡 log #1 | resume #N | kill #N
   ```

5. **Short command suggestions**  -  Based on state:
   - If there is a paused task → suggest `resume #N`
   - If there is a done task → suggest `log #N`
