Erik Bernhardsson on why AI-written code must run but never escape
Modal CEO Erik Bernhardsson explains how code sandboxes — isolated places where model-written code can run but cannot escape — went from a quiet 2023 side project to a roughly $300M business once models got good enough to write whole apps, and why they are becoming a foundational primitive of AI software.
AI Applications Need a New Set of Building Blocks
<strong>The new era of AI software runs on a new set of infrastructure primitives</strong> — inference, training, and sandboxes — and Modal is betting its $750M round on supplying them.
you really kinda need a new set of building blocks for all these phases
Execute Code, But Don't Escape
<strong>A sandbox is an isolated place to run model-generated code — it can execute, but it cannot escape the sandbox</strong>.
to control these agents in a way where they can execute code but not escape
From Side Project to a $300M Business
<strong>Sandboxes sat flat from 2023 until models could write whole apps</strong>, and then demand exploded into a roughly $300M run-rate business.
until about two years later with, I think, Sonnet 4.5 or one of those models that really could output, like, full apps.
More Than Hacking
<strong>Sandboxes started as a way to test what agents can hack, but became a foundational primitive for building coding models</strong> — training runs and internal tools alike.
Sandbox is really becoming more than just, you know, a way to test these agents' hacking.
Cheaper Tokens, More Demand
<strong>Every drop in token prices creates more demand, not less</strong> — cheaper inference pulls more work onto the whole platform.
as token prices drop, it just creates so much more demand for these things.
A Full Computer for the Agent
<strong>The next step is a full virtual computer for the agent</strong> — Modal's new VM sandboxes hand an agent a real Linux machine to run long tasks.
agents are getting more and more capable at controlling computers.