Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
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 |… Hooks reference Claude Code CLI · in the page hooks …emove the worktree during a session, and Claude removes it with the [`ExitWorktree`](/docs/en/tools-reference) tool * A session that [`claude remote-control`](/docs/en/remote-control#start-a-remote-co… Create custom subagents Claude Code CLI · in the page sub-agents …`, `WebSearch`, `TodoWrite`, `Skill`, `ToolSearch`, `EnterWorktree`, `ExitWorktree`, `Monitor`, `TaskStop`, `SendMessage`, and `Artifact`, plus [`SubagentHandback`](/docs/en/tools-reference) for a sub… Tools reference Claude Code CLI · in the page tools-reference …anMode` | Presents a plan for approval and exits plan mode | Yes | | `ExitWorktree` | Exits a worktree session and returns to the original directory. Not available to subagents that already run in the… Run parallel sessions with worktrees Claude Code CLI · in the page worktrees …h from. 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…
Feedback