worktree

Manage parallel git worktrees for isolated Claude Code sessions.

6|Updated Dec 11, 2025
One-click install
npx skills add https://github.com/UnaMentis/unamentis --skill worktree-unamentis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/UnaMentis/unamentis/tree/main/.claude/skills/worktree
Command: npx skills add https://github.com/UnaMentis/unamentis --skill worktree-unamentis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

You need multiple Claude Code tasks running concurrently without losing work or context. This Skill provides isolated working directories via git worktrees so you can switch contexts without stashing or full clones.

Core Features & Use Cases

  • Create and manage parallel worktrees for 2-4 tasks with independent working directories.
  • Reopen worktrees in VS Code and maintain synchronized underlying repository data.
  • Use for scenarios like feature development, bug fixes, experiments, and reviews while keeping each task isolated.

Quick Start

Create a new worktree for a task with /worktree create <name> and begin coding in the new session.

Frequently Asked Questions about worktree

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run multiple Claude Code sessions in parallel without stashing or cloning?

Manage parallel development environments using git worktrees to isolate 2-4 concurrent Claude Code sessions. Each worktree maintains an independent working directory and build while sharing synchronized underlying repository data.

How do I create and open a new worktree for a feature branch in VS Code?

Run the create command with a specific task name to generate a new worktree. The environment enforces naming conventions and optionally prompts to run MCP setup, then reopens the isolated worktree in VS Code.

Can I use this workflow automation Skill for bug fixes and code reviews simultaneously?

Yes, this workflow supports feature development, bug fixes, experiments, and reviews by keeping each task isolated in its own worktree. This allows you to switch contexts without losing work or affecting other parallel sessions.

What is the maximum number of parallel tasks supported by these git worktrees?

This Skill manages parallel development environments for 2-4 concurrent tasks. It provides isolated working directories via git worktrees so you can run multiple Claude Code tasks concurrently without context loss.

How do I clean up and remove unused worktrees after finishing a task?

Use the remove and cleanup commands to delete worktrees after finishing a task. You can also use the status command to list active worktrees and check their current state before removing them.