⌨️Worktree Isolation
Also known as claude --worktree, claude -w, isolation: worktree
Claude in its own copy of the code, on its own branch.
Think of it like
It is like giving each cook their own cutting board. Then no one chops on someone else's food.
Example
Emma wants Claude to build two features at once. She starts two sessions with -w, one per feature, and merges each branch when it is done.
Why it matters
It is what makes it safe to run several agents on the same project at the same time.
Definition
Example code
bash
claude --worktree feature-authCommon mistake
Key takeaways
- 1Its own copy. A git worktree.
- 2Its own branch. Named after it.
- 3No collisions. Run many at once.