PRODUCTION SCENARIO
One Claude Code session is building a checkout feature in your repository. You want a second session on an unrelated logging bug at the same time, started as new work rather than a continuation of the first conversation, and both sessions have to write files while the other is running. Both also need the repository's own hooks, skills and CLAUDE.md loaded. Your first attempt, two sessions in one checkout, left each branch carrying the other's edits.
Which command starts the second session?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: claude --worktree logging-fix, which adds a second checkout on its own branch
A worktree is a separate working directory with its own files and branch that shares the repository's history, so two sessions can edit at once without landing in each other's files. Resuming is the right command when the second session picks the first conversation back up, and this is separate work. Plan mode is right when a session should investigate and propose rather than write, and this one has to write. Bare mode is right for a scripted run that must behave identically on every machine, which is why it skips the repository's hooks and CLAUDE.md; here both are required.
Official Source: https://code.claude.com/docs/en/worktrees ↗