<p>I've been experimenting with different approaches to running code in a sandbox for several years now, but my latest attempt feels like it might finally have all of the characteristics I've been looking for. I've released it as an alpha package called <a href="https://github.com/simonw/micropython-wasm">micropython-wasm</a>, and I'm using it for a code execution sandbox plugin for <a href="https://github.com/datasette/datasette-agent">Datasette Agent</a> called <a href="https://github.com/data
This is a high-value, first-hand technical contribution. It solves a critical problem for AI agents and plugin architectures: safe, lightweight, and resource-constrained code execution. The use of MicroPython in WASM is a clever architectural choice that bypasses the complexity of full CPython or JS engines.