agents

Manage agent worktrees.

List and clean up git worktrees created by Locus agents.


List Worktrees

locus agents list

Shows all active agent worktrees with their branch, status, and HEAD commit.


Clean Up Worktrees

Remove stale worktrees:

locus agents clean

Remove all agent worktrees:

locus agents clean --all

Options

Flag
Description
Default

--dir <PATH>

Project directory

Current directory

circle-info

Agent worktrees are stored in .locus-worktrees/ in your project directory. Each worktree is named agent/<taskId>-<slug>.

Last updated