Search the documentation
5 pages for exitworktree.
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
…| EnterPlanModeInput | EnterWorktreeInput | ExitPlanModeInput | ExitWorktreeInput | FileEditInput | FileReadInput | FileWriteInput | GlobInput | GrepInput | ListMcpResourcesInput |…
Claude Code changelog
Claude Code CLI · in the page
changelog
…had been read with offset/limit before resuming a session * Fixed `ExitWorktree` failing with "no active EnterWorktree session" after resuming a session with `--continue`/`--resume` in print/SDK mo…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…`, `WebSearch`, `TodoWrite`, `Skill`, `ToolSearch`, `EnterWorktree`, `ExitWorktree`, `Monitor`, `TaskStop`, `SendMessage`, and `Artifact`. Claude Code removes every other built-in tool from a backgrou…
Tools reference
Claude Code CLI · in the page
tools-reference
…| Yes | | `ExitWorktree` | Exits a worktree session and returns to the original directory. Not available to subagents that already ru…
Run parallel sessions with worktrees
Claude Code CLI · in the page
worktrees
…nt SDK. Back inside the worktree, Claude can still exit it with the [`ExitWorktree`](/docs/en/tools-reference) tool. Before returning the session to its worktree, Claude Code verifies that the worktr…