Sync Worktrees — AI skill for Claude Code
Auto-sync Git worktrees with remote branches.
How to install Sync Worktrees
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open yordan-kanchelov/sync-worktrees and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Sync Worktrees does
Auto-sync Git worktrees with remote branches. Includes an MCP server so Claude Code, Cursor & other AI agents can inspect and manage worktrees.
Alternatives in AI
- Peekaboo — Peekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, o 3.2k ★
- Agor — Orchestrate Claude Code, Codex, and Gemini sessions on a multiplayer canvas 1.2k ★
- Skills Manager — A lightweight desktop app to manage, sync, and organize AI agent skills across 15+ coding tools — Cursor, Clau 813 ★
README
sync-worktrees
Keep every branch checked out. Switching is just `cd`.
[](https://www.npmjs.com/package/sync-worktrees) [](https://sync-worktrees.com) [](#install-and-quick-start) [](#install-and-quick-start) [](./LICENSE) [](https://github.com/yordan-kanchelov/sync-worktrees/actions/workflows/release.yml)
sync-worktrees turns each Git branch, in every repository you declare, into a folder on disk and keeps it in sync with the remote. Git history is stored once per repository; dirty trees are never touched and unpushed commits are never discarded. A new machine is one config file.
**Contents:** [What you get](#what-you-get) · [Why](#why-sync-worktrees) · [How it works](#how-it-works) · [What it will never do](#what-it-will-never-do) · [Install and quick start](#install-and-quick-start) · [Configuration](#configuration) · [Interactive TUI](#interactive-tui) · [Optional MCP server](#optional-mcp-server) · [CLI reference](#cli-reference) · [Documentation](#documentation) · [Contributing](#contributing) · [License](#license)
What you get
npm install -g sync-worktrees # Node 24+, macOS or Linux
sync-worktrees init # wizard → writes sync-worktrees.config.js
sync-worktrees # TUI: syncs now, then hourly; add --runOnce for a one-shot
With one repository declared and `init`'s default `worktreeDir` (`./`), the directory holding the config becomes:
.
├── sync-worktrees.config.js
├── .bare/
│ └── my-repo/ # Git history, stored once
└── my-repo/
Related Skills
Grove
A Kanban-style TUI for parallel AI coding. Manage Git worktrees as tasks, run multiple agents in isolated tmux
SSH Server MCP
SSH MCP Server that enables AI assistants (e.g., Claude, Copilot) to connect to remote machines over SSH, exec
Contextos Agents
AI Project OS: 39 engineering skills, parallel MCP worktrees, and token optimizer with auto-stack profiles for
Beckett Godot MCP
Zero-sidecar MCP server inside the Godot editor. AI agents (Claude Code, Cursor) inspect, author, run and SEE
Gitx Skill
GitX is a portable AI-agent skill for creating clean Git commits, tagged branches, and safe pushes across Code
Recall Inspect
Inspect a single past session — print ai-title, message count, branches, top extractions.
Related Agents
Workspace Sync
Use this agent when the user wants to save work, sync repos, undo changes, check history, or manage branches.
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Git Sync Agent
Git Sync Auditor. Use this agent to check for uncommitted differences and remote drift before risky operations