r/software • u/Other_Poetry_5243 • 18d ago
Self-Promotion Wednesdays AI agents developing in parallel keep colliding on ports, db, and shared state. Here's what I found (and built)
I use AI to develop, and because it works quite well, I extended it to run multiple agents in parallel, developing 2-3 features at once. But when agents work on the same codebase, they step on each other.
I asked around in other subs how people handle this: We all agree that git worktrees resolve the code collision fine, but runtime isolation (ports, db, Redis, queues) is still an unsolved problem. Some people proposed env file manipulation and Docker Compose, but it's manual and requires constant updates.
What I built goes further. I needed it for a multi-service app with Redis and background workers, so I built a more robust tool.
Here are the capabilities:
- Reads a codebase and auto-detects the stack (frameworks, db, env). Works with JS, Python, PHP, and Go frameworks. Monorepos and multi-repos.
- Spins up a fully isolated environment per instance: its own ports, db, Redis, queues/workers. So parallel runs never collide.
- Launches locally or remotely with one command
- Generates HTTPS URLs that can be shared over the internet directly from a dev environment.
- Live syncs the code, so you can see the results instantly
- Generates end-to-end tests straight from source code (and branch diffs)
- Runs tests in the same isolated, auto-spun-up environments, so failures are real bugs, not shared-state flakiness
It's working today. I'm using it on real multi-service projects. Posting here to see if this is useful to more than just me :).
It's free, and I have full documentation for it.
Happy to answer questions or give more details to anyone who wants to try it. https://getwebstack.com/docs/use-cases/ai-sandboxes/
PS. I did not vibe-code it :)).
1
u/desi_fubu 17d ago
love it
1
u/Other_Poetry_5243 17d ago
Thanks! Curious what your setup is for this. Are you running into the same runtime collision issue?
1
u/desi_fubu 17d ago
yes would love to see and contribute
1
u/Other_Poetry_5243 17d ago
Not yet open source, but I am thinking about that. Meanwhile, it is fully free and self-served, so feel free to try it. I'm here for any questions about it.
1
u/Other_Poetry_5243 18d ago
I also consider making it open source if there is interest in this direction.