{"version":"2.1.304","anchor":"stale-agent-worktree-cleanup-passes-keepsworktreesinside","canonical_anchor":"stale-agent-worktree-cleanup-passes-keepsworktreesinside","heading":"Cleanup of old agent worktrees passes an extra option","tier":"internal","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.304\/e\/stale-agent-worktree-cleanup-passes-keepsworktreesinside","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.304","markdown":"### Cleanup of old agent worktrees passes an extra option\n\nWhen Claude Code removes old agent worktrees, it now passes an option about worktrees kept inside another folder\n\n**What**\n\nA worktree is an extra checkout of a git repository in its own folder, and agents can use them to work separately. When Claude Code cleans up old agent worktrees, the removal step now receives an extra option about worktrees that are kept inside another folder. Before, it received no options.\n\n**Why**\n\nThis is likely meant to stop the cleanup from touching worktrees that live inside a folder that should be left alone.\n\n- Area: Worktrees\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}