Headless sessions now support the --worktree flag, letting you run operations in a separate git worktree.
--worktree