Repository navigation
worktree: cover parallel slots and shared state - #76
Merged
Merged
Conversation
Two gaps found while cutting several worktrees for parallel work: - "Set me up three worktrees", with no work named, has no row in the argument table. Slugging the sentence yields one branch named after the request. Cut N slots on placeholder branches and hand back the rename instead. - Step 3 isolates what sits inside the checkout. Two live worktrees also contend for what the env files point at: a dev database, a dev-server port, a cache namespace. Sharing them is silent and shows up later as a migration nobody ran. Name those collisions, and keep the per-repo arrangement in the repo's own house rules. Lifted from a consumer copy (Lokale Keuze, LK-1305). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
bjvle
reviewed
Oct 2, 2026
| me up three worktrees so I can work in parallel", with no work named, is not free text to slug — | ||
| slugging the sentence yields one branch named after the request. Cut N worktrees on placeholder | ||
| branches (`wt1`, `wt2`, …), say plainly that the names are placeholders, and hand back the | ||
| rename: `git -C <path> branch -m <REAL-BRANCH>`, or `git -C <path> switch -c <REAL-BRANCH> <base>` |
Collaborator
There was a problem hiding this comment.
The rename advice undoes the skill's own safety step (Step 2):
`--unset-upstream` is load-bearing. Branching from `origin/<integration>` makes git track that remote branch, so a later `git push` would update the integration branch itself.
The following --no-track flag prevents it:
`git -C <path> switch -c <REAL-BRANCH> --no-track <base>`
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.
Why
Two gaps came up when a consumer asked for several worktrees for parallel work:
What
wt1,wt2, …), say they are placeholders, hand back the rename. No invented ticket keys.references/<repo-name>.mdinskills/,.claude/project-context.md's## Worktreesin the plugin), never derived on a hunch.From Lokale Keuze's copy of this skill (LK-1305). Their own reference file stays with them.
No
plugin.jsonversion bump. This is one of eight parallel PRs from the same consumer, and each bump would collide on the same line. Bump on merge as you prefer.Test plan
🤖 Generated with Claude Code