parallel
2 questions
- AI
How do I run two Claude Code sessions on the same repo at once?
The --worktree flag creates an isolated git worktree for each session so they do not share staged changes or dirty files. Each session gets its own branch, its own .claude/ state, and cleans up automatically if it produces no commits.
- AI
Should I spawn subagents or build an agent team?
Subagents report to one parent and work independently. Agent teams share a mailbox and task list, letting teammates message each other directly. The experimental flag, display mode options, and the absence of /resume for in-process teams are the deciding details.