Just getting started with worktrees, does .env need manually creating each time?

Hi, worktrees seem useful to isoloate the agents, but I’m getting a bit confused..

In order to preview the changes, the process seems to be(NextJS app):

  • Start new agent in worktree
  • Open worktree in terminal
  • make / copy .env info
  • pnpm i
  • pnpm dev

Is that right?

@mwjt42 Yes, that is right! However, I believe there might be solutions that could automate that for you. I’ve seen some, but don’t remember where.
I think you can ask AI to build a simple tool that would do that for you :slight_smile: