Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Project worktrees

Worktrees let agents use separate checkouts of the same Git repository. Several agents can share a worktree. Completing a task or removing a worker leaves its worktree in place.

Setup

Open the project’s Worktrees tab. Select Create for a new checkout from a committed revision, or Add to register an existing checkout of the same repository. The original checkout appears as main.

New worktrees start on a branch with the same name. Choose an unused, valid Git branch name without slashes. Uncommitted changes stay in the original checkout.

Choose a worktree in Spawn worker or in agent settings. Stop an agent before changing its worktree. Select Terminal in the worktree list to open a shell in that checkout.

Add .worktrees/ to the project’s Git ignore rules to keep nested checkouts out of commits. See Paths and files for storage locations.

Renaming

For a ready managed worktree, move or remove attached sessions, then select Rename. Renaming moves its directory; its branch keeps its name. External checkouts cannot be renamed here.

Removal

Move or remove all attached sessions, including stopped workers and host shell tabs, then select × on the worktree row. You cannot remove main.

A managed checkout must have no uncommitted changes or extra files, including ignored build output. Its current commit must belong to a retained local branch, and its cache links must be intact. Resolve any reported conflict and try again. Branches and shared cache data are kept.

For an external checkout, removal only unregisters it from SlopWorld; its files and Git registration stay in place. Remove registered worktrees before removing the project.

Browsing

Use the Project filter in Files, Git, and Search to choose which checkouts to show. Main starts enabled; enable new worktrees as needed. These choices do not change agents’ assigned checkouts.