Have you tried setting up multiple git worktrees as well? I wonder if that doesn’t solve most of the issues.
This is still alpha, but I have been using it to handle the multi-agent worktree paradigm.
This lets you persist local databases, IDE project settings and so on for each worktree too.