3 people reported

All time, since Sep 20, including 1 thumbs-up on GitHub.

Subagent worktrees not removed when isolated subagent finishes

“In practice the worktree is never removed when the subagent finishes, even when it is provably unchanged.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/claude-code/issues/1943/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Worktrees from isolation: "worktree" subagents stay on disk and in git worktree list even when unchanged; WorktreeRemove hook never fires.

Is this your bug?

File my report
Where
Agent tool
Versions
2.1.278 to 2.1.288
Platforms
macOS
How bad
Breaks a normal workflow.

Not quite your bug?

  1. Subagent worktrees committed1 person
  2. Subagent Bash refused after worktree2 people
  3. Worktree GC deletes idle worktrees2 people

Original reports2, newest first

  1. WorktreeRemove never fires for a subagent worktree created by a WorktreeCreate hook#99270
  2. Clean agent worktrees are never auto-cleaned when a worktree-isolated subagent finishes (2.1.278)#95644

Do you work on Claude Code?

Claim its RAP Sheet to see what your users report and answer them in one place.