Should be doable with worktrees. Claude Code has a flag for that, others probably do too.

Yes, this; git worktree is a pretty standard solution, straightforward to leverage in any IDE or AI harness worth its salt.