sync-worktrees
Active·★ 14·MIT·Updated 2026-05-29
★ Trending★ Dev Tooling
Auto-sync Git worktrees with remote branches. Includes an MCP server so Claude Code, Cursor & other AI agents can inspect and manage worktrees.
sync-worktrees automatically syncs Git worktrees with remote branches, keeping each branch in its own isolated directory. It supports multi-branch development workflows and automated testing setups with features like scheduled execution, safety checks, and an MCP server for AI assistants.
#agentic#ai-agents#ai-tools#claude-code#claude-desktop#cli#cursor#developer-tools
01
Features
01Automatically creates worktrees for all remote branches
02Removes worktrees for deleted remote branches (preserves local changes)
03Run as a scheduled cron job or one-time execution
04Safe operations – won't delete worktrees with uncommitted changes or unpushed commits
05MCP server for AI assistants to inspect and manage worktrees
02
Compatibility
macOS
macOS
Verified via docs
Linux
Linux
Verified via docs
03
Quick start
1
$ npm install -g sync-worktrees
04
Use cases
↳Switch between branches instantly without stashing
↳Run tests on multiple branches simultaneously
↳Keep CI and production branches always ready
05
Alternatives
context-mode★ 16.0k
Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 12 platforms
Auto-claude-code-research-in-sleep★ 11.0k
ARIS ⚔️ (Auto-Research-In-Sleep) — Claude Code skills for autonomous ML research: cross-model review loops, idea discovery, and experiment automation via Codex MCP
agents-best-practices★ 1.1k
Provider-neutral Agent Skill for Codex, Claude Code, and agentic harness design.
openagent★ 5.1k
⚡️AI Cloud OS: Open-source enterprise-level AI knowledge base and MCP (model-context-protocol)/A2A (agent-to-agent) management platform with admin UI, user management and Single-Sign-On⚡️, supports ChatGPT, Claude, Llama, Ollama, HuggingFace, etc., chat bot demo: https://ai.casibase.com, admin UI demo: https://ai-admin.casibase.com
Related searches
Comments
Log in to leave a comment
- Avery RiveraApr 29, 2026
Works with standard Git worktree setups.
- RRowan WilsonApr 25, 2026
Auto-sync Git worktrees with remote branches via MCP — eliminates manual sync toil.
- CCorey NguyenApr 25, 2026
Good for developers using multiple worktrees who want automated branch synchronization.
- SSterling ThompsonMar 24, 2026
MCP server integration lets Claude Code trigger syncs in AI workflows.