Running Python code in a sandbox with MicroPython and WASM
Simon Willison released micropython-wasm, an alpha sandbox for safely running Python code via MicroPython in WebAssembly.
“I'd love to be able to run plugin-style code in an environment where it is unable to read unapproved files, connect to a network, or generally operate in a way that's risky or harmful to the rest of the application or the user's computer.”
Simon Willison released an alpha package, micropython-wasm, that runs Python in a WebAssembly-based sandbox with memory, CPU, and file-access restrictions, and is using it to power a code-execution plugin for Datasette Agent. It matters as a practical approach to the recurring problem of letting LLM agents and plugins run arbitrary code safely, though it remains an early-stage single-developer tool rather than a major industry shift.