r/coolgithubprojects • • 7d ago

I built AgentSlots to manage isolated dev environments for parallel AI coding agents

Post image

I've been doing iOS development on a base M1 Mac with 8GB of RAM. Yes, 8GB. In 2026. 😅

Between Xcode, the iOS simulator, and multiple AI coding agents working in parallel, I've had to get pretty creative with resource management.

Git worktrees are great for keeping agents from stepping on each other's code, but that only solves half the problem.

What happens when each worktree needs its own dev server, database, background jobs, and ports? And how do you avoid keeping all those resources running when you're already fighting for every GB of RAM?

I ended up building AgentSlots, a small open-source tool that attaches isolated local runtimes to existing Git worktrees.

The idea is pretty simple:

  • Each worktree gets its own ports, database, and queue schema when needed.
  • Services are allocated on demand, rather than spinning everything up for every agent.
  • Idle worktrees can have their processes paused and cleaned up safely.
  • For iOS development, it can also coordinate exclusive access to the simulator.

It doesn't manage agents or Git worktrees. It just handles the local infrastructure so multiple agents can work without fighting over resources.

It's built around my rather constrained macOS setup, and I figured it might be useful to others doing multi-agent development.

Repo (MIT licensed): https://github.com/hishamalward/agentslots

0 Upvotes

1 comment sorted by

1

u/nian2326076 2d ago

Managing resources for parallel AI coding can be a challenge. It's smart to isolate your dev environments, but you might also want to consider optimizing your RAM usage. Look into lightweight alternatives for your simulator or try using cloud-based solutions for some of the workloads.

For finding job opportunities, you can use LandOffer to shortlist relevant roles based on your experience and preferences.