Open Sweep
The paintbrush is faded when the Task has no worktrees on this host. For an inventory of all Traycer-managed worktrees on a host, use Settings › Worktrees.
Choose What To Remove
Sweep lists each worktree with its branch, repository, path, status, and available pull request information. Only Landed or At base commit worktrees that are idle and belong exclusively to the selected Tasks start checked.
When several selected Tasks share a worktree, it appears once. It counts as shared outside the sweep only if a Task outside your selection also references it.
Select all includes selectable worktrees that did not start checked, including work needing review. Keep the default selection if you only want the worktrees Traycer has preselected as safe.
Remove The Selected Worktrees
- Check the paths, branches, and selected count. Deselect anything you want to keep.
- Click Remove N worktrees. Traycer refreshes its checks before proceeding.
- If the selection is still safe, removal starts immediately. If it includes unproven work, active work, or worktrees shared with other Tasks, Review this sweep shows the consequences first.
- In that review, read the possible work loss, activity that will be stopped, affected Tasks, and worktree paths. Choose Back to change the selection, Cancel to leave, or Confirm and remove N worktrees to proceed.
Example: Clean Up After A Merged PR
Suppose a Task has two worktrees:fix-login, whose current work has landed, and try-new-layout, which still has uncommitted changes. Once checks finish, Sweep preselects the idle fix-login worktree if no other Task uses it. It leaves try-new-layout unchecked with a review explanation.
Leave that selection as-is and choose Remove 1 worktree to remove the fix-login checkout while retaining the unfinished checkout. The Task and its conversation history remain available.
Sweep On Different Hosts
Worktrees live on the host where they were created. If you have multiple hosts, use the host selector in Sweep to choose whose worktrees to inspect and remove. A sweep acts on one host at a time; repeat it on another host if needed. An empty list means no worktrees were found for the selected Tasks on that host. An unreachable host cannot be inspected or cleaned up until it is reachable again. In the review step, use Back before changing hosts.If Cleanup Does Not Finish
- Couldn’t be removed: Inspect the reported reason, address it, then select the worktree again to retry.
- Unconfirmed: Traycer could not confirm the outcome. Check the worktree and refresh its status before taking further action; Sweep does not automatically retry that deletion.
- Couldn’t check these worktrees: Retry or inspect the host’s inventory in Settings › Worktrees.