12 pages for worktreecreate.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…file is loaded into context | Audit which instruction files load | | `WorktreeCreate` | No | Yes | Git worktree created | Track isolated workspaces | | `WorktreeRemove` | No | Yes | A worktree created…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…| "ElicitationResult" | "ConfigChange" | "DirectoryAdded" | "WorktreeCreate" | "WorktreeRemove" | "InstructionsLoaded" | "CwdChanged" | "FileChanged" | "MessageDisplay"; ``` ### `H…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…moved out of a hook-created worktree gets the instruction; with no [`WorktreeCreate` hook](/docs/en/hooks#worktreecreate), the copy edits in place. A copy moved out of your worktree is also told neve…
Claude Code changelog
Claude Code CLI · in the page
changelog
…ws **37 bug fixes** * Fixed quitting removing a worktree made by a `WorktreeCreate` hook without asking when it may hold unpushed commits * Fixed the `fable` (and `best`) model alias erroring on the…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…laude/</C></>, <>Git-only: if you configure a <A href="/docs/en/hooks#worktreecreate">WorktreeCreate hook</A> for a different VCS, this file is not read. Copy files inside your hook script instead</>,…
Commands
Claude Code CLI · in the page
commands
…uns tests, and publishes its change. Requires a git repository or a [`WorktreeCreate` hook](/docs/en/worktrees#non-git-version-control) that creates the worktrees. Outside a git repository, `/batch` r…
Hooks reference
Claude Code CLI · in the page
hooks
…Denied as a side branch from PermissionRequest for auto-mode denials, WorktreeCreate, WorktreeRemove, Notification, ConfigChange, InstructionsLoaded, CwdChanged, FileChanged, and DirectoryAdded as sta…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…on disk. The `matcher` field specifies which filenames to watch | | `WorktreeCreate` | When a worktree is being created via `--worktree`, `isolation: "worktree"`, or for a background session. Replace…
Continue local sessions from any device with Remote Control
Claude Code CLI · in the page
remote-control
…[git worktree](/docs/en/worktrees). Requires a git repository or a [`WorktreeCreate` hook](/docs/en/hooks#worktreecreate). • `session`: single-session mode. Serves exactly one session and rejects add…
Claude Code settings
Claude Code CLI · in the page
settings
…eckout until `EnterWorktree` is called. Outside a git repository, a [`WorktreeCreate` hook](/docs/en/worktrees#non-git-version-control) that fails releases the block so the session can edit the workin…
Run parallel sessions with worktrees
Claude Code CLI · in the page
worktrees
…ules apply to worktrees Claude created with git. For a worktree your [WorktreeCreate hook](/docs/en/hooks#worktreecreate) created, see [WorktreeRemove](/docs/en/hooks#worktreeremove) instead. * **The…
Changelog
Claude Documentation · in the page
cowork/changelog
…sions failing with a "path contains control characters" error when a `WorktreeCreate` hook prints status output before the path. **Cowork** * Fixed an occasional "Something went wrong" error when a…