worktree-management

Installation
SKILL.md

Worktree Management

Git worktrees let each agent or task operate on its own branch without interfering with the main working directory. Claude Code exposes this through EnterWorktree / ExitWorktree tools.

Why worktrees

A worktree is a second (or third, or tenth) checked-out copy of the same repository, each on its own branch. Agents working in separate worktrees:

  • Cannot corrupt each other's in-progress changes
  • Do not share unstaged edits or index state
  • Can be abandoned cleanly if the task fails
  • Leave main (or your feature branch) undisturbed

This project itself runs in a worktree at .claude/worktrees/<branch-name>.

Core commands

Installs
12
Repository
thelobbi/claude
GitHub Stars
20
First Seen
Apr 17, 2026
worktree-management — thelobbi/claude