`/dispatch`
Use this skill when the user invokes /dispatch <agent-name>.
This command opens Panes only. It does not write kanban, does not decide assignments, and does not execute the target Agent's task inline.
- Validate that
<agent-name>is present. - Run
mexus mission active --jsonand parse the active Mission name from the JSON response. If there is no active Mission, fail with:
```text
No active Mission. Run /mission-activate <name> first.
```
- Run
mexus pane list --mission <active> --json. If any returned Pane hasmission.agentName === <agent-name>, print:
```text
Pane already exists for <agent-name> (id: <id>, status: <status>). The Mission Inbox pipeline will deliver kanban tasks automatically.
```
Then exit without creating another Pane.
- Read
agent-team/missions/<active>/agents.md. Extract the section that begins with## Agent: <agent-name>and ends before the next## Agent:heading or the end of the file. Within that block, extract the activation prompt. Use a simple section regex or direct Markdown section extraction; do not parse kanban. If the section is missing, fail with:
```text
Agent <agent-name> not found in agents.md roster
```
- Read
.nexus/config.yaml. If it containsmission_default_cli_agent, use that value as<cli-type>. If the field is missing or empty, useclaudecode. - Run:
```bash
mexus pane create --name "<agent-name>" --agent <cli-type> --workdir "$PWD" --mission <active> --mission-agent <agent-name> --mission-role mission-agent --task "<extracted-activation-prompt>"
```
- Print the created Pane id. Mention that the Mission Inbox pipeline will deliver matching kanban tasks automatically.