Agent Infrastructure Needs Persistent State and Elastic Compute

Modal CTO Akshat Bubna explains how sandboxes, shared storage and network controls support agents at scale.

ABAkshat BubnaPonente · Modal
Canal
AI Engineer
Publicado
7 nov 2026
Vídeo
17:35
Lectura
5 min
Diapositivas
4
Original
inglés
Abrir en YouTube
Al desplazarte, el vídeo se reduce a la esquina inferior derecha y sigue reproduciéndose. Los subtítulos siguen tu idioma de lectura.
Idioma de lecturaDisponible en 2 idiomas
Este artículo aún no está en español, así que se muestra el original en inglés.
RESUMEN

En 30 segundos

An agent may need to resume work days later, briefly use many CPUs or GPUs, and share files with other agents—all without running expensive compute while idle. Modal CTO Akshat Bubna describes separating the agent’s control loop from the environment executing its tools, persisting workspace state and enforcing fine-grained network rules. Usage from Ramp’s coding agent illustrates why provisioning every sandbox for its peak would waste resources. Bubna argues that reliability, isolation and scaling deserve deliberate engineering.

  1. 1A spreadsheet of agents needs isolation and shared stateBubna describes an agent per cell, with a separate tool-execution container and shared storage for collaboration.
  2. 2Keep the workspace when the compute stopsAn accounting agent may wait days for a person; persisted state allows it to resume without paying for idle compute.
  3. 3Peak resource demands vary sharply between and within agentsRamp Inspect usage illustrates why reserving every sandbox for the highest CPU and memory peak can be uneconomic.
  4. 4Domain allowlists alone may not protect sensitive dataBubna describes credential isolation and a sidecar proxy with rules for specific operations and paths.
  5. 5Sandbox infrastructure needs reliability, security and scaleThe Modal CTO argues that rare failures, evolving security boundaries and large workloads require deliberate system design.

Conclusiones

  1. Persist workspace state separately from idle compute so an agent can resume after a human response.
  2. Separate the agent control loop from tool execution and protect the boundary between them.
  3. Size CPU and memory for changing demand rather than assuming every agent needs its peak continuously.
  4. Control network destinations and individual operations; keep credentials out of the agent’s view where possible.
  5. Expose logs, utilization and budget information to agents as well as people.
TEXTO COMPLETO

Lee el texto editado por capítulos

Solo la transcripción
01

What a spreadsheet full of agents needs

Bubna uses a financial-analysis spreadsheet to explain sandboxes, separate tool execution and shared storage. Many agents must start and stop quickly.

What infrastructure do agents actually need? Akshat Bubna, co-founder and CTO of Modal, starts with a financial-analysis spreadsheet in which each cell can be backed by its own agent. An analyst could ask a question across portfolio companies without manually repeating the work for every row.

A Modal customer has built a product along these lines, he says. The question is what happens underneath when a single spreadsheet query starts many independent agents and later brings their work together.

In the architecture he presents, each agent uses a sandbox: an isolated environment for running code. The agent loop, or harness, calls the model and decides which tools to use; the actual tool execution is separated into another container for isolation.

Agent loop, tool execution and shared storage
DIAPOSITIVA 1 / 4Agent loop, tool execution and shared storageThe diagram separates the agent harness from a sidecar running tools and shows shared volumes available to other agents.

Shared storage lets agents collaborate. For example, the agents in a spreadsheet row might share a volume, while the agent’s main container and a sidecar also share selected files. The system must start many environments quickly and release them when work is complete.

Modal builds infrastructure for AI workloads including inference, training, batch functions and sandboxes. Bubna focuses on the primitives an agent platform needs rather than the prompts that tell a model what to do.

02

Preserve workspaces and adapt resources

Agents need their working files to survive long waits without keeping compute running. CPU, memory and accelerator demand can vary substantially during a task.

Every agent needs a workspace appropriate to the job. A coding agent needs a repository, dependencies and development services; an accounting agent needs documents, work papers and scripts; a game-development agent needs its engine and assets.

The workspace also needs to survive pauses. An accounting agent may process documents, then wait days for an accountant’s response. When the person responds, the agent should resume from where it stopped without paying for compute throughout the wait.

Different kinds of persistence serve different jobs: a snapshot of the whole filesystem, a snapshot of one directory, or a shared volume. A team might preserve dependencies while updating its base image, for example, rather than treating all state identically.

CPU and memory vary across agent sandboxes
DIAPOSITIVA 2 / 4CPU and memory vary across agent sandboxesRamp Inspect data illustrates changing resource use over time and different peak requirements.

Resource requirements also fluctuate. Bubna shows CPU and memory data from Ramp Inspect, a coding agent, with substantial variation both across sandboxes and over the life of one sandbox. Compiling code or analyzing a large dataset can briefly need much more capacity.

Provisioning every environment for the highest observed peak—he gives an example around 15 CPU cores and 15 GB of memory—would be expensive. Modal’s approach, he says, is to provide resources when needed and charge for their use during that period.

Some tasks need accelerators only for certain steps. Bubna cites Claude Science, where computational work can be offloaded to a Modal sandbox when a researcher needs more CPUs or GPUs. He also mentions game design, video and 3D work as workloads that may require GPUs.

He describes agents running many training experiments, changing hardware and comparing variants as part of iterative research. The infrastructure must provide the requested resources and let the agent inspect the results of those experiments.

03

Share files while limiting access

Collaboration and memory need performant shared storage. Fine-grained network and credential controls limit what an agent can access.

As agents collaborate with subagents and people, a shared filesystem becomes part of the coordination mechanism. Bubna says it needs performance and consistency that developers can reason about. Agents can also save and update memory as files over time.

Agents can make mistakes or leak sensitive data, so control over their environment matters. Bubna lists authentication, which incoming IPs can connect, which destinations the agent can reach and how service credentials are provided.

He says a domain-level allowlist is not always enough: an organization may want to permit only specific paths or operations on a service. A sidecar proxy can enforce custom outbound rules, and he cites Ramp as an example of this pattern.

A sidecar proxy enforces network rules
DIAPOSITIVA 3 / 4A sidecar proxy enforces network rulesThe example shows separate rules for endpoints and operations on services such as GitHub and Datadog.
04

Make failures observable and design for scale

Agents need access to logs, utilization and budgets to respond to failures. Bubna argues that sandbox platforms demand careful work on reliability, security and scale.

Observability matters to the agent as well as to the human operator. If a training run fails, the agent should be able to read its logs, understand the failure and try different parameters. During a run, it may need utilization metrics and a spending budget.

Why not simply have a model generate a sandbox platform? Bubna argues that reliability, security and scale require careful engineering. Rare failures are difficult to reason about; security boundaries must be maintained as threats and systems change.

Modal’s reported sandbox storage activity
DIAPOSITIVA 4 / 4Modal’s reported sandbox storage activityThe slide shows the company’s reported snapshot and volume creation rates at the time of the talk.

At the time of the talk, Bubna reports roughly 20 million snapshots and 2.6 million volumes created per week on Modal, with about 8 petabytes of snapshot data processed daily. He gives a customer workload needing up to 10,000 sandbox starts per second and nearly a million short-lived sandboxes.

Those environments may last only a few minutes, he says, but need to become interactive in less than a second. He adds that CPU capacity can be constrained as well as GPUs, so Modal aggregates capacity across several providers.

05

Separate the agent’s decisions from its execution environments

Bubna expects agents to create, snapshot and adjust environments dynamically. He contrasts this with treating every deployment as an identical server.

Looking ahead, Bubna expects a stronger separation between the agent loop that makes decisions and the execution environments that do the work. An agent could create environments as needed, snapshot them for later and adjust their resources dynamically.

He contrasts individually managed servers with interchangeable containers, then suggests that future agents may coordinate a more varied set of environments. His conclusion is that dependable compute, storage and networking primitives give agents more room to work dynamically.

Más de este canal

7 diapositivas19:41EN
AI Engineer· 9 nov 2026A high-reliability automation starts by routing the hard cases awayMatthew Jewkes · Standard CyberneticsMatthew Jewkes describes separating critical errors, ambiguous decisions and unusual exceptions in a biopharma indexing workflow.Ingeniería de agentesWorkflow automationEvaluaciones+1
7 diapositivas22:01EN
AI Engineer· 9 nov 2026Zach Lloyd: make the software factory measurable and editableZach Lloyd · WarpWarp’s CEO proposes recording agent runs, scoring failures and testing changes to the workflow on real tasks.Fábricas de softwareAgentes de programaciónEvaluaciones+2
12 diapositivas27:35EN
AI Engineer· 9 nov 2026Uber traded an always-green trunk for faster AI-scale mergesPreetam Dwivedi, Manjari Akella · UberIts merge queue now relaxes some conflicts and validates the combined state after landing, with a verified-good fallback.Flujos de desarrollo y pruebasAgentes de programaciónInfraestructura y despliegue+2
3 diapositivas15:25EN
AI Engineer· 9 nov 2026Hassan and Omar El Mghari: When an AI financial forecast is right for the wrong reasonsHassan El Mghari, Omar El Mghari · Together AIA Costco membership-fee model passed basic checks and landed close to reported results, but an audit uncovered offsetting assumptions.IA en finanzasEvaluacionesIngeniería de agentes
3 diapositivas14:38EN
AI Engineer· 9 nov 2026Jemima Abu: Give coding agents accessibility rules from the startJemima Abu · CAISA product engineer shows how semantic HTML, reusable components and explicit agent skills can help teams build more usable interfaces.Agentes de programaciónProducto y UXAgent skills
4 diapositivas21:12EN
AI Engineer· 9 nov 2026Tom Moor: Give coding agents the product context that code cannot showTom Moor · LinearLinear’s workflow carries customer requests, past decisions, review history and human feedback from intake through implementation and review.Agentes de programaciónProducto y UXIngeniería de agentes