Unclear It is not known when a worktree is now kept or removed, or when resuming it as it is applies.
What
A worktree is a separate working copy of a git repository that Claude Code can work in, started with --worktree. Two changes affect it:
- Cleanup now removes two stored details from the worktree's session record before it runs. One of them is checked for a value meaning the worktree may go.
- Creating a worktree can now ask to resume it as it is, under two conditions.
Why
This may change when a worktree is kept or removed as a session ends.
Names in the bundle--worktree
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up --worktree, on Run parallel sessions with worktrees.
Pass `--worktree` or `-w` with a name to create a worktree and start Claude in it. By default, the worktree is created under `.claude/worktrees/<name>/` at your repository root, on a new branch named `worktree-<name>`:worktrees see the edit
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not known when a worktree is now kept or removed, or when resuming it as it is applies.
Anthropic's documentation agrees
Anthropic's documentation has since written up --worktree, on Run parallel sessions with worktrees.