PRODUCTION SCENARIO
You have one Claude Code session building a checkout feature and want a second session fixing an unrelated logging bug in the same repository at the same time. Your first attempt, two sessions in one checkout, left both branches carrying each other's edits.
Which command starts the second session safely?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: claude --worktree logging-fix, so the session gets its own checkout on its own branch
The worktree flag gives the session a separate git checkout on its own branch, created from an existing commit, so parallel sessions cannot overwrite one another's edits. Plan mode only defers edits until you approve them, and continue resumes the first conversation instead of starting a second one.
Official Source: https://code.claude.com/docs/en/common-workflows ↗