smolmachines / smolvm as a sandbox for untrusted Python & JavaScript
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Developers wanting to sandbox untrusted LLM-generated code now have a tested recipe for smolvm via GitHub Actions, though only in environments exposing /dev/kvm.
Simon Willison had an AI assistant evaluate smolmachines, a service that runs untrusted Python and JavaScript code inside a tiny virtual machine, a secure container where code cannot hog memory, spin forever, or touch the network. The AI, called Claude Fable 5, found the sandbox wouldn't run inside its own workspace because that workspace lacked virtualization support, so it cleverly rerouted the tests to GitHub's cloud runners instead. This matters mainly to developers who run user-submitted code and need to keep it isolated.
Willison tested whether the smolmachines sandbox (built on smolvm micro-VMs) can safely execute untrusted Python and JavaScript for tasks like data transformations, with CPU, RAM, network and filesystem limits. The practical finding: it requires /dev/kvm, which means standard container environments won't work, GitHub Actions runners will. Teams considering this tool should budget for that infrastructure constraint.
smolvm `machine run` requires /dev/kvm; Willison's Claude Code for web container (itself a Firecracker guest with 4 vCPUs, 15GB RAM, kernel 6.18.5-fc-v20) exposed no vmx/svm flags, so nested virtualization failed with 'kvm not available'. Claude Fable 5's workaround ran a full smolvm test battery, CPU/RAM caps, no-network, designated-filesystem checks, via a temporary GitHub Actions workflow, since ubuntu runners expose /dev/kvm.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
smolmachines smolvm Claude Fable 5 Claude Code GitHub Actions Simon Willison
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.