Claude Code v2.1.50 ·
Agent Worktree Isolation Option
EntryKind: in v2.1.50,
ChangesSection of the release
What
Agents can now specify an isolation field to run in an isolated worktree.
Usage
Agents can be configured with isolation: "worktree" to run in a temporary git worktree or hook-based worktree for isolated work.
Details
- Creates an isolated copy of the repository for the agent to work on
- Supports both Git worktrees and custom hook-based worktrees
- Useful for agents that need to make changes without affecting the main working directory
Evidence
Isolation parsing in agent frontmatter (search for "isolation", "Isolation mode")
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.50 →