Worktrees manager in Autohand Code Desktop
See every Git worktree on your machine, whichever agent made it, choose where new ones go, and remove them without losing work.
A worktree is a separate checkout of a repository with its own branch. Desktop creates one when you start a thread with New worktree. Other coding agents create them too. Settings > Worktrees brings them all into one list.

Find worktrees
Open Settings > Worktrees. Opening the page only reads; it does not clean anything up.
Scanned locations shows where Desktop looked and how many worktrees it found in each place: the Autohand, Claude Code, and Codex worktree folders, any custom folders, and every worktree Git reports for repositories Desktop knows. A location marked No folder yet just means that agent has not created any worktrees there.
Choose a location to filter, or search by branch, path, or repository. Rows are grouped by repository and show the branch, uncommitted changes, distance from upstream, last commit, locks, and linked threads.
Use Rescan to refresh the list.
Choose where new worktrees go
Default location applies to new worktrees only; it never moves existing ones.
- Automatic uses Autohand’s folder when you are signed in (or when your sign-in cannot be checked), and otherwise the Claude Code or Codex folder you already have.
- Autohand, Claude Code, or Codex uses that agent’s folder.
- A custom folder uses a folder you pick. Desktop refuses a custom folder inside another agent’s own worktree folder.
New worktree location shows the exact folder your choice resolves to, and why. Check it before you change the policy.
When Desktop creates a worktree in a folder shared with another tool, it names it autohand-... and records it as its own. Automatic cleanup only removes worktrees Desktop created.
Work with a worktree
Each row’s menu offers the actions that fit its state:
- start a new thread in that worktree,
- open it in your editor, reveal it in your file manager, or copy its path,
- delete it,
- for a row marked Folder missing: Locate folder… to reconnect a moved checkout, or Clean up to remove Git’s record of it.
Check the branch, files, and status before you remove or repair anything. A worktree that no longer appears in the sidebar may still hold work you need.
Delete safely
When you delete a worktree, Desktop first shows a fresh count of uncommitted changes and of commits that exist nowhere else. It warns that files Git ignores, such as .env files and build output, are deleted too. If Git still refuses, Desktop asks again about that reason alone.
- A temporary
autohand/...branch that holds commits found nowhere else is kept, and named in the result. - A locked worktree is unlocked for the removal and locked again if the removal fails.
- Deleting one worktree does not prune the records of others whose folders are temporarily missing, such as on a disconnected drive.
- Cleaning up a missing worktree whose record is the only thing keeping some commits asks you a second time. A moved worktree, or one the last scan could not check, is never cleaned up.
Removing a worktree and deleting its branch are separate Git operations. Keep any committed or uncommitted work you still need before you confirm.
If scanning fails
A “could not confirm the folder” or “unable to scan” message usually points to a connection problem with Desktop’s local service, not a missing repository. Restart Desktop, then use Rescan. If it keeps failing, check the logs and report it; see troubleshooting.