prompts/squad/skills/dmux-workflows/SKILL.md
Orchestrate parallel agent workflows using tmux pane management (via dmux or native tmux). Spin multiple agents in isolated tmux panes, monitor logs, synchronize completion, and collect results. Use this in the Orchestrator parallel path when targeting Unix/Linux or WSL environments for shell-based coordination.
npx skillsauth add imabusyman/CodebrewRouter dmux-workflowsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use tmux pane multiplexing for true parallel execution with integrated monitoring and log aggregation.
brew install tmux)./mnt/c/, to avoid path-length issues).tmux session: blaze-squad
├─ pane:0 [Conductor/Orchestrator] — orchestration logic
├─ pane:1 [Coder subagent 1] — implement Provider X
├─ pane:2 [Coder subagent 2] — implement Provider Y
├─ pane:3 [Tester subagent 1] — test all providers
└─ pane:4 [Infra subagent 1] — wire AppHost
All panes are visible; coordinator watches logs in real time.
# From repo root
tmux new-session -d -s blaze-squad -x 240 -y 60
# Create panes for each agent
tmux new-window -t blaze-squad -n conductor
tmux split-window -t blaze-squad -h # splits conductor pane horizontally
tmux split-window -t blaze-squad -v # splits vertically into more panes
# Pane 0: Orchestrator runs the coordination loop
tmux send-keys -t blaze-squad:0 "pwsh ./scripts/orchestrator.ps1 --prd Docs/PRD/new-feature.md" Enter
# Pane 1: Coder agent on worktree A
tmux send-keys -t blaze-squad:1 "cd .worktrees/task-1 && coder-agent --task 'implement Provider X'" Enter
# Pane 2: Coder agent on worktree B
tmux send-keys -t blaze-squad:2 "cd .worktrees/task-2 && coder-agent --task 'implement Provider Y'" Enter
# ... etc for Tester, Infra
Conductor polls all panes for completion:
# Check exit code of pane 1 (blocks until done)
tmux capture-pane -t blaze-squad:1 -p
if [ $? -eq 0 ]; then echo "Pane 1 done"; fi
# Collect logs from all panes
for pane in 1 2 3 4; do
echo "=== Pane $pane ===" >> aggregated.log
tmux capture-pane -t blaze-squad:$pane -p >> aggregated.log
done
tmux kill-session -t blaze-squad
Each agent's handoff includes:
execution_env: tmux
tmux_pane: blaze-squad:1
log_file: Docs/squad/runs/<ts>/logs/pane-1.log
ready_signal: "echo AGENT_DONE >> $log_file && exit 0"
error_signal: "echo AGENT_BLOCKED >> $log_file && exit 1"
Agent logs exit code or a status string; Orchestrator reads it from the tmux pane.
.worktrees/ must be short (WSL+Windows 260-char limit still applies).autonomous-agent-harness — cross-platform task queue alternative (no tmux).subagent-driven-development — structure subagent delegation.development
Generate a Product Requirements Document from a task description, user intent, or PRD outline. Structure the PRD with sections: Overview, Problem Statement, Goals, Scope, Features, Acceptance Criteria, Metrics. Use this when the Planner or Orchestrator needs to formalize requirements before decomposing into implementation steps.
development
Compose parallel teams of specialized agents for a multi-faceted task. Map subtasks to agent roles, balance workload, and validate team composition. Use this when breaking a task into parallel streams that require different expertise (Coder, Tester, Infra, etc.).
development
Delegate implementation work to specialized subagent instances, each inheriting a task scope and constraints from the parent. Emit structured handoffs, monitor completion signals, aggregate results. Use this in the Orchestrator parallel path when spawning independent Coder/Tester/Infra subagents from a single coordinator.
testing
Maintain the append-only reasoning log and write handoff envelopes for every squad delegation. Use this when the Conductor delegates to a specialist or when a specialist records a non-trivial decision.