<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vakeesh Moorthy</title>
    <description>The latest articles on DEV Community by Vakeesh Moorthy (@vakeeshmoorthy).</description>
    <link>https://dev.to/vakeeshmoorthy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4270279%2F0c0f01eb-437a-430f-8f6e-201441f8e4cb.png</url>
      <title>DEV Community: Vakeesh Moorthy</title>
      <link>https://dev.to/vakeeshmoorthy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vakeeshmoorthy"/>
    <language>en</language>
    <item>
      <title>Where should a coding agent run the code it just wrote?</title>
      <dc:creator>Vakeesh Moorthy</dc:creator>
      <pubDate>Sat, 28 Nov 2026 07:27:45 +0000</pubDate>
      <link>https://dev.to/vakeeshmoorthy/where-should-a-coding-agent-run-the-code-it-just-wrote-14gj</link>
      <guid>https://dev.to/vakeeshmoorthy/where-should-a-coding-agent-run-the-code-it-just-wrote-14gj</guid>
      <description>&lt;p&gt;Coding agents don't just write code now. They run it, often before a person has read it.&lt;/p&gt;

&lt;p&gt;The question I keep coming back to is simple: &lt;strong&gt;where does that code run, and what can it touch?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'm Vakeesh, a founding member of Sandscale, so this is not a neutral review. I'll describe the problem, show the official commands for starting a Firecracker microVM sandbox, and be plain about the limits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat generated code as untrusted input
&lt;/h2&gt;

&lt;p&gt;If an agent can run a command, that command can reach whatever the environment can reach: files, credentials, the network. A laptop, or a container that shares a kernel with other work, makes that radius large.&lt;/p&gt;

&lt;p&gt;A reasonable default is to treat agent-generated code the way you'd treat any other untrusted input, and give each run a hard boundary.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Isolation&lt;/th&gt;
&lt;th&gt;Trade-off&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Run it on your laptop&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;It can see local files and credentials&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A shared container&lt;/td&gt;
&lt;td&gt;Shared kernel&lt;/td&gt;
&lt;td&gt;You accept container-escape risk&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A microVM per run&lt;/td&gt;
&lt;td&gt;Its own kernel&lt;/td&gt;
&lt;td&gt;You need a way to start and manage that box&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Try it with the CLI
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;sandscale&lt;/code&gt; CLI runs on macOS and Linux. Windows is coming soon. It installs per user, in &lt;code&gt;~/.sandscale/bin&lt;/code&gt;, with no admin rights, and checks the download against release checksums first.&lt;/p&gt;

&lt;p&gt;Install, from the &lt;a href="https://sandscale.dev/docs/quickstart" rel="noopener noreferrer"&gt;Quickstart&lt;/a&gt; and &lt;a href="https://sandscale.dev/docs/reference/cli" rel="noopener noreferrer"&gt;CLI reference&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://sandscale.dev/install &lt;span class="o"&gt;|&lt;/span&gt; sh
&lt;span class="c"&gt;# or with Homebrew&lt;/span&gt;
brew install sandscale/tap/sandscale
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sign in, then start a sandbox and run a command. These lines are from the &lt;a href="https://sandscale.dev/docs/reference/cli/sandbox" rel="noopener noreferrer"&gt;sandbox CLI reference&lt;/a&gt;, which is generated from the CLI itself. Template names depend on what your organization has set up, so run &lt;code&gt;--options&lt;/code&gt; first. &lt;code&gt;python-3.12&lt;/code&gt; and &lt;code&gt;sbx_9&lt;/code&gt; are the examples in the docs; replace the ID with the one you get back.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sandscale login
sandscale sandbox start --options
sandscale sandbox start --template python-3.12 --ttl 1h --network none
sandscale sandbox &lt;span class="nb"&gt;exec&lt;/span&gt; sbx_9 -- python -V
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--network none&lt;/code&gt; is an example from that page. Network access follows your plan and your organization's policy, and a sandbox can reach only what your egress allowlist allows. The docs do not say the network is off by default.&lt;/p&gt;

&lt;p&gt;To send a folder, run a command, stream the output and (without &lt;code&gt;--keep&lt;/code&gt;) stop the sandbox afterwards:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sandscale sandbox run --sync . -- make &lt;span class="nb"&gt;test&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When you're done with a box you started:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sandscale sandbox stop sbx_9
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also pause and resume a sandbox, which keeps its memory and files. That works on every plan, in the console or through the API / TypeScript SDK. I did not find pause or resume commands in the CLI reference. Paused and idle time between tool calls is free; only awake vCPU-hours count.&lt;/p&gt;

&lt;h2&gt;
  
  
  Or start one from the TypeScript SDK
&lt;/h2&gt;

&lt;p&gt;This is the Quickstart example, copied as published. The TypeScript SDK needs Node.js 22 or later. Create a personal API key in the console (it starts with &lt;code&gt;nia_&lt;/code&gt; and is shown once; every key expires within 90 days), then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;SANDSCALE_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;nia_...
npm install @sandscale/sdk
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save this as &lt;code&gt;hello.mjs&lt;/code&gt; and run &lt;code&gt;node hello.mjs&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Sandscale&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@sandscale/sdk'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sandscale&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Sandscale&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// reads SANDSCALE_API_KEY&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;box&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;sandscale&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sandboxes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;timeoutSeconds&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;sandscale&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sandboxes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;box&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'echo hello from a sandbox'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;region&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;box&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;region&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;onStdout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'exit code'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exitCode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;finally&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;sandscale&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sandboxes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stop&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;box&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;region&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;box&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;region&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Python SDK is coming soon.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect a coding agent over MCP
&lt;/h2&gt;

&lt;p&gt;Sandscale's MCP server is at &lt;code&gt;https://mcp.sandscale.dev/mcp&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For Cursor, in &lt;code&gt;~/.cursor/mcp.json&lt;/code&gt; (&lt;a href="https://sandscale.dev/docs/quickstart" rel="noopener noreferrer"&gt;Quickstart&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"sandscale"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://mcp.sandscale.dev/mcp"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For Claude Code, signing in to the remote server is coming soon. Today, connect it through &lt;code&gt;sandscale mcp&lt;/code&gt;, the local server that comes with the CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sandscale login
claude mcp add sandscale -- sandscale mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Codex, VS Code, Windsurf and others can add a remote MCP server at the same address. Vault values are never offered to a model.&lt;/p&gt;

&lt;h2&gt;
  
  
  What sits around the box
&lt;/h2&gt;

&lt;p&gt;These are product facts from the site and docs, not extra claims:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Secrets live in Vault and are injected at run time, not placed in prompts or logs&lt;/li&gt;
&lt;li&gt;DLP on prompts and tool calls, on every plan&lt;/li&gt;
&lt;li&gt;Human approvals, and a kill switch for the organization&lt;/li&gt;
&lt;li&gt;A hash-chained audit log of every action, which you can read in the console on every plan. Exporting that log is a Team and Enterprise feature&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Honest limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Compute is in the United States (N. Virginia) now. Europe is coming soon. There is no Asia region yet. If you need the workload to stay in your own cloud, Enterprise can run in your own AWS account; self-hosted and air-gapped deployments are available on request.&lt;/li&gt;
&lt;li&gt;Free is $0/month, with 100 awake vCPU-hours, 3 boxes at once, and up to 2 vCPU per box. Pro and up need a payment method.&lt;/li&gt;
&lt;li&gt;The CLI is macOS and Linux only; Windows is coming soon.&lt;/li&gt;
&lt;li&gt;We have not published a SOC 2 report.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you try it, I'd like to hear where you run agent-generated code today and what you'd need to trust a setup like this for real work.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://sandscale.dev?utm_source=devto" rel="noopener noreferrer"&gt;https://sandscale.dev?utm_source=devto&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
