WORKTREES
Two branches in the same repo, at the same time.
git worktree add ../proj-foo branch-foo creates a parallel folder pointing at another branch.
Useful when you want to run 2 Claudes in parallel, one on main fixing a bug, another on a feature, without the checkout dance that loses IDE state.
Hardcore, but it solves operating on more than one front.
In practice
# In the main repo:
git worktree add ../sapiens-hotfix hotfix/x
git worktree add ../sapiens-feat feat/y
# In two different terminals:
cd ../sapiens-hotfix && claude
cd ../sapiens-feat && claude
# List all worktrees:
git worktree listThis practice is part of Claude Code OS, the full blueprint of the practices that separate following a tutorial from actually working with Claude. Ler em português.