Answer: Pass `--worktree` or `-w` with a name to create an isolated worktree and start Claude in it, for example `claude --worktree feature-auth`. By default the worktree is created under `.claude/worktrees//` at your repository root, on a new branch named `worktree-`. Status: Confirmed Entry: tool/claude-code/features/start-session-in-worktree Revision: 2 Digest: sha256:efe04255106f33ae (changes whenever the content changes) Timeline: Created: 2026-11-13T03:06:09Z Last changed: 2026-11-20T12:26:21Z (command example: — → claude --worktree feature-auth) Last verified: 2026-11-20T12:26:21Z Next check: 2026-11-21T12:26:21Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of command example | claude --worktree feature-auth | [1] | 2026-11-20 flag | --worktree | [1] | 2026-11-20 short flag | -w | [1] | 2026-11-20 default worktree location | .claude/worktrees// | [1] | 2026-11-20 default branch name | worktree- | [1] | 2026-11-20 Sources: [1] Anthropic. "Run parallel sessions with worktrees". https://code.claude.com/docs/en/worktrees.md Role: primary. Accessed: 2026-11-20T12:26:21Z Quote: "claude --worktree feature-auth" (Supports: command example) Quote: "Pass `--worktree` or `-w` with a name to create an isolated worktree and start Claude in it." (Supports: flag, short flag) Quote: "By default, the worktree is created under `.claude/worktrees//` at your repository root, on a new branch named `worktree-`:" (Supports: default worktree location) Quote: "on a new branch named `worktree-`:" (Supports: default branch name) Published: 2026-11-20T03:10:58Z Snapshot SHA-256: 5b800b1cd50f91f0fb7e85a6810c9f3d3ddfa3d9f191fe64be019213a52257f1 (captured 2026-11-19T12:21:26Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-19T12:21:26Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:26:21Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:26:21Z Last attempt: 2026-11-20T12:26:21Z Notes and limitations: Extracted automatically from a single official source (section "Start Claude in a worktree"). Related: https://latestn.com/tool/claude-code/features/status-line-data-fields What data fields are available to a Claude Code status line script? https://latestn.com/tool/claude-code/features/thirty-day-playbook What is a thirty-day plan for rolling out Claude Code on my team? https://latestn.com/tool/claude-code/features/track-running-ultrareview How do I track the progress of a running Claude Code ultrareview? https://latestn.com/tool/claude-code/features/session-own-worktree How do I run a Claude Code Desktop session in its own Git worktree? https://latestn.com/tool/claude-code/features/share-artifact How do I share a Claude Code artifact with my organization or a public link? https://latestn.com/tool/claude-code/features/sparse-worktrees-checkout-directories How do I set up sparse worktrees in Claude Code to check out only needed directories? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:26:21Z | changed | command example: — → claude --worktree feature-auth | [1] 2026-11-20T12:26:21Z | changed | example command: claude --worktree feature-auth → — | [1] 2026-11-13T03:06:09Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/features/start-session-in-worktree/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/features/start-session-in-worktree POST: https://latestn.com/dispute/tool/claude-code/features/start-session-in-worktree with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/features/start-session-in-worktree?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I start a Claude Code session in a git worktree using the --worktree flag? Revision 2, last verified 2026-11-20T12:26:21Z. https://latestn.com/tool/claude-code/features/start-session-in-worktree (accessed 2026-11-21T09:53:38Z). @misc{LatestN_tool_claude_code_features_start_session_in_worktree_r2, title = {How do I start a Claude Code session in a git worktree using the --worktree flag?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/features/start-session-in-worktree}}, note = {Revision 2; digest sha256:efe04255106f33ae; last verified 2026-11-20T12:26:21Z; accessed 2026-11-21T09:53:38Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/features/start-session-in-worktree