{"version":"2.1.48","anchor":"git-worktree-mode","canonical_anchor":"git-worktree-mode","heading":"Git Worktree Mode","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.48\/e\/git-worktree-mode","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.48","markdown":"### Git Worktree Mode\n\n**What**\n\nCreate and work in isolated git worktrees directly from Claude Code, with full session management and cleanup prompts.\n\n**Usage**\n\n`# Start Claude Code with a new worktree claude --worktree claude -w # Start with a named worktree claude --worktree=my-feature # Combine with tmux for parallel sessions claude --worktree --tmux` **Details** - Creates a new git worktree in `.claude\/worktrees\/` with a dedicated branch based on HEAD - Automatically switches the session's working directory to the worktree - On session exit, prompts to keep or remove the worktree and associated tmux session - Symlinks configured directories (like `node_modules`) from main repo to avoid disk bloat - Copies `settings.local.json` and configures git hooks from the main repository - The worktree branch is automatically deleted when removing the worktree **Evidence** New `-w, --worktree [name]` flag and CreateWorktree tool (search for `\"Create a new git worktree for this session\"`)"}