Skip to content
Development
Command

/sync-branch

Get the current branch ready: update all submodules to their latest remote main, merge from main, and rebase.

From plugin
cmux
29k7 skills7 commands
$ npx -y skills add manaflow-ai/cmux --agent claude-code

Command definition

sync-branch.md

Sync Branch

Get the current branch ready: update all submodules to their latest remote main, merge from main, and rebase.

**Important: Never push automatically. Always ask the user before any push.**

Steps

1. **Update submodules to latest.** For each of `ghostty`, `homebrew-cmux`, `vendor/bonsplit`: `git fetch origin`, check `git rev-list HEAD..origin/main --count`, and if behind run `git merge origin/main --no-edit`. Do not push submodules; submodule changes land only via PRs.

2. **Commit submodule updates on main.** `git checkout main && git pull origin main`, check `git diff --name-only` for submodule paths, and if any changed: `git add ghostty homebrew-cmux vendor/bonsplit && git commit -m "Update submodules: <brief description>"`. Do not push. Ask the user whether to push.

3. **Rebase the branch on main.** `git checkout <original-branch> && git rebase main`, resolving conflicts and continuing. Do not push. Ask the user whether to force-push the rebased branch. Skip this step if already on main.

4. **Report.** Which submodules moved and by how many commits, whether the rebase was clean or conflicted, and the current branch and commit. If no submodules needed updating and main has no new commits, say "Already up to date".

Notes

Never commit a submodule pointer in the parent repo unless that submodule commit is reachable from the submodule's remote main (see the submodule-safety pitfall in CLAUDE.md).

Read more
@manaflow-ai
Ships withcmux

Open source Ghostty-based macOS terminal with vertical tabs and notifications for AI coding agents. Built for multitasking, organization, and programmability.

Stars on GitHub

Momentum

stars in total
28.6k
Star history of manaflow-ai/cmux on GitHub, a chart by star-history.com

Other commands on cmux.

cleanup-builds

cleanup-builds

Command

Reclaim disk taken by tagged dev artifacts from `./scripts/reload.sh --tag <tag>`. Each tagged build is multi-GB of DerivedData…

@manaflow-ai@manaflow-aiInstall Command
pull

pull

Command

Pull latest main and update all submodules to their latest remote main. No commits, no pushes.

@manaflow-ai@manaflow-aiInstall Command
release-nightly

release-nightly

Command

Release through the PR flow, then build and publish locally instead of waiting on the CI release workflow.

@manaflow-ai@manaflow-aiInstall Command
release

release

Command

Ship a stable cmux release built by CI: bump version, update changelog, open a PR, merge, tag, then GitHub Actions builds, signs,…

@manaflow-ai@manaflow-aiInstall Command
review

review

Command

Run an adversarial review of the current change using the repository's cmux review skill.

@manaflow-ai@manaflow-aiInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command