{"slug": "your-coding-agent-needs-a-computer-it-can-break", "title": "Your coding agent needs a computer it can break", "summary": "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.", "body_md": "*Why the code an AI agent writes should run in a sandbox of its own, and what that sandbox does and doesn't solve*\n\nA 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.\n\nThat 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.\n\nI'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.\n\nWe 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.\n\nAgent-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.\n\nSo the useful question isn't \"is my agent good enough?\" It's \"**when the agent is wrong, what can its code touch?**\"\n\nNone of these needs an attacker. They're ordinary mistakes with a large blast radius:\n\n`.env` files and browser profiles. A script that walks the filesystem looking for config will find them.`git push --force` on the wrong branch.\nA 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.\n\nThe idea we built Sandscale around is simple: **every agent run gets its own box**, and the box is something you can throw away.\n\nIn practice that means a few things.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**Cheap pauses.** Agents think between steps. A sandbox can pause and resume with its memory and files kept, and on Sandscale paused time is free. You aren't paying for a box to sit and wait while the model decides what to do next.\n\nI'd be doing you a disservice if I stopped there.\n\nIf you're running coding agents today, here's what I'd suggest, whatever tool you end up using:\n\nIf 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.\n\nI'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?\n\nBest regards,\n\nVakeesh Moorthy, Founding Member, Sandscale", "url": "https://wpnews.pro/news/your-coding-agent-needs-a-computer-it-can-break", "canonical_source": "https://dev.to/vakeeshmoorthy/your-coding-agent-needs-a-computer-it-can-break-52o9", "published_at": "2026-12-01 09:34:01+00:00", "updated_at": "2026-12-01 09:43:16.117620+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-infrastructure", "developer-tools"], "entities": ["Sandscale", "Vakeesh", "Firecracker"], "also_reported_by": [], "takeaway": "Run each coding-agent execution in a disposable Firecracker microVM with its own kernel, a fresh template, an org-level egress allowlist, run-time secret injection, and timeouts, since containers share the host kernel and a bad command can reach .env files or force-push the wrong branch.", "recommendation": {"advice": "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.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/your-coding-agent-needs-a-computer-it-can-break", "markdown": "https://wpnews.pro/news/your-coding-agent-needs-a-computer-it-can-break.md", "text": "https://wpnews.pro/news/your-coding-agent-needs-a-computer-it-can-break.txt", "jsonld": "https://wpnews.pro/news/your-coding-agent-needs-a-computer-it-can-break.jsonld"}}