dmux Workflows
Orchestrate parallel AI agent sessions using dmux, a tmux pane manager. Detalhes em references/.
When to Activate
- Running multiple agent sessions in parallel
- Coordinating work across Claude Code, Codex, and other harnesses
- Complex tasks that benefit from divide-and-conquer parallelism
- User says "run in parallel", "split this work", "use dmux", or "multi-agent"
Core Principles
- Independent tasks only — never parallelize dependent outputs
- Clear boundaries — each pane owns distinct files or concerns
- Merge strategically — review pane output before merging
- Isolate with worktrees when panes touch overlapping files
- Cap at 5-6 panes — each pane is a full session burning tokens
Example
dmux
# press 'n', then prompt per pane:
# Pane 1: "Create the billing schema and migrations"
# Pane 2: "Build the billing API endpoints"
# press 'm' to merge results back
References
references/concepts-setup.md— what is dmux, install, quick start, tools tablereferences/workflow-patterns.md— research+implement, multi-file, test/fix, cross-harness, reviewreferences/worktrees-orchestration.md— git worktrees, ECC helper, seedPathsreferences/signals-enrichment.md— troubleshooting, cmux vs tmux, wait-for signals
Checklist
- Tasks are independent with clear file/concern boundaries
- Worktrees created when file overlap is likely
- Pane count kept at 5-6 max for token control
- Output reviewed before merge; completion signal defined