command-sync-branch — Claude Code plugin: branch sync
command-sync-branch — a plugin that syncs your feature branch with the latest main. Keeps your local work current when the main branch moves ahead.
MIT ★ 2,707 updated 2026-03-05
/plugin marketplace add softaworks/agent-toolkit
/plugin install command-sync-branch@agent-toolkitWhat command-sync-branch does
command-sync-branch automates pulling changes from main into your working branch. The plugin fetches fresh commits from the main branch and applies them without leaving the Claude Code editor—no manual conflict resolution in the terminal needed.
It works as a native Claude Code command, callable directly from the interface. This saves a trip to the terminal and makes it quick to bring your branch up to date before opening a pull request or merging.
What it helps with
- sync a feature branch with the main branch
- avoid merge conflicts when updating a feature branch
- keep local changes current without terminal work
- run branch sync from within the editor
Example prompts for the agent
- Sync my branch with main
- /command-sync-branch
- Update the current branch with the latest changes from main
How to install command-sync-branch
Plugin marketplace
/plugin marketplace add softaworks/agent-toolkit/plugin install command-sync-branch@agent-toolkitStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about command-sync-branch
How do I install command-sync-branch in Claude Code?
Run /plugin marketplace add softaworks/agent-toolkit, then /plugin install command-sync-branch@agent-toolkit. The plugin will load and be ready to use.
What does command-sync-branch do?
It syncs your feature branch with the latest commits from main, applying all new changes automatically through Claude Code's interface.
Do I need git to use this plugin?
Yes, the plugin works with a git repository and requires your project to have a main branch set up for version control.
Source text
command-sync-branch · MIT
Sync feature branch with the latest main branch.
© softaworks · MIT · softaworks/agent-toolkit