Skip to content

chore(claude.md): warn against parallel-Claude-hostile git operations#1243

Open
John-David Dalton (jdalton) wants to merge 1 commit intomainfrom
chore/parallel-claude-rule
Open

chore(claude.md): warn against parallel-Claude-hostile git operations#1243
John-David Dalton (jdalton) wants to merge 1 commit intomainfrom
chore/parallel-claude-rule

Conversation

@jdalton
Copy link
Copy Markdown
Contributor

@jdalton John-David Dalton (jdalton) commented Apr 20, 2026

Multiple Claude sessions can run concurrently against the same checkout, parallel worktrees, or sibling clones. Document which git ops break that contract (stash, add -A, branch switching, reset --hard non-HEAD) and the safe alternatives (worktrees, surgical add).

Same change applied across the fleet to ensure consistent behavior.


Note

Low Risk
Documentation-only change with no runtime impact; risk is limited to teams misapplying the git guidance if it doesn’t match their workflow.

Overview
Adds a new "PARALLEL CLAUDE SESSIONS - WORKTREE REQUIRED" section to CLAUDE.md warning that certain git operations (e.g., git stash, git add -A/., branch switching, and git reset --hard off-HEAD) can corrupt concurrent Claude sessions.

Documents the required safe alternatives: use git worktree for branch work, stage via explicit file paths, and prefer WIP commits in a worktree over stashing.

Reviewed by Cursor Bugbot for commit dad6795. Configure here.

Multiple Claude sessions can run concurrently against the same checkout,
parallel worktrees, or sibling clones. Document which git ops break that
contract (stash, add -A, branch switching, reset --hard non-HEAD) and
the safe alternatives (worktrees, surgical add).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant