coordinator
Orchestrate multiple worktree agents. Spawn, monitor, communicate, and merge.
Reference for the workmux CLI that manages git worktrees and
$ npx -y skills add raine/workmux --skill workmux --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/workmuxContext preview
The summary Claude sees to decide when to auto-load this skill.
Reference for the workmux CLI that manages git worktrees and
name: workmux description: Reference for the workmux CLI that manages git worktrees and tmux windows as isolated development environments. Use when the user mentions workmux, worktrees, or parallel agent workflows. disable-model-invocation: true
workmux manages git worktrees paired with tmux windows for parallel development. Each worktree is an isolated workspace with its own branch, terminal state, and AI agent.
**If the user asks you to create worktrees or dispatch tasks (e.g., "/workmux add ..."), you are a dispatcher.** Write prompt files and run commands. Do NOT explore, read, or research the codebase first. Use context you already have. The worktree agent does all the work.
(slugified). Used to identify worktrees in all commands
sibling of the project root
(configurable via `window_prefix`)
input), done (finished)
workmux add <branch-name>
Creates a git worktree, runs file operations and hooks, creates a tmux window with configured pane layout, and switches to it.
Key flags:
a new worktree. The local branch defaults to the PR head branch name. Pass `<branch-name>` to override it, for example `workmux add --pr https://github.com/owner/repo/pull/123 custom-name`. Requires authenticated `gh`.
creating the parent session when it does not exist
workmux add <branch-name> --headless --json
Runs file operations and post-create hooks without creating a window or starting an agent. No running multiplexer is required. `--json` requires `--headless` and returns one JSON receipt with the handle, worktree path, and effective working directory; hook output goes to stderr.
Use an explicit local branch name. Supports `--base`, `--name`, `--no-hooks`, and `--no-file-ops`, but not PR checkout, prompts, `--background`, or other mux/agent options. Worktrees persist until removed: clean up with `workmux remove <handle>` or attach a window later with `workmux open <handle>`.
workmux list # all worktrees workmux list --pr # with GitHub PR status workmux list <name> # filter by handle or branch
Shows branch, agent status, tmux window status, and unmerged commits.
workmux merge # merge current branch into main workmux merge <branch> # merge specific branch workmux merge --rebase # rebase before merging (linear history) workmux merge --squash # squash all commits into one workmux merge --into <branch> # merge into a different target branch workmux merge --keep # merge but keep worktree/window/branch workmux merge --notification # show system notification on success
Merges the branch, deletes the tmux window, removes the worktree, and deletes the local branch. Use the `/merge` skill for the full workflow (commit, rebase, then merge).
workmux remove # current worktree workmux remove <name>... # specific worktrees workmux rm --gone # worktrees whose remote branch was deleted workmux rm --all # all worktrees workmux rm -f <name> # force, skip confirmation workmux rm --keep-branch # keep the branch, remove worktree + window
workmux open <name> # open or switch to tmux window workmux open --new # force a new window (creates suffix -2, -3) workmux open <name> -p "..." # open with a prompt for agent panes workmux close <name> # close tmux window, keep worktree
These commands target agents by their worktree handle. If the handle is not found in the current repo, workmux searches all active agents globally. Use `project:handle` syntax to disambiguate when names collide.
# Check agent statuses workmux status # all agents workmux status auth api-tests # specific agents # Wait for agents workmux wait agent-a agent-b # block until done workmux wait agent-a --timeout 3600 # with timeout (seconds) workmux wait agent-a agent-b --any # wait for first to finish workmux wait agent-a --status working # wait for specific status # Read agent terminal output workmux capture agent-a # last 200 lines (default) workmux capture agent-a -n 50 # last 50 lines # Send instructions to an agent workmux send agent-a "fix the tests" # short message workmux send agent-a "/merge" # send a skill command workmux send agent-a -f followup.md # from file workmux
git worktrees + tmux windows for zero-friction parallel dev
Repo: raine/workmux
Orchestrate multiple worktree agents. Spawn, monitor, communicate, and merge.
Write a PR description using conversation context and open PR creation in browser.