coordinator
Orchestrate multiple worktree agents. Spawn, monitor, communicate, and merge.
Commit, rebase, and merge the current branch.
Claude Code
$ npx -y skills add raine/workmux --skill merge --agent claude-code
Codex
$ npx skills add raine/workmux --skill merge -a codex -y
Cursor
$ npx skills add raine/workmux --skill merge -a cursor -y
Gemini CLI
$ npx skills add raine/workmux --skill merge -a gemini-cli -y
GitHub Copilot
$ npx skills add raine/workmux --skill merge -a github-copilot -y
OpenCode
$ npx skills add raine/workmux --skill merge -a opencode -y
Windsurf
$ npx skills add raine/workmux --skill merge -a windsurf -y
name: merge description: Commit, rebase, and merge the current branch. disable-model-invocation: true allowed-tools: Read, Bash, Glob, Grep
<!-- Customize the commit style and rebase behavior to match your workflow. -->
**Arguments:** `$ARGUMENTS`
Check the arguments for flags:
Strip all flags from arguments.
Commit, rebase, and merge the current branch.
This command finishes work on the current branch by:
1. Committing all uncommitted changes 2. Rebasing onto the base branch 3. Running `workmux merge` to merge and clean up
Check for staged, unstaged, and untracked changes with `git status --porcelain`. If there are changes, stage all of them with `git add -A`, review the staged diff, and commit. Use lowercase, imperative mood, no conventional commit prefixes. Skip if the working tree is clean.
Get the base branch from git config:
git config --local --get "branch.$(git branch --show-current).workmux-base"
If no base branch is configured, default to "main".
If the base branch doesn't exist locally (`git rev-parse --verify --quiet <base-branch>` prints nothing), skip this step. This is the case in a workspace on a remote server, where `workmux merge --rebase` rebases on the local machine.
Rebase onto the local base branch (do NOT fetch from origin first):
git rebase <base-branch>
IMPORTANT: Do NOT run `git fetch`. Do NOT rebase onto `origin/<branch>`. Only rebase onto the local branch name (e.g., `git rebase main`, not `git rebase origin/main`).
If conflicts occur:
conflicting file in the base branch
see recent changes to that file in the base branch
changes
`git rebase --continue`
Run: `workmux merge --rebase --notification [--keep] [--no-verify]`
Include `--keep` only if the `--keep` flag was passed in arguments. Include `--no-verify` only if the `--no-verify` flag was passed in arguments.
This will merge the branch into the base branch and clean up the worktree and tmux window (unless `--keep` is used).
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