Worktree Manager logo

Worktree Manager

Community
guoyongchang

A simple GUI to manage Git Worktrees. Visual Git Worktree manager for parallel branch development. Multi-repo workspaces, smart symlinks, built-in terminal, browser remote access, and AI-ready MCP integration. Built with Tauri 2 + React + Rust.

Publisherguoyongchang
Repositoryworktree-manager
LanguageRust
Forks
6
Stars
61
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    Worktree Manager exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    61 stars and 6 forks from the linked repository.

Worktree Manager

The missing GUI for Git Worktrees.

Work on multiple branches simultaneously, across multiple repos, without stash, clone, or context-switching pain.

License: MIT GitHub release Platform Built with Tauri

Download | Documentation | MCP Integration


Why Worktree Manager?

You're deep in a feature branch. Fifteen files changed. Dev server running. Then Slack pings: production is down.

Without Worktree Manager — git stash → switch branch → npm install → wait for rebuild → fix → switch back → git stash pop → pray for no conflicts → restart dev server. 15 minutes minimum.

With Worktree Manager — Click "New Worktree", type hotfix-payment, done. Your feature branch keeps running. Dependencies are shared via symlink — instant setup. Fix, push, archive. 30 seconds.

Multi-Repo Workspaces & Parallel AI Development

Group related repos into a Workspace. Creating a Worktree creates a git worktree across all linked projects at once. Each Worktree gets its own terminal — run Claude Code, Codex, or Cursor in parallel across different branches without conflicts.

Zero-Cost Context Switching

P0 alert mid-development? Create a hotfix-payment Worktree → AI-assisted fix → merge to main → archive → switch back. Uncommitted code, terminal output, dev servers — everything stays intact.


📸 Screenshots

Main InterfaceCreate Worktree
Main InterfaceCreate Worktree
Terminal & AI CodingBrowser Remote Access
TerminalRemote Access
Voice Input & AI Refine
Voice Input

🚀 Quick Start

Download

PlatformDownload
macOS.dmg
Windows-setup.exe
Linux.AppImage / .deb

Only requirement: Git 2.0+. No Node.js or Rust needed at runtime.

Get Started in 3 Steps

  1. Create a Workspace — Point to your project directory or create a new one
  2. Add Projects — Import repos via GitHub shorthand (owner/repo), SSH, or HTTPS
  3. Create Worktrees — Click "+", name your branch, select projects, go

That's it. Your worktree is ready with all dependencies symlinked and terminals pre-configured.


✨ Features

Core

FeatureDescription
🌿 Parallel BranchesWork on multiple branches at the same time in isolated directories, sharing the same .git data
📦 Multi-Repo WorkspacesGroup related repos (frontend + backend + shared libs) — create a worktree and all repos switch together
🔗 Smart SymlinksAuto-link node_modules, .next, vendor, target etc. Zero disk waste, zero reinstall
🏷️ Tag OrganizationTag projects by team, domain, or stack. Filter and batch-select when creating worktrees

Git Operations

FeatureDescription
🔄 One-Click OperationsSync, merge to test, pull, push — all from the UI with real-time diff stats
📊 Branch InsightsSee how many commits you're ahead/behind at a glance
⚡ Batch ActionsTrigger operations across all projects in a worktree simultaneously
📝 AI Commit MessagesGenerate commit messages with Qwen AI (optional)

Terminal & Remote

FeatureDescription
💻 Built-in TerminalFull terminal emulator (xterm.js + PTY) with shell integration and search
🎤 Voice InputSpeak to type in terminal — powered by Dashscope ASR with AI text refinement
🌐 Browser RemoteShare your workspace over the network with password protection
🔒 ngrok TunnelingOptional public access via ngrok — no port forwarding needed

Integrations

FeatureDescription
🖥️ IDE IntegrationOne-click open in VS Code, Cursor, or IntelliJ IDEA
🤖 AI-Ready (MCP)Built-in MCP server — let Claude Code, Cursor, or Codex manage worktrees via natural language
📁 Safe ArchivingArchiving only hides a worktree (files, branches and git state stay untouched); pre-archive checks flag uncommitted or unpushed work. Restore instantly

❓ FAQ

A Git worktree lets you check out multiple branches into separate directories while sharing a single .git database. Unlike cloning, worktrees share history, refs, and hooks — no extra disk space for repository data. Learn more

When creating a worktree, Worktree Manager automatically creates symlinks for directories you specify (e.g., node_modules, .next, target). These point to the main project's directories, so you never need to reinstall dependencies. You can configure which folders to link per project.

Absolutely. While multi-repo workspaces are a key feature, Worktree Manager works perfectly with a single repository too.

No. The remote machine only needs a modern browser. Everything runs through the web interface — terminal, file browsing, git operations, worktree management.

Yes. Browser access is password-protected with challenge-response authentication (no plaintext passwords over the wire). You can also limit access to LAN-only or use ngrok for secure tunneling.

The built-in Model Context Protocol server lets AI coding assistants (Claude Code, Cursor, Codex) create worktrees, check status, and run git operations through natural language — without leaving your AI chat. See MCP docs for setup.


📂 How It Works

workspace/
├── .worktree-manager.json        # Workspace config
├── projects/                     # Main repos (base branches)
│   ├── frontend/
│   └── backend/
└── worktrees/                    # Your worktrees
    ├── feature-checkout-v2/
    │   ├── projects/
    │   │   ├── frontend/         # ← git worktree (own branch)
    │   │   │   └── node_modules  # ← symlink to main
    │   │   └── backend/
    │   ├── .claude -> ../../.claude       # Shared files
    │   └── CLAUDE.md -> ../../CLAUDE.md
    └── hotfix-payment/
        └── ...

Shared items (.claude, CLAUDE.md, config files) are automatically symlinked across all worktrees so AI assistants and tooling configs stay in sync.

jsonc
{
  "name": "My Project",
  "worktrees_dir": "worktrees",
  "linked_workspace_items": [".claude", "CLAUDE.md"],
  "tags": [
    { "id": "fe", "name": "Frontend", "color": "#3B82F6" },
    { "id": "be", "name": "Backend", "color": "#10B981" }
  ],
  "projects": [
    {
      "name": "web-app",
      "base_branch": "main",
      "test_branch": "test",
      "merge_strategy": "merge",
      "linked_folders": ["node_modules", ".next"],
      "tags": ["fe"]
    }
  ]
}
FormatExample
GitHub shorthandfacebook/react
SSHgit@github.com:facebook/react.git
SSH (custom port)ssh://git@gitlab.com:1022/org/repo.git
HTTPShttps://github.com/facebook/react.git

🔧 Building from Source

Prerequisites: Node.js 22+, Rust 1.98 (install rustup; the toolchain is installed automatically via rust-toolchain.toml), Git 2.0+

bash
git clone https://github.com/guoyongchang/worktree-manager.git
cd worktree-manager
npm install

# Development
npm run build && npm run tauri dev

# Production build
npm run tauri build

# Verify command contracts (IPC ↔ HTTP sync)
npm run contracts

Tech Stack: Tauri 2 · React 19 · TypeScript 5 · Tailwind CSS 4 · Rust (axum, git2, tokio) · xterm.js

See TESTING.md for the testing strategy.


Contributing

Contributions are welcome! Please open an issue first to discuss what you'd like to change.

License

MIT


If Worktree Manager saves you time, consider giving it a ⭐!

Report Bug · Request Feature · Documentation

Use Worktree Manager MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Worktree Manager is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Worktree Manager as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Worktree Manager MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "worktree-manager": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Worktree Manager MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Worktree Manager MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Worktree Manager to help me with this task?
Worktree Manager
Sure. I read it.
Here is what I found using Worktree Manager.

Frequently asked questions

What is the Worktree Manager MCP server used for?

Worktree Manager is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Worktree Manager MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Worktree Manager with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Worktree Manager MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Worktree Manager connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Worktree Manager MCP to TypingMind?

Worktree Manager runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Worktree Manager MCP provide in TypingMind?

Worktree Manager exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Worktree Manager MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Worktree Manager requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇