Parallel work without git stash hell
Claude Code is git-native. Every file edit creates a checkpoint; /rewind or Esc Esc rolls back. The agent commits, branches, rebases, drafts PRs through plain natural language. The bigger pattern: worktrees turn a single repo into N parallel workspaces, one Claude session per worktree, no file collisions.
Worktrees solve the actual problem: you have three half-finished branches, you don't want to git stash through context, and you definitely don't want them sharing a working directory. git worktree add creates a sibling directory pinned to a different branch. Open a Claude session in each. They share commits, they don't share files.
Claude Code's --worktree <name> automates the dance: creates .claude/worktrees/<name>/, branches off origin/HEAD, drops you in. /batch takes it further — decomposes a big refactor into independent units, spawns a background agent per unit in its own worktree, each opens a PR. You review each in isolation.