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 / 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 (or your feature branch) undisturbed This project itself runs in a worktree at . Core commands Claude Code tools…