II.
OutputModeChange overview
Reference · liveoutput-mode-change:claude-code-enter-worktree-example
output-mode-change:claude-code-enter-worktree-example overview
EnterWorktree flips CWD to the worktree path; system-prompt env_info block, memory file caches, and plans-directory cache must recompute against the new CWD.
Attributes
changeKind
worktree-enter
fromMode
main-checkout
toMode
worktree
scope
session
requiresUserApproval
true
invalidatesCaches
- system-prompt-sections
- memory-file-caches
- plans-directory
description
EnterWorktree flips CWD to the worktree path; system-prompt env_info
block, memory file caches, and plans-directory cache must recompute
against the new CWD.
Outgoing edges
mode_change_triggered_by_tool1
- tool-descriptor:claude-code-enter-worktree·ToolDescriptorEnterWorktree (Claude Code worktree-mode entry tool)
Incoming edges
emitted_mode_change1