with one click
with one click
Launch one or more tasks in new git worktrees using workmux.
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.
Orchestrate multiple worktree agents. Spawn, monitor, communicate, and merge.
Write a PR description using conversation context and open PR creation in browser.
Rebase the current branch with smart conflict resolution.
| name | merge |
| description | Commit, rebase, and merge the current branch. |
| disable-model-invocation | true |
| allowed-tools | Read, Bash, Glob, Grep |
Arguments: $ARGUMENTS
Check the arguments for flags:
--keep, -k โ pass --keep to workmux merge (keeps the worktree and tmux window after merging)--no-verify, -n โ pass --no-verify to workmux mergeStrip all flags from arguments.
Commit, rebase, and merge the current branch.
This command finishes work on the current branch by:
workmux merge to merge and clean upIf there are staged changes, commit them. Use lowercase, imperative mood, no conventional commit prefixes. Skip if nothing is staged.
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".
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:
git log -p -n 3 <base-branch> -- <file> to
see recent changes to that file in the base branchgit rebase --continueRun: 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).