Build branch-isolated workspaces for coding agents
A developer used Cursor to create a macOS Electron app that keeps each coding agent in its own branch-specific workspace with a separate local IP.
- What they did
- They made Galactic, an Electron app for macOS that can run several Cursor or Claude Code agents at once. Each agent gets its own git branch and its own workspace, and the app assigns a unique loopback IP so the environments stay separate. Cursor helped with the Electron shell and interface, and in a showcase comment the developer said it also wrote the main process and an MCP server while agent mode handled the network-isolation logic.
- How it went
- The setup let parallel workspaces use the same ports without colliding, and it reduced context bleeding between branches. No timing, cost, or benchmark data was shared.
- Tips
- This is useful when you want multiple coding agents to work side by side without stepping on each other’s files or ports. Before changing anything irreversible, have the agent pause and ask for approval.
Try it yourself with Cursor
Help me design and build a [macOS/Electron] app that runs multiple coding agents in separate workspaces, one per [git branch]. For each workspace, give it its own [loopback IP or port] so two branches can run the same service without conflicts. First outline the architecture, then implement the main process, workspace setup, and the isolation logic. Stop and ask for my approval before deleting files, submitting changes, or running any destructive git command. When the app is ready, I should be able to open two branches and confirm they stay isolated from each other.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
1 more report of this
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Have agents co-build a reference system with role splits
A solo founder divided an AI-assisted build into roles and shipped a 120-model mental-models framework with an MCP server.
Let a background agent watch tasks and open PRs
A team keeps a server-based agent running so Cursor can monitor work and turn finished tasks into pull requests.
Have Claude Code try your assignment first
An instructor let Claude Code work through a homework from the prompt alone, then changed the course and grading after it finished everything.
Let a bot route review work through Cursor
A developer used Cursor as the review step in a bot-led coding workflow, and the handoff spread to more of the build process.
Use Claude Code to hunt flaky CI tests overnight
Claude Code tracked CI flakiness, isolated the worst tests, and suggested fixes while a human reviewed the changes each day.
Use Devin for one integration, one migration, and a review
Answer.AI tested Devin on three coding tasks, but the migration stalled and the security pass mixed valid findings with mistakes.