Sandboxes for coding agents
A coding agent installs packages, runs tests, and starts servers. In a full Ubuntu virtual machine, each of these steps works as it does on a Linux server.
What the agent gets
- Root in a real Ubuntu system
- The agent is root in its own virtual machine. Packages that need Docker, systemd, or a kernel module install as usual.
- Fork to try two ideas
- A fork starts a new sandbox from the latest snapshot of another. Two agents can try two fixes from the same state.
- Templates with your tools
- Save a sandbox with your tools installed as a template. Each new sandbox starts from it.
Questions
Why not run the agent in a container?
A container shares the kernel of its host. A virtual machine has its own kernel, so code from the agent cannot reach the host kernel or other sandboxes.
Get your agents a workspace
Create a workspace, or copy the setup prompt and let your agent sign itself up.