Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Run parallel sessions with worktrees changedworktrees

Nearest release: v2.1.325, published 3 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 14 Nov 2026 00:04 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 14 Nov 2026 00:07 UTC.

Upstream edited
Recorded here
Lines+5added
Lines−2removed
From line 228 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits46to this page, all time

The whole hunk

from line 228, old and new numbered
/
lines
from line 228
228228 
229229With the default `"fresh"` [base](#choose-the-base-branch), a reopened worktree resets to the repository's default branch instead of continuing at its old tip when all of the following hold:
230230 
231* It has no uncommitted changes or untracked files.
231* The [sandbox](https://code.claude.com/docs/en/sandboxing.md#filesystem-isolation) isn't restricting file writes in your session, and neither the worktree's nor the main checkout's `.claude` settings files enable the sandbox.
232* The worktree has no uncommitted changes or untracked files.
232233* It is still on the branch Claude Code created for it.
233234* It has no commits of its own, or its pull request or merge request was merged and its remote branch deleted.
234235 
from line 237
236237 
237238In every other case, Claude Code reopens the worktree at its old tip:
238239 
239* The worktree fails any of the conditions.
240* The worktree or session fails any of the conditions.
240241* Claude Code can't verify the worktree's state.
241242* `worktree.baseRef` is `"head"`.
242243* The name is a pull request or merge request reference.
244 
245If you use the sandbox with the `"fresh"` base, run `git fetch origin`, then pass a new name to `--worktree` to start from the latest default branch.
243246 
244247### Replace worktree creation with a hook
245248 
Feedback