coordinator
Orchestrate multiple worktree agents. Spawn, monitor, communicate, and merge.
Manage terminal agents, git worktrees, and tmux sessions with
Claude Code
$ npx -y skills add raine/workmux --skill workmux --agent claude-code
Codex
$ npx skills add raine/workmux --skill workmux -a codex -y
Cursor
$ npx skills add raine/workmux --skill workmux -a cursor -y
Gemini CLI
$ npx skills add raine/workmux --skill workmux -a gemini-cli -y
GitHub Copilot
$ npx skills add raine/workmux --skill workmux -a github-copilot -y
OpenCode
$ npx skills add raine/workmux --skill workmux -a opencode -y
Windsurf
$ npx skills add raine/workmux --skill workmux -a windsurf -y
name: workmux description: Manage terminal agents, git worktrees, and tmux sessions with workmux. Use when the user asks to open or start an agent in a project, check running agents or their progress in a tmux session, or work with workmux, worktrees, or parallel agent workflows.
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.
When the user asks to open or start a new agent in `<project>`, treat the project name as a tmux session name. Resolve the project's directory, reuse that tmux session if it exists, and create it if it does not. Start the agent in a new window in that session, with the project directory as its working directory. Use the agent requested by the user or the configured default. This means a terminal agent in tmux, not a new chat in the assistant app.
For an existing session:
tmux new-window -d -P -F '#{window_id}' -t <project> -n <name> \
-c <project-path> <agent>If the session does not exist, create it with the agent in its first window:
tmux new-session -d -P -F '#{window_id}' -s <project> -n <name> \
-c <project-path> <agent>Use tmux session metadata to resolve existing project paths, for example `tmux list-sessions -F '#{session_name}\t#{session_path}'`. Avoid directory listings when that metadata already supplies the path. Create windows with `tmux new-window -d -P -F '#{window_id}' ...` to return the new window ID; use that ID for subsequent operations instead of listing windows again. When switching is requested, batch the client lookup and switch into one tool call. Switch only when requested. Avoid redundant verification calls when the command's successful result already confirms the operation.
When a separate worktree would clearly benefit the task, use `workmux add` from the target repository instead. Pass `--parent-session <project>` to place the agent in the intended tmux session. Use the configured default agent, or pass `-a <agent>` when the user requests a specific agent. Workmux creates the parent session if needed. Otherwise, use the existing project checkout.
Reuse known sessions, paths, and handles. If handles are unknown, inspect the session's coordinator or dashboard first.
Batch `workmux status` and `workmux capture <handle> -n 50` for relevant agents in one tool call. Skip idle shells and unrelated projects. Report task, progress, blockers, and completion evidence; stop when clear.
(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`.
starts from the current HEAD; `-u` adds untracked files, `--patch` picks hunks (not with `-u` or staged changes). A stash backup remains after transfer. Works with `-p`/`-P`/`-e`/`-A` and a single `-a`; rejects `--base`, `--pr` and stdin input
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, or `--pr <number|url>` to check out a PR (the branch name is then optional). Supports `--base`, `--name`, `--no-hooks`, and `--no-file-ops`, but not 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
Orchestrate multiple worktree agents. Spawn, monitor, communicate, and merge.
Write a PR description using conversation context and open PR creation in browser.
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration