BoxAgnts Introduction (3) — WebAssembly Sandbox BoxAgnts has implemented a WebAssembly (WASM) sandbox as the security foundation for its AI agent platform, using Wasmtime from the Bytecode Alliance as the runtime engine. The sandbox provides 11-dimensional control over agent permissions, including filesystem isolation through host-to-guest directory mapping, network access whitelisting with wildcard pattern matching, and IP blacklist support for blocking private network ranges. WASM's instruction-level isolation verifies every memory access during execution, offering millisecond startup times and approximately 1MB memory overhead compared to seconds and 50MB+ for Docker containers. When an AI Agent possesses file read/write, Shell execution, and network access capabilities, who guarantees it won't do harm? The severity of this problem should not be underestimated. In traditional architectures, AI tools run directly on the host machine with the same system permissions as the user. This means: BoxAgnts' answer is in the bottom layer — the WASM security sandbox . This is not an optional "security enhancement," but the trust foundation of the entire system. Among numerous sandbox technologies, BoxAgnts chose WebAssembly — a mature technology validated by billions of browsers. | Comparison | Docker Container | VM Virtual Machine | WebAssembly Wasmtime | |---|---|---|---| | Startup Speed | Seconds | Minutes | Milliseconds | | Memory Overhead | ~50MB+ | ~500MB+ | ~1MB | | Isolation Granularity | Process-level | Hardware-level | Instruction-level in-sandbox verification | | Cross-platform | ✅ | ❌ | ✅ | | Near-native Performance | ✅ | ❌ | ✅ Cranelift JIT | | Embeddability | Requires Docker Daemon | Requires Hypervisor | Library-level embedding | WASM's instruction-level isolation means every memory access instruction is verified within sandbox boundaries. This is not a post-hoc check — it's hardware-assisted bounds checking during execution. BoxAgnts chose Wasmtime from the Bytecode Alliance as its runtime engine, one of the most mature and performant WASM runtimes available today. BoxAgnts' sandbox configuration is not a simple "on" or "off" — it's an 11-dimensional control panel: pub struct RunOption { pub work dir: Option