Getting Started
This guide walks through a first-time setup of AgentMux: prerequisites, installation, agentmux init, and a first pipeline run.
Prerequisites Checklist
Before you run AgentMux, verify each prerequisite:
- Python 3.10+bash
python3 --version - tmuxbash
tmux -V - At least one supported CLI tool (
claude,codex,gemini, oropencode)bashclaude --version codex --version gemini --version opencode --version
Your chosen CLI tool must also be authenticated before running pipelines.
Installation
Choose one install path:
- Install from GitHub with pipbash
python3 -m pip install git+https://github.com/markuswondrak/AgentMux.git - Install as an isolated CLI with pipxbash
pipx install git+https://github.com/markuswondrak/AgentMux.git - Upgrade a pipx Git install (recommended pattern for this repo)bash
pipx install --force git+https://github.com/markuswondrak/AgentMux.git - Editable install for local developmentbash
python3 -m pip install -e .
Verify the CLI is available:
agentmux --helpProject Setup (agentmux init)
Run:
agentmux initIn interactive mode, the wizard prompts for:
Default providerfrom detected CLIsRole setup(use one provider for all roles, or customize per role)- Per-role settings when customizing (
architect,product-manager,reviewer,coder,designer) - GitHub defaults:
Base branchCreate draft PRs by default?Branch prefix
CLAUDE.md setup(create from template, symlink an existing file, keep/skip)Select prompt stubs to create- MCP research setup confirmation for supported providers
After init, the project contains:
.agentmux/config.yaml- Optional role prompt stubs in
.agentmux/prompts/agents/<role>.md CLAUDE.md(created unless skipped or already present in defaults mode)
For non-interactive setup with built-in defaults:
agentmux init --defaultsFor full init behavior details, see Configuration and Prompts.
First Pipeline Run
Start with a simple feature request:
agentmux "Add a health check endpoint"What you will see:
- A tmux session with a monitor/control pane on the left and agent panes on the right
- Session name printed at launch (for example:
agentmux-<feature-name>) - Agents receiving prompt files and progressing by phase
To attach from another terminal:
tmux attach -t <session-name>High-level phase flow:
- Planning
- Implementing
- Reviewing
- Completing
After review passes, AgentMux asks for approval (unless approval skipping is configured); you can approve or request changes before finalization:
- Commits changes locally
- Optionally opens a pull request if
ghis available and configured
For the full phase catalog with artifacts and transitions, see Workflow Phases. For file event protocol details, see File Protocol. For approval/commit flow, see Completion Phase.
Tmux Essentials
If you are new to tmux, these commands are enough to observe runs:
- Attach to a running session:bash
tmux attach -t <session> - Detach without stopping agents:
Ctrl-b d - Move between panes:
Ctrl-b <arrow>
Detaching does not stop the pipeline; agents keep running in the background.
Troubleshooting
tmux not installed
Common symptom: agentmux exits early because tmux is missing.
Install tmux, then retry:
# Debian/Ubuntu
sudo apt install tmux
# macOS (Homebrew)
brew install tmuxCLI tool not authenticated
Common symptom: an agent pane hangs waiting for provider login, or the provider CLI returns an auth error.
Fix:
- Run your provider CLI directly (for example
claude) to complete authentication. - Confirm auth with
claude --version/codex --version/gemini --version/opencode --version. - Re-run the pipeline.
Next Steps
- Tune provider/model settings in Configuration
- Add a requirements-refinement phase with
--product-manager - Bootstrap runs from GitHub issues with
--issue <number-or-url>(includes issue body and all comments) - Continue interrupted work with
--resume(see Session Resumption) - Use reference docs as needed: