{"version":"2.1.76","anchor":"stale-agent-worktree-cleanup","canonical_anchor":"stale-agent-worktree-cleanup","heading":"Stale Agent Worktree Cleanup","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.76\/e\/stale-agent-worktree-cleanup","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.76","markdown":"### Stale Agent Worktree Cleanup\n\nAgent worktrees that are no longer active are now automatically cleaned up.\n\n**Details**\n\n- Worktrees with no uncommitted changes and no unpushed commits are removed\n- The current session's worktree is never cleaned up\n- Cleanup runs `git worktree prune` after removal\n- Logged as: `cleanupStaleAgentWorktrees: removed N stale worktree(s)`\n\n**Evidence**\n\nWorktree cleanup (search for `\"cleanupStaleAgentWorktrees\"`)"}