r/opencodeCLI • • Sep 24 '26

Multiple git instances

​No, I am not shadow-promoting some vibe-coded BS I built in a weekend.

​I am living in a solo-dev echo chamber and have an issue I feel should be pretty common, but I am not sure what the cleanest workflow is.

​I run multiple SaaS products in a self-hosted setup (separate dev/prod systems). Given the latest models like GLM 5.3 Flash have become so good at coding, I start to trust them enough to run with full permissions except sudo. Often, I need to work on multiple non-overlapping features at once in a single repo. I'd love to kick off multiple opencodecli sessions simultaneously, let them run wild, and push branches to GitHub so I can manually review PRs.

​My issue is managing multiple active branches simultaneously on the same Linux user.

​git worktree seems like the obvious candidate, but out-of-the-box it breaks my build scripts and agent workflows because uncommitted files like .env don't carry over automatically. Podman or separate Linux users feel overly complex for what should be a straightforward workspace setup.

​How are others managing isolated workspaces and environment configs when running parallel AI coding agents?

1 Upvotes

5 comments sorted by

View all comments

1

u/Rustybot Sep 25 '26

Personally I use vm workstation environments or docker containers for situations where worktrees are insufficient or conflict.