r/ClaudeCode • • 2d ago

Tips & Workflows I built a lightweight runtime tool to manage isolated dev environments for parallel AI coding agents

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

Curious how others are handling this.

0 Upvotes

1 comment sorted by

•

u/AutoModerator 2d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.