Modal's Sandboxes Give Agents a Whole Machine to Break

Giving an AI agent the ability to run code is easy. Giving it somewhere safe to run that code is not. On October 1, 2026, Modal Labs released full VM sandboxes for agents, which hand each agent a complete computer it can use to run code and tools without touching anything it should not. It is an infrastructure release, not a model release, and it addresses one of the more stubborn problems in the agent story.
The problem is simple to state. An agent that can only talk is harmless. An agent that can act needs somewhere to act, and the places it might act, from a production database to a developer's own machine, are exactly the places you cannot afford to let it break. Sandboxes try to solve that by giving the agent a disposable world where a mistake costs nothing but a restart.
Why a container is not always enough
Most agent runtimes already isolate code in some form, often a container. Containers are good at keeping agents from wandering outside their box, but they share a kernel with the host and can leak in ways that matter when the thing inside is unpredictable. A full virtual machine is heavier but stricter: the agent gets its own operating system, its own filesystem, and its own network view, and the isolation holds at a lower level.
For an agent doing ordinary work, the difference may never show. For an agent running arbitrary generated code, fetching from the internet, or installing dependencies, the difference is the whole point. The sandbox is not there to make the agent faster. It is there so that when the agent does something unexpected, the blast radius is a single disposable machine.

The trend behind the release
Modal's timing reflects a broader shift. Agents have moved from demos to pipelines, and once they are in pipelines they get real permissions. The moment an agent holds credentials, the question of where it runs becomes a security question rather than a convenience one. That is why the last few months have produced a steady stream of sandbox, permission, and governance tools. The industry is building the boring parts that make agents deployable.
There is an irony worth naming. The model gets the headlines, but the layers that decide whether agents are trustworthy are the ones made of ordinary engineering. Memory systems that keep context across sessions, sandboxes that contain mistakes, consent protocols that record what a user agreed to: none of these are impressive in a demo, and all of them are what separates a toy from something a company will actually run.
What to ask before adopting a sandbox
Not every sandbox is equal, and the questions are practical. How fast does one start, since a slow cold start turns every agent call into a wait. What can the agent reach, and can that be locked down per task. What happens to the state when the job ends, and how much of it is logged. Does it survive untrusted code reliably, or is it tuned for well behaved scripts. The answers decide whether the sandbox is a real boundary or a formality.
The strongest sandboxes assume the code inside will be hostile or broken, and are designed so that neither outcome escapes. That is a different design goal from a development environment meant to be poked at. For agent work, the assumption of hostility is the correct one, because generated code is unpredictable by nature and agents take their instructions from sources you do not fully control.
How this fits the rest of the agent stack
A sandbox is one piece of a larger argument about agent infrastructure. Agents need memory so they can pick up where they left off, permissions so they only touch what they should, and somewhere to run so that their mistakes stay contained. Each of those is a separate concern, and each has produced its own wave of tools over the past year. Sandboxes are the containment piece, and they matter more as agents get more autonomy.
That is the trend line. Early agents ran one step at a time with a human approving each move. The direction of travel is toward agents that run longer, take more actions, and need less supervision. The more autonomy an agent has, the more it needs a boundary that does not depend on a human catching it. A full VM is a heavier tool than a container, and the reason to pay for that weight is precisely to stop depending on supervision.
There is also a cost dimension that rarely gets discussed. Sandboxes make it cheap to try things, not just safe. An agent that can spin up a fresh machine, break it, and throw it away treats failure as free. That changes how an agent can work: it can be more experimental, test more approaches, and recover from dead ends without a human cleaning up. Containment and experimentation turn out to be the same feature seen from two angles.
A test for any sandbox
Before adopting one, run a simple experiment. Give the agent a task that requires installing an unfamiliar package, fetching something from the internet, and writing to disk. Then watch what the sandbox can see. Can it reach your internal network by accident. Does a crashed job leave anything behind. How long does a fresh instance take to start. These questions are quick to answer and they reveal whether the isolation is real or cosmetic.
Then break it on purpose. Feed the sandbox code that tries to escape, that spawns background processes, that sits in a loop. A good sandbox treats all of these as expected and contains them. A weak one will either hang, leak, or fall over. The willingness to test this way is itself the mark of teams that take agent security seriously, and it is far cheaper than discovering the limits in production.
Why this matters more than it looks
The bottleneck on useful agents has shifted from intelligence to trust. Models are capable enough to do a lot of real tasks, and the reason they are not doing more of them is that people are not comfortable handing over the keys. Sandboxes are one of the tools that change that comfort level, because they let a cautious operator run an agent in a mode where the worst case is contained.
Releases like this will never trend on a news feed. They are the plumbing that determines whether the ambitious agent demos of the past year turn into things that run on a Tuesday without anyone watching. If you are building with agents, this is the layer to spend your attention on, because the agent that cannot be contained will not be trusted, and the agent that is not trusted will not be deployed.
Turn ideas into images with ChatPicture
60 free credits every day. Generate, edit, and download — no prompt engineering degree required.
Related articles
"An Orange Sea Silhouette Loaded With Fate": One Prompt That Breaks a Mood Into Parameters
On November 19 and 20, Xiaohongshu and Douyin filled up at the same time with the "orange sea silhouette." Most of the people posting it were not standing in a sunset. They handed one photo to Doubao and got back a 3:4 vertical mood poster. The whole atmosphere had been broken into a dozen plainly written parameters.
Google replaced the model behind Search, and the number that moved was a shell benchmark
Gemini 4 Hydrogen became the default on 12 November, taking over from Gemini 3.8 Flash across Search, the Gemini app and the developer API. It runs about 2.5 times faster, scores 57% on Terminal-Bench 4.1 where its predecessor scored 18.2%, and costs $1.50 in and $7.50 out per million tokens.
Three ways a coding agent wastes money, measured on 30 repositories
TokenEconomizer watches what an agent did in a repository you work in often, then stops it from rediscovering the same build command, loading tools it never uses and looping on one error. Across five agent and model combinations it cut mean cost by 18.4% to 30.9%, cheaper in all 30 repository cells, with Pass@1 up in four of five.
ChatPicture
Start generating
Generate production-ready AI images for e-commerce, design, and film.