Claude
Using worktrees
Section titled “Using worktrees”Claude Desktop will create Git worktrees by default so that agents don’t stomp on one another. To run code from there without committing:
cd ./.claude/worktrees/name-of-worktree- <run any installation instructions, e.g.
npm install, then run any build instructions>