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.

Done with CursorClaude Code· Advanced· Apr 2025

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.