sothatsit 3 days ago

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.

  • nojs 2 days ago

    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.

stavros 3 days ago

It does, yes, and it's what Claude Code recommends officially.