Running two Claude Code sessions in one repository at once

CCAR-F Claude Code Configuration & Workflows Easy Question 1 of 59

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?

Show answer and explanation

Aclaude --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.

Source: code.claude.com/docs/en/worktrees

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 59 original CCAR-F practice questions