| name | install-workbench |
| description | Use when installing workbench (wbcli), checking prerequisites (Python, git, tmux), or setting up the wb CLI in a local or global environment |
Installing Workbench
Step-by-step guide to install the wb CLI and verify all prerequisites.
When to Use
- Installing workbench for the first time
- Checking whether prerequisites are met
- Troubleshooting installation or PATH issues
- Setting up workbench in a new environment (CI, container, new machine)
Prerequisites Check
Before installing, verify each prerequisite. Run these checks and address any failures.
1. Detect OS
uname -s
2. Python 3.11+
python3 --version
If missing or below 3.11:
| Platform | Install |
|---|
| macOS | brew install python or download from python.org |
| Linux (Debian/Ubuntu) | sudo apt install python3 |
| Linux (Fedora/RHEL) | sudo dnf install python3 |
| Windows | Download from python.org or winget install Python.Python.3.13 |
3. pip
python3 -m pip --version
If missing:
python3 -m ensurepip --upgrade
4. Git
git --version
If missing:
| Platform | Install |
|---|
| macOS | xcode-select --install or brew install git |
| Linux (Debian/Ubuntu) | sudo apt install git |
| Linux (Fedora/RHEL) | sudo dnf install git |
| Windows | Download from git-scm.com or winget install Git.Git |
5. tmux (optional but recommended)
tmux -V
tmux enables live monitoring of agent sessions. Without it, use --no-tmux to run agents as raw subprocesses.
If missing:
| Platform | Install |
|---|
| macOS | brew install tmux |
| Linux (Debian/Ubuntu) | sudo apt install tmux |
| Linux (Fedora/RHEL) | sudo dnf install tmux |
| Windows | Available via WSL |
6. An agent CLI
At least one of:
You can also use a custom agent CLI via .workbench/agents.yaml — see wb agents add.
7. headroom (optional, for cost savings)
Optional local proxy that routes supported agents (claude, codex) through a local endpoint to cut token costs. Install with pipx install "headroom-ai[all]" (Python 3.10+). See the configure-workbench skill for the headroom: config block and the --headroom / --no-headroom flag.
Install workbench
Standard install
pip install wbcli
Verify installation
wb --version
wb --help
Install in a virtual environment
python3 -m venv .venv
source .venv/bin/activate
pip install wbcli
Install from source (development)
git clone https://github.com/duncankmckinnon/workbench.git
cd workbench
pip install -e ".[dev]"
Setup a repo
After installing, set up workbench in your project:
cd your-project
wb setup
This creates .workbench/, installs bundled skill files for your agent platform, and prepares the repo for wb run.
Setup options
wb setup
wb setup --agent claude
wb setup --agent antigravity
wb setup --agent opencode
wb setup --agent cursor
wb setup --profile
wb setup --global
wb setup --symlink
wb setup --update
Initialize agent config (optional)
Generate .workbench/agents.yaml with all built-in adapter configs:
wb agents init
This is optional — built-in adapters work without a config file. Use this if you want to customize agent invocation flags or add custom agents.
Initialize a profile (optional)
wb profile init
wb profile init --set reviewer.agent=antigravity
wb profile init --name fast --set implementor.agent=codex
Verify everything works
Run a quick end-to-end check:
wb --version
git rev-parse --show-toplevel
ls .workbench/
wb preview your-plan.md
wb run your-plan.md --no-tmux
Troubleshooting
wb: command not found
pip installed to a directory not on PATH. Common fixes:
python3 -m pip show wbcli | grep Location
export PATH="$HOME/.local/bin:$PATH"
pipx install wbcli
tmux is required but not found
Either install tmux (see above) or run with --no-tmux:
wb run plan.md --no-tmux
Not in a git repository
workbench requires a git repo. Initialize one:
git init
git add .
git commit -m "initial commit"
Permission errors on install
pip install --user wbcli
sudo pip install wbcli
Updating
pip install --upgrade wbcli
wb setup --update
wb setup --global --update