Comment by manmal
Have you tried setting up multiple git worktrees as well? I wonder if that doesn’t solve most of the issues.
Have you tried setting up multiple git worktrees as well? I wonder if that doesn’t solve most of the issues.
One thing that I’ve found works well is to permanently have a few numbered branches checked out as worktrees, keep them up to date with main, and then when you want to do a task in parallel you just pick an existing branch rather than creating and deleting worktrees every time.
This lets you persist local databases, IDE project settings and so on for each worktree too.
https://github.com/stravu/crystal
This is still alpha, but I have been using it to handle the multi-agent worktree paradigm.
I have, but I just found that a bit tedious to manage manually. Maybe another version of this script would just be to automatically create a worktree, run a prompt in that, and then have the script manage the results, and clean up the worktree at the end.