Search the documentation
10 pages for enterworktree.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…nput | CronDeleteInput | CronListInput | EnterPlanModeInput | EnterWorktreeInput | ExitPlanModeInput | ExitWorktreeInput | FileEditInput | FileReadInput | FileWriteInput | GlobInpu…
Claude Code changelog
Claude Code CLI · in the page
changelog
…e resuming a session * Fixed `ExitWorktree` failing with "no active EnterWorktree session" after resuming a session with `--continue`/`--resume` in print/SDK mode * Fixed the workflow agent grid s…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…Read when Claude creates a git worktree via <C>--worktree</C>, the <C>EnterWorktree</C> tool, or subagent <C>isolation: worktree</C></>, description: <>Lists gitignored files to copy from your…
Claude Code settings
Claude Code CLI · in the page
settings
…tree's `HEAD`, not the main checkout's. Applies to `--worktree`, the `EnterWorktree` tool, and subagent isolation | `"head"`…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…kEdit`, `WebFetch`, `WebSearch`, `TodoWrite`, `Skill`, `ToolSearch`, `EnterWorktree`, `ExitWorktree`, `Monitor`, `TaskStop`, `SendMessage`, and `Artifact`. Claude Code removes every other built-in too…
Tools reference
Claude Code CLI · in the page
tools-reference
…| No | | `EnterWorktree` | Creates an isolated [git worktree](/docs/en/worktrees) and switches into it. Pass a `path` to switch into…
Week 19 · May 4–8, 2026
Claude Code CLI · in the page
whats-new/2026-w19
…code>head</code>) controls whether <code>--worktree</code>, the <code>EnterWorktree</code> tool, and agent-isolation worktrees branch from the remote default branch or local <code>HEAD</code>; the def…
Week 21 · May 18–22, 2026
Claude Code CLI · in the page
whats-new/2026-w21
…lets background sessions edit the working copy directly without <code>EnterWorktree</code>, for repos where worktrees are impractical</div> <div>Markdown output renders GFM task list checkboxes, a…
Week 28 · July 6–10, 2026
Claude Code CLI · in the page
whats-new/2026-w28
…orts Anthropic-operated public gateway endpoints</div> <div><code>EnterWorktree</code> asks for confirmation before entering a git worktree outside the project's <code>.claude/worktrees/</code> di…
Run parallel sessions with worktrees
Claude Code CLI · in the page
worktrees
…"work in a worktree" during a session, and it creates one with the [`EnterWorktree`](/docs/en/tools-reference) tool. Once in a worktree, Claude can switch directly to another one under `.claude/workt…