Tech
worktree-janitor: clean up the git worktrees your dead agent sessions left behind
If you run multi-session agent fleets, you know this smell: git worktree list
scrolling past checkouts nobody owns anymore. A session died, its worktree
leaked, and now there are six stale branches with names like fix-thing-3
that nobody dares to delete. Multiply by every fleet run and you get a repo
full of ghost worktrees.
Ben Newton's worktree claim guard (a session-fleet Mod) proved this is a real
problem class: sessions racing over the same worktrees. Guards solve it at
creati...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to