Repository navigation
docs(#1192): investigation — native WorktreeCreate/WorktreeRemove hooks vs worktree-isolation.ts (decision: partial) - #1402
Merged
admarble merged 5 commits intoOct 10, 2026
Conversation
…be, R1-R9 mapping, decision partial Co-Authored-By: Claude Opus 5.5 <[email protected]> Entire-Checkpoint: d8d26d04cee7
…p filed as #1407 Entire-Checkpoint: 43d2c356b66b
…ation-worktrees-can-native-worktreecreate-
…ation-worktrees-can-native-worktreecreate-
…ation-worktrees-can-native-worktreecreate-
admarble
deleted the
feature/1192-investigation-worktrees-can-native-worktreecreate-
branch
October 10, 2026 15:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Docs only. This adds
docs/investigations/native-worktree-hooks-2026-10.md. It maps each responsibility ofsrc/lib/worktree-isolation.tsto a nativeWorktreeCreate/WorktreeRemovecapability, using headless probe runs on Claude Code 2.1.296.Decision: partial. Use native
isolation: "worktree"for creating parallel-group sub-worktrees, with noWorktreeCreatehook. Keep merge-back, cleanup and reporting inworktree-isolation.ts. Upstream anthropics/claude-code#47548 has been closed since 2026-06-12, and the probe confirms the parent branch no longer moves.Fixes #1192
Acceptance criteria
WorktreeCreatehook runs (payload included).## Decisiongives partial, with rejected alternatives. #47548's state on 2026-10-10 is recorded (CLOSED,closedAt 2026-06-12).Follow-up ledger
/execSKILL steps.documentfinding, "P5 (WorktreeRemovenever fires headless) has no surviving artifact": fixed in this PR. The runner re-ran the probe on Claude Code 2.1.296:WorktreeRemove0,SubagentStop2,SessionEnd1. The changed agent worktree was left in place and the unchanged one was removed natively. Recorded in the note's "P5 re-probe" section.Runner verification (graph-2026-10-freeze, wave 2)
<tmp>/<home>placeholders, with no session ids or private repo names.🤖 Generated with Claude Code