Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

smolmachines / smolvm as a sandbox for untrusted Python & JavaScript

Research: smolmachines / smolvm as a sandbox for untrusted Python & JavaScript I tasked Claude Fable 5 running in Claude Code for web with the following research task: Put https://smolmachines.com through its paces as a fast secure sandbox. Explore what it would take to use this to run untrusted Python and JavaScript code in a way that is limited in what RAM and CPU time it can take up…

Claude Fable 5, running in Claude Code for web, was tasked with thoroughly testing https://smolmachines.com as a fast and secure sandbox. The goal was to determine how to run untrusted Python and JavaScript code within this environment, limiting its access to RAM and CPU time (preventing potential infinite loops) while providing controlled filesystem access to designated files. The primary objective was to use this sandbox to execute user-provided tasks, such as data transformations.

The Claude Code for web environment, however, proved to be incompatible with smol machines. The notes from the tests revealed that this Linux 6.18.5-fc-v20 container, which serves as a Firecracker guest, had 4 virtual CPUs and 15GB of RAM. Crucially, it did not have access to /dev/kvm or the vmx/svm CPU flags for nested virtualization. As a result, attempts to run the smolvm machine within this environment consistently failed due to the unavailability of kvm.

In response to this limitation, the team devised Plan B. They leveraged GitHub Actions Ubuntu runners, which do provide access to /dev/kvm. By creating a temporary workflow on this branch, they were able to execute the comprehensive test battery and collect logs. Following the completion of the tests, they removed the workflow in the final commit. This solution effectively bypassed the environmental constraints posed by Claude Code for web, demonstrating Fable's proactive approach to overcoming obstacles.

Written by urgent.news from Simon Willison's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at simonwillison.net →

More in Tech

More from Wednesday 19 August →