{"version":"2.1.239","anchor":"worktree-location-setting-for-desktop-ssh-sessions","canonical_anchor":"worktree-location-setting-for-desktop-ssh-sessions","heading":"worktree.location setting for Desktop SSH sessions","tier":"use","area":"Worktrees","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.239\/e\/worktree-location-setting-for-desktop-ssh-sessions","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.239","markdown":"### `worktree.location` setting for Desktop SSH sessions\n\nA `worktree.location` setting tells the desktop app where to create worktrees for SSH sessions; the CLI ignores it.\n\n**What**\n\nThe `worktree` block in settings takes an optional `location` path saying where Claude Code Desktop should create worktrees for SSH sessions on this machine, instead of the default `<project>\/.claude\/worktrees`. Only the desktop app reads it; the setting's own description states that the CLI does not.\n\n**Details**\n\n- Applies per machine, so the path is a local one.\n- `--worktree`, EnterWorktree and agent isolation continue to use the project-relative default regardless of this key.\n\n**Evidence**\n\n`The CLI (--worktree, EnterWorktree, agent isolation) does not read it yet.`\n\n- Area: Worktrees\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 4\/5"}