Git worktree
A second working directory attached to the same repository, so two agents can work on different branches at once without clashing.
Updated November 23, 2026
git worktree add ../feature-b feature-b checks out another branch in another folder, sharing the same history. Running one agent per worktree is a simple way to parallelize work on one repository.