[FEATURE] Add option to disable git worktree creation by default for new sessions in Claude Code Desktop
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Summary
Claude Code Desktop (v1.5354.0, claude-code 2.1.121) creates a new git worktree
under <project>/.claude/worktrees/<name>/ for every new session by default.
There is no user-facing toggle to opt out — only a "Worktree location" dropdown
that controls where worktrees are stored, not whether they're created.
What's missing
The internal useWorktree flag exists per session and defaults to true
(useWorktree !== false). A non-worktree path also exists ("In-folder session"
in the binary). But neither the CCD GUI nor ~/.claude/settings.json exposes a
way to flip the default.
Requested
Either of:
- A global toggle in CCD Settings: "Use git worktree for new sessions" (on/off)
- A
worktree.useByDefault: falsefield insettings.json - An "In-folder session" option in the new-session shortcut/dialog (Cmd+N)
Why
Some workflows (small repos, quick edits, hardware/CAD repos with binary
artifacts) don't benefit from per-session isolation, and the worktree dir
clutters the project. A memory note ("don't edit in worktree") helps inside
the session but doesn't prevent CCD from creating it before launch.
Environment
- macOS 15 (Darwin 25.3.0)
- Claude Desktop 1.5354.0
- claude-code 2.1.121
Proposed Solution
See above in the Claude written Problem Statement.
Alternative Solutions
See above in the Claude written Problem Statement.
Priority
Medium - Would be very helpful
Feature Category
Configuration and settings
Use Case Example
_No response_
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗