N coordinated agents on shared task list using tmux-based orchestration
team is the tmux-based parallel execution mode for QMX. It starts real worker Qwen Code sessions in split panes and coordinates them through .qmx/state/team/... files plus MCP team tools.
This skill is operationally sensitive. Treat it as an operator workflow, not a generic prompt pattern.
When this skill is invoked, the agent MUST:
team command - This spawns actual tmux panes with real agents# When user says: "/skill:team 3:executor Fix TypeScript errors"
# You MUST execute:
team 3:executor "Fix TypeScript errors"
# NOT just describe what you would do!
/skill:team 3:executor "Fix all TypeScript errors in src/"
When invoked, the agent should:
# Preferred - spawns tmux panes immediately
team 3:executor "Fix TypeScript errors"
team 4:reviewer "Review all open PRs"
team 5:tester "Write integration tests"
When team command executes:
tmux Session Creation
Worker Initialization
.qmx/state/team/<team>/config.jsonCentral Messaging
.qmx/state/team/<team>/mailbox/.qmx/state/team/<team>/workers/worker-N/heartbeat.jsontmux display-messageParallel Execution
Team state is tracked in .qmx/state/team/<team-name>/:
.qmx/state/team/team-1771604000-abc/
├── config.json # Team configuration
├── worker-agents.md # Worker instructions
├── mailbox/ # Central messaging
│ ├── worker-1.json
│ ├── worker-2.json
│ └── leader-fixed.json
├── workers/
│ ├── worker-1/
│ │ ├── identity.json
│ │ ├── inbox.md
│ │ └── heartbeat.json
│ └── worker-2/
└── tasks/
└── task-1.json
User: /skill:team 3:executor "Fix all TypeScript errors in src/"
Agent should execute:
team 3:executor "Fix all TypeScript errors in src/"
Agent should report:
🚀 Team launched!
Team: team-1771604000-abc123
Workers: 3
Role: executor
Task: Fix all TypeScript errors in src/
Monitor: qmx team status team-1771604000-abc123
Stop: qmx team shutdown team-1771604000-abc123
User: /skill:team 4:reviewer "Review all open PRs"
Agent should execute:
team 4:reviewer "Review all open PRs"
User: /skill:team ralph 2:planner "Plan the database migration"
Agent should execute:
team ralph 2:planner "Plan the database migration"
executor - Implementation and code generationreviewer - Code review and quality assurancetester - Test generation and executiondebugger - Bug investigation and fixingrefactorer - Code refactoringdocumenter - Documentation generationarchitect - System design reviewplanner - Task decomposition# Check team status
qmx team status <team-name>
# List all teams
qmx team list
# Shutdown team
qmx team shutdown <team-name>
# View mailbox (advanced)
cat .qmx/state/team/<team>/mailbox/*.json
$TMUX is set)# Start tmux first
tmux
# Then run team command
team 3:executor "task"
# Ensure PATH includes ~/bin
export PATH="$HOME/bin:$HOME/.local/bin:$PATH"
# Check worker panes
tmux list-panes -F '#{pane_id}\t#{pane_current_command}'
# Check mailbox
cat .qmx/state/team/<team>/mailbox/*.json
# Check heartbeats
cat .qmx/state/team/<team>/workers/*/heartbeat.json
plan - Plan work before executing with teamreview - Review team outputstatus - Check team statuscancel - Cancel team executionCRITICAL: This skill MUST execute the team command in the terminal, not just describe it!