CCode Story: Insights from Startup Tech Leaders
← All frameworks
InnovationRobert Brennan

Sandboxed Multi-Agent Scaling

Give every cloud agent an isolated workspace and orchestrate them in parallel

Difficulty
Advanced
Time to result
~months to results
Steps
5
Confidence
95%

Shift the developer from pairing with one local agent to orchestrating several agents at once. Run every agent inside its own sandbox, either a Docker container on a laptop or an isolated cloud workload. Give each sandbox a separate copy of the codebase, file system, and terminal. Isolation prevents an agent from deleting host files and stops concurrent agents from stepping on one another's work. Cloud execution then lets every team member run multiple agents and also supports agents not owned by a particular individual. The approach is especially suited to parallel maintenance and technical-debt work such as dependency management, vulnerability resolution, and adding type annotations. Its mechanism is independent execution plus centralized orchestration, rather than a faster version of one linear coding session.

Origin

Extracted from Code Story: Insights from Startup Tech Leaders

Core principles

  • 01Move beyond a linear one-developer-one-agent workflow
  • 02Isolate each agent's file system and terminal
  • 03Prevent agents from damaging the host or colliding with one another
  • 04Use cloud execution to make agent capacity available across the team

How to run it

  1. 1

    Select parallel work

    Identify coding or maintenance tasks that multiple agents can execute independently.

    Pro tip Dependency management, vulnerability resolution, and type annotations are examples Brennan identified.

  2. 2

    Create isolated sandboxes

    Run each agent in its own Docker container or isolated cloud workload.

    Watch out Do not let a fleet of agents operate directly on the same host file system.

  3. 3

    Separate every workspace

    Give every agent its own codebase copy, file system, and terminal so agents cannot collide.

  4. 4

    Orchestrate concurrently

    Run multiple agents simultaneously while the developer supervises their work as an orchestrator.

    Pro tip Use cloud execution when the whole team needs elastic access to multiple agents.

  5. 5

    Review and integrate

    Inspect the independently produced work before bringing it back into the shared development flow.

In the wild

Parallel technical-debt work

A team runs separate cloud agents for dependency management, vulnerability resolution, and type-annotation work. Each agent has its own sandbox, codebase, file system, and terminal rather than sharing a developer's local environment.

→ The tasks can proceed concurrently without agents stepping on one another's files or damaging the host environment.

Common mistakes

Scaling the local pairing model

Adding an agent beside one developer can make that developer faster, but it remains a linear workflow.

Sharing one workspace

Agents using the same file system can damage the environment or step on each other's work.

Is it for you?

Best for

Engineering teams running independent coding, maintenance, dependency, vulnerability, or type-annotation tasks in parallel.

Not ideal for

Work that cannot be separated safely or reviewed across concurrent agent workspaces.

From the transcript

“Maybe even dozens of agents working simultaneously, and the developer is more of an orchestrate, instead of focusing on agents that are running locally directly…”

Robert Brennan · 11:15

“We've always been primarily focused on agents that are running each in their own sandbox, whether that's a Docker container running on your laptop or…”

Robert Brennan · 11:26

“They each have their own copy of the code base, they each have their own file system, their own terminal, etc.”

Robert Brennan · 11:50

From the episode

S12 E12: The Rogue Agent Epidemic: Moving Beyond Laptop Prompts to Build a Centralized, Production-Grade AI Control Plane with Robert Brennan, Co-Founder & CEO of OpenHands

Robert Brennan

→