Claude Code v2.1.47 ·
Agent Worktree Cleanup
EntryKind: in v2.1.47,
ChangesSection of the release
What
Better management and cleanup of git worktrees created by agents.
Details
- Detects when agent worktree has uncommitted changes: "Agent worktree has changes, keeping:"
- Logs worktree removal: "Removed agent worktree at:"
- Handles branch cleanup failures gracefully
Evidence
Worktree management (search for "Agent worktree has changes", "worktreePath:")
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.47 →