yordan-kanchelov

Sync Worktrees — AI skill for Claude Code

AI community

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`.

[![npm version](https://img.shields.io/npm/v/sync-worktrees)](https://www.npmjs.com/package/sync-worktrees) [![website](https://img.shields.io/badge/website-sync--worktrees.com-0a7ea4)](https://sync-worktrees.com) [![node](https://img.shields.io/badge/node-%E2%89%A5%2024-brightgreen)](#install-and-quick-start) [![platform](https://img.shields.io/badge/platform-macOS%20%7C%20Linux-lightgrey)](#install-and-quick-start) [![license](https://img.shields.io/badge/license-MIT-blue)](./LICENSE) [![release](https://github.com/yordan-kanchelov/sync-worktrees/actions/workflows/release.yml/badge.svg)](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/