cd /news/ai-agents/your-coding-agent-needs-a-computer-i… · home › topics › ai-agents › article
[ARTICLE · art-179251] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Your coding agent needs a computer it can break

Vakeesh, a founding member of Sandscale, outlined the company's approach to isolating AI-generated code: each agent run executes in its own Firecracker microVM with a dedicated kernel, a fresh template, an org-level egress allowlist, run-time secret injection via Vault, timeouts and size limits, and a hash-chained audit log. He argued that agent-written code should be treated as untrusted input because model errors, vague prompts, or injected instructions from READMEs and web pages can turn a 'run this command' tool into a destructive one, and noted that containers share the host kernel and offer a weaker boundary. He also acknowledged limits to what sandboxing solves.

recommendation

Isolate agent-generated code in per-run microVMs with their own kernel, restrict egress to an allowlist, inject secrets at run time instead of into prompts, and cap runs with timeouts and size limits.

more in playbook: Securing agents and AI tools
by read4 min views18 publishedDec 1, 2026

Why the code an AI agent writes should run in a sandbox of its own, and what that sandbox does and doesn't solve

A year ago, most of us used AI to suggest code. We read it, pasted it, ran it. Somewhere along the way that order flipped. Now the agent writes the code, runs it, reads the error, changes the code and runs it again, often several times before a person looks at any of it.

That loop is the reason coding agents are useful. It's also the part I want to talk about, because the loop has to run somewhere, and "somewhere" is usually a machine full of things you care about.

I'm Vakeesh, a founding member of Sandscale. We build sandboxes for agent code, so I'm not neutral. I'll try to keep this post about the problem rather than the product, and I'll be clear about where a sandbox stops helping.

We already have good instincts about untrusted input. We don't eval a string from a web form. We don't run a stranger's binary on a production box.

Agent-generated code deserves the same instinct. That's not because the agent is malicious. It's because the code is the product of a model, a prompt and whatever text the agent read along the way. Any of those can be wrong. The model can misread a task. The prompt can be vague. A README, an issue comment or a web page the agent pulled in can contain instructions that were never meant for it. When an agent has a "run this command" tool, a bad sentence can become a bad command.

So the useful question isn't "is my agent good enough?" It's "when the agent is wrong, what can its code touch?"

None of these needs an attacker. They're ordinary mistakes with a large blast radius:

.env files and browser profiles. A script that walks the filesystem looking for config will find them.git push --force on the wrong branch. A container helps with some of this, and it's far better than nothing. But a container shares the host's kernel with everything else running there, so the boundary is only as strong as that shared kernel and its configuration.

The idea we built Sandscale around is simple: every agent run gets its own box, and the box is something you can throw away.

In practice that means a few things.

A fresh start each time. The run begins from a known template, not from whatever the last run left behind. That helps safety, and it makes debugging reproducible too.

Its own kernel. Each Sandscale sandbox is a Firecracker microVM that boots its own kernel. It isn't a container sharing a kernel with other work. That's a stronger wall between the agent's code and everything else.

Nothing of yours inside by default. The box holds what you put in it: the repo, the test data, the files the task needs. Your home directory isn't there to be found.

Network you decide. On Sandscale, network access follows your plan and your organization's policy, and a sandbox can reach only what your egress allowlist allows. You make that decision once, at the org level, instead of hoping each script behaves.

Secrets that don't sit in the prompt. If a run needs a token, it shouldn't be pasted into the conversation where it ends up in logs and model context. Sandscale's Vault lets a run reference a secret that's injected at run time, so the value isn't placed in prompts or logs. It's on every plan, Free included.

Limits that end bad runs. A sandbox has a timeout and a size. A runaway loop hits the wall and stops, and the rest of your work never notices.

A record. When something does go wrong, you want to know what happened. Sandscale writes every action to a hash-chained audit log that every plan can read in the console.

Cheap s. Agents think between steps. A sandbox can and resume with its memory and files kept, and on Sandscale d time is free. You aren't paying for a box to sit and wait while the model decides what to do next.

I'd be doing you a disservice if I stopped there.

If you're running coding agents today, here's what I'd suggest, whatever tool you end up using:

If you'd like to try that with Sandscale, the Free plan is $0 a month with 100 awake vCPU-hours, 3 boxes at once and up to 2 vCPU per box. Compute runs in the US today, and Europe is coming soon. I wrote up the actual commands, from the CLI, the TypeScript SDK and MCP, in [an earlier post](https://dev.to/vakeeshmoorthy/where-should-a-coding-agent-run-the-code-it-just-wrote-14gj), and the [Quickstart](https://sandscale.dev/docs/quickstart) has the same steps.

I'd really like to hear how you're handling this now. Where does your agent's code run today, and what would you need to see before you trusted a setup like this with real work?

Best regards,

Vakeesh Moorthy, Founding Member, Sandscale

── more in #ai-agents 4 stories · sorted by recency
── more on @sandscale 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/your-coding-agent-ne…] indexed:0 read:4min 2026-12-01 · —