What’s on Your Mac
Git worktrees
Extra copies of a repository that agents create to work in parallel.
A worktree is a second working folder for the same git repository, usually on a different branch. Agents and tools like Codex, Claude Code and Cursor create them so several tasks can run at once without getting in each other’s way. Each one is a full copy of your project, often including its own node_modules, so they get big quickly.
If you clean one
The folder is removed. Everything that was committed stays in your main repository: commits and branches aren’t lost. Only changes that were never committed in that copy would be lost.
That’s why AgentTidy locks every worktree with uncommitted changes, and every worktree it can’t check. You only ever see clean worktrees as cleanable.
Clean a worktree when its branch is merged or abandoned.