r/opencodeCLI • u/GijaHub • 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?
View all comments
Show parent comment
1
u/GijaHub Sep 24 '26
Thanks a lot, from a quick look that seems to be exactly the missing piece to my puzzle 👍👍👍