worktree

Create and manage isolated git worktrees for concurrent branch work.

218|11|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/poteto/noodle --skill worktree-poteto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree
Source: https://github.com/poteto/noodle/tree/main/.agents/skills/worktree
Command: npx skills add https://github.com/poteto/noodle --skill worktree-poteto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manage git worktrees for isolated branch work. This enables concurrent sessions and prevents the primary checkout from being disrupted.

Core Features & Use Cases

  • Create and manage named worktrees under .worktrees/, allowing parallel development without polluting the main workspace.
  • Run commands inside a worktree safely using CWD isolation and ensure proper stash/rebase handling and dependency reinstalls.
  • Support multi-agent workflows with per-teammate worktrees that can be merged back to the main branch when ready.

Quick Start

Create an isolated worktree with noodle worktree create <name>, then execute tasks inside it with noodle worktree exec <name> <command> to keep the main checkout clean.

Frequently Asked Questions about worktree

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

FAQPage Schema
How do I run isolated git branches concurrently without disrupting my primary checkout?

Git worktrees enable isolated branch work by creating separate working directories under .worktrees/, allowing parallel development sessions without polluting the main workspace. You can execute tasks inside a worktree using CWD isolation to keep the primary checkout clean.

What is the best way to manage parallel feature development across multiple teammates?

Multi-agent workflows with per-teammate worktrees allow parallel feature work and experiments that must not affect the primary checkout. These isolated worktrees can be merged back to the main branch when ready, ensuring safe concurrent sessions.

How do I switch git branches without losing uncommitted changes or reinstalling dependencies?

Worktree management enforces stash and rebase handling, along with automatic dependency reinstalls when creating or switching worktrees. This ensures your isolated branch work maintains proper CWD safety and dependency state across concurrent sessions.

Does git worktree automation handle stash and rebase operations safely?

Yes, git worktree automation enforces CWD safety and proper stash and rebase handling when creating or switching isolated worktrees. This prevents branch switching conflicts and ensures your main checkout remains undisrupted during parallel development.

Why do I need isolated worktrees for concurrent development sessions?

Isolated worktrees prevent the primary checkout from being disrupted during concurrent sessions and parallel feature work. They provide CWD isolation and automatic dependency reinstalls, ensuring experiments and branch work remain separated until merged back to the main branch.

Can I execute commands inside a specific git worktree without affecting the main workspace?

Yes, you can execute tasks inside a named worktree using CWD isolation to keep the main checkout clean. This allows running commands safely within isolated branch work, preventing disruption to your primary checkout during concurrent development sessions.