A field guide to sandboxes for AI

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story. The source provided limited text, so this summary is brief.

Why it matters

Safely running untrusted AI-generated code is a live problem for anyone building agents, and this guide maps the four isolation technologies available to do it.

Read this as

Simon Willison points readers to a detailed guide by Luis Cardoso about 'sandboxes', secure containers for running code you do not trust, such as code written by AI. The guide explains four isolation levels: containers sharing the host kernel, microVMs with their own kernel, gVisor userspace kernels, and WebAssembly runtimes. It also surveys the tools available. Willison calls safely running untrusted code one of 2026's most important problems.

Willison endorses Luis Cardoso's guide to AI code sandboxing as comprehensive, covering the trade-offs between containers, microVMs, gVisor and WebAssembly isolation. For teams letting agents execute code, choosing an isolation approach is a 2026 security priority, and this piece surveys the existing tool landscape. No vendor comparisons, pricing or product recommendations are given, it is a curated link, not an evaluation.

Cardoso's guide distinguishes four sandboxing tiers: containers sharing the host kernel, microVMs using hardware virtualization with a guest kernel, gVisor's userspace kernel interception, and WebAssembly/isolate runtimes constraining everything inside the runtime itself. It covers terminology, approaches and the existing tool landscape. Willison frames safe execution of untrusted code as a defining 2026 problem. No benchmarks or specific tool evaluations are included.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Luis Cardoso Simon Willison gVisor WebAssembly Pyodide Datasette

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading