Answer: In a project that's a Git repository, turn on **Worktree** before you start a session to run it in its own Git worktree. By default, **Worktree** is off and Claude works in the project folder itself. Status: Confirmed Entry: tool/claude-code/features/session-own-worktree Revision: 5 Digest: sha256:95585cf8a2bf47ce (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:03Z Last changed: 2026-11-20T12:20:24Z (Earlier layout control: — → worktree) Last verified: 2026-11-20T12:20:24Z Next check: 2026-11-21T12:20:24Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Setting to enable | Worktree | [1] | 2026-11-20 Default state | off | [1] | 2026-11-20 Default worktree storage location | /.claude/worktrees/ | [1] | 2026-11-20 Earlier layout control | worktree | [1] | 2026-11-20 Sources: [1] Anthropic. "Desktop application". https://code.claude.com/docs/en/desktop.md Role: primary. Accessed: 2026-11-20T12:20:24Z Quote: "turn on **Worktree** before you start a session to run it in its own" (Supports: Setting to enable) Quote: "By default, **Worktree** is off and Claude works in the project folder itself." (Supports: Default state) Quote: "Worktrees are stored in `/.claude/worktrees/` by default." (Supports: Default worktree storage location) Quote: "select the **worktree** checkbox beside the branch name, above the prompt box" (Supports: Earlier layout control) Published: 2026-11-20T10:36:05Z Snapshot SHA-256: e4838a434650f8e38817f67cddb3c612aa44f433f37a880b8bd664b65bf1508d (captured 2026-11-20T12:20:24Z) 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]. Cross-check: not-available at 2026-11-20T12:20:24Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:20:24Z Last attempt: 2026-11-20T12:20:24Z Notes and limitations: Extracted automatically from a single official source (section "Run a session in its own worktree"). Related: 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/claude-code/features/start-session-in-worktree How do I start a Claude Code session in a git worktree using the --worktree flag? https://latestn.com/tool/claude-code/features/review-md-review-only-rules How do I use REVIEW.md to skip paths or add review-only rules in Claude Code Code Review? https://latestn.com/tool/claude-code/features/review-severity-levels What do the severity levels mean in Claude Code review findings? https://latestn.com/tool/claude-code/features/scan-only-changes How do I scan only my changes or a pull request diff for vulnerabilities in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:20:24Z | changed | Earlier layout control: — → worktree | [1] 2026-11-20T12:20:24Z | changed | Setting to enable: — → Worktree | [1] 2026-11-20T12:20:24Z | changed | Custom location for SSH sessions: **Worktree folder** → — | [1] 2026-11-20T12:20:24Z | changed | Custom location for local sessions: **Worktree location** in **Settings > Code** or **Settings > Claude Code** → — | [1] 2026-11-20T12:20:24Z | changed | Earlier layout method: select the **worktree** checkbox beside the branch name, above the prompt box → — | [1] 2026-11-20T12:20:24Z | changed | Default state: **Worktree** is off → off | [1] 2026-11-20T12:20:24Z | changed | How to enable: turn on **Worktree** before you start a session → — | [1] 2026-11-18T12:15:55Z | changed | Custom location for SSH sessions: — → **Worktree folder** | [1] 2026-11-18T12:15:55Z | changed | Custom location for local sessions: — → **Worktree location** in **Settings > Code** or **Settings > Claude Code** | [1] 2026-11-18T12:15:55Z | changed | Default worktree storage location: — → /.claude/worktrees/ | [1] 2026-11-18T12:15:55Z | changed | Custom location setting (SSH): **Worktree folder** → — | [1] 2026-11-18T12:15:55Z | changed | Custom location setting (local): **Worktree location** in **Settings > Code** or **Settings > Claude Code** → — | [1] 2026-11-18T12:15:55Z | changed | Default storage location: /.claude/worktrees/ → — | [1] 2026-11-17T12:25:25Z | changed | Custom location setting (SSH): — → **Worktree folder** | [1] 2026-11-17T12:25:25Z | changed | Custom location setting (local): — → **Worktree location** in **Settings > Code** or **Settings > Claude Code** | [1] 2026-11-17T12:25:25Z | changed | Earlier layout method: — → select the **worktree** checkbox beside the branch name, above the prompt box | [1] 2026-11-17T12:25:25Z | changed | Default storage location: — → /.claude/worktrees/ | [1] 2026-11-17T12:25:25Z | changed | How to enable: — → turn on **Worktree** before you start a session | [1] 2026-11-17T12:25:25Z | changed | Earlier layout control: worktree → — | [1] 2026-11-17T12:25:25Z | changed | Default worktree storage location: /.claude/worktrees/ → — | [1] 2026-11-17T12:25:25Z | changed | Where to enable (current layout): row under the prompt box → — | [1] 2026-11-17T12:25:25Z | changed | Default state: off → **Worktree** is off | [1] 2026-11-17T12:25:25Z | changed | Setting to enable: Worktree → — | [1] 2026-11-14T12:16:09Z | changed | Where to enable (current layout): — → row under the prompt box | [1] 2026-11-14T12:16:09Z | changed | Where to turn it on (current layout): row under the prompt box → — | [1] 2026-11-13T03:04:03Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/features/session-own-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/session-own-worktree POST: https://latestn.com/dispute/tool/claude-code/features/session-own-worktree with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/features/session-own-worktree?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I run a Claude Code Desktop session in its own Git worktree? Revision 5, last verified 2026-11-20T12:20:24Z. https://latestn.com/tool/claude-code/features/session-own-worktree (accessed 2026-11-21T09:53:02Z). @misc{LatestN_tool_claude_code_features_session_own_worktree_r5, title = {How do I run a Claude Code Desktop session in its own Git worktree?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/features/session-own-worktree}}, note = {Revision 5; digest sha256:95585cf8a2bf47ce; last verified 2026-11-20T12:20:24Z; accessed 2026-11-21T09:53:02Z} } 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/session-own-worktree