Skip to content
Agent Orchestration
Skill

/workmux

Manage terminal agents, git worktrees, and tmux sessions with

From plugin
workmux-status
3.1k6 skills

Claude Code

$ npx -y skills add raine/workmux --skill workmux --agent claude-code

SKILL.md

workmux.SKILL.md
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

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.

Opening agents in projects

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.

Checking agent status

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.

Key Concepts

  • **Handle**: the worktree directory name, derived from the branch name

(slugified). Used to identify worktrees in all commands

  • **Worktree directory**: defaults to `<project>__worktrees/<handle>` as a

sibling of the project root

  • **Window prefix**: tmux windows are named `wm-<handle>` by default

(configurable via `window_prefix`)

  • **Agent status**: agents report status via hooks: working, waiting (needs

input), done (finished)

Commands

Create a worktree

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:

  • `--pr <number|url>`: checkout a GitHub pull request by number or full URL into

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`.

  • `-b, --background`: create without switching to it
  • `-p <text>`: inline prompt for AI agent panes
  • `-P <file>`: prompt from file
  • `-e, --prompt-editor`: write prompt in $EDITOR
  • `-A, --auto-name`: generate branch name from prompt via LLM
  • `-a <agent>`: override the agent (can specify multiple for multi-worktree)
  • `-w, --with-changes`: move uncommitted changes to the new worktree, which

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

  • `--base <branch>`: branch from a specific base
  • `--name <name>`: override the worktree handle
  • `--target-name <name>`: override the workmux-managed tmux window or session name
  • `--parent-session <session>`: put a window-mode target in this tmux session,

creating the parent session when it does not exist

  • `-o, --open-if-exists`: open existing worktree if it exists (idempotent)
  • `-W, --wait`: block until the tmux window is closed
  • `-n, --count <N>`: create N worktree instances
  • `--foreach <matrix>`: create worktrees from variable matrix
  • `--no-hooks, --no-file-ops, --no-pane-cmds`: skip setup steps

Create without a multiplexer

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>`.

List worktrees

workmux list          # all worktrees
workmux list --pr     # with GitHub PR status
workmux list <name
Read more
@raine
Ships withworkmux-status

git worktrees + tmux windows for zero-friction parallel dev

Stars on GitHub

Momentum

stars in total
3.1k
Star history of raine/workmux on GitHub, a chart by star-history.com

Other skills on workmux-status.

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw5d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca3d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip4d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about workmux.

Which coding agents can use workmux?
workmux installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.