Skip to content

Command reference

--worktree[name|#pr]

Starts the session in an isolated git worktree at <repo>/.claude/worktrees/<name>.

FlagsSession and conversationcurrent

What the documentation does not say

This is the answer to two sessions editing the same files: each gets its own checkout, and neither stages the other's work. Pass #<number> or a GitHub pull request URL to fetch that PR from origin and branch the worktree off it; GitLab merge requests work from v2.1.233.

Arguments
[name|#pr]
Also known as
-w