Run parallel sessions with worktrees changedworktrees
Nearest release: v2.1.333, published 2 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 30 Nov 2026 21:52 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 30 Nov 2026 22:07 UTC.
Upstream edited
Recorded here
Lines+3added
Lines−3removed
From line
122
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits57to this page, all time
The whole hunk
from line 122, old and new numbered
/
from line 122
122122
123123## Isolate subagents with worktrees
124124
125Subagents can run in their own worktrees so parallel edits don't conflict. Ask Claude to "use worktrees for your agents", or make the isolation permanent for a [custom subagent](https://code.claude.com/docs/en/sub-agents.md#supported-frontmatter-fields) by adding `isolation: worktree` to its frontmatter.
125Subagents can run in their own worktrees so parallel edits don't conflict. Ask Claude to "use worktrees for your agents", or add `isolation: worktree` to the frontmatter of a [custom subagent](https://code.claude.com/docs/en/sub-agents.md#supported-frontmatter-fields).
126126
127This subagent in `.claude/agents/` always runs in its own worktree:
127This subagent in `.claude/agents/` sets the field:
128128
129129```markdown theme={null}
130130---
No line in this hunk matches that.