vteam clean- Removes the git worktrees in the project’s state directory (and in the
.vteam-worktrees/directory older versions used, if it is still there) that no running agent is using. A worktree belongs to a running agent when that agent’s lock is held by a live process and its current run state points at it. - Breaks stale locks (held by a dead process, or missing their info file and older than 30 minutes).
- Returns orphaned tasks to
todo: tasks that areactivewith a claim from this machine whose process is no longer running. Tasks claimed on another machine andactivetasks without a vteam claim are listed but left alone.
Run this after a crash or if a lock is stuck. It is safe to run while agents work.