- New worktree — Devin Desktop creates a fresh worktree for the session.
- Existing worktree — choose one from the list under New worktree in the same submenu.
You can only pick a worktree at the beginning of a session. Conversations cannot be moved to a different worktree once started.
Location
Worktrees are organized by repo name inside~/.windsurf/worktrees/<repo_name>. Each worktree is given a unique random name.
To see a list of active worktrees, run git worktree list from within the repository directory.
Cleanup
Devin Desktop does not remove other worktrees when you create a new worktree. A workspace does not have a worktree limit. When you delete a session, Devin Desktop keeps the worktree of that session. To remove a worktree, rungit worktree remove <path> from the repository directory. This command does not delete the branch of the worktree.
Source Control Panel
By default, Devin Desktop does not show agent-created worktrees in the Source Control panel. Setgit.showDevinWorktrees to true in your settings to show them.
The older
git.showWindsurfWorktrees setting is deprecated. It is still honored for existing configurations when git.showDevinWorktrees is not set, but use git.showDevinWorktrees going forward.
