Claude Code v2.1.76 ·
Stale Agent Worktree Cleanup
EntryKind: in v2.1.76,
ChangesSection of the release
Agent worktrees that are no longer active are now automatically cleaned up.
Details
- Worktrees with no uncommitted changes and no unpushed commits are removed
- The current session's worktree is never cleaned up
- Cleanup runs
git worktree prune after removal - Logged as:
cleanupStaleAgentWorktrees: removed N stale worktree(s)
Evidence
Worktree cleanup (search for "cleanupStaleAgentWorktrees")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.76 →