Capsule — Summary
Capsule is a WebAssembly-based runtime for executing untrusted code in isolated, resource-controlled environments — written in Rust and using wasmtime (version 29.0) as the underlying WASM engine. Functions are decorated with a @task annotation (Python) or wrapped with task() (TypeScript/JS), then compiled to WASM modules at runtime and executed inside individual sandboxes with configurable CPU (Wasm fuel metering), memory (RAM limit), timeout, and network access (allowlist). The capsule CLI compiles and runs Python or TypeScript files as WASM tasks; the Python and npm SDKs expose run() for programmatic execution. The TypeScript adapter enables calling sandboxed Python/JS code from TypeScript applications, with cold start ~1 second and ~10ms after preload. Capsule's key differentiator is WASM as the isolation primitive — not containers, not VMs — giving it cross-platform portability (runs anywhere wasmtime runs) without requiring Linux/KVM/Docker.
Differs from seeds: No seed in the catalog uses WASM for isolation. All 11 seeds are text-only agent frameworks operating at the LLM instruction layer. Capsule is the execution environment for individual function calls, not for agent sessions — the granularity is a function, not a project. The @task decorator pattern is structurally closest to serverless function annotations (AWS Lambda, Modal), not to any seed pattern. Among batch entries, Capsule is the only one with WASM-native isolation; it is the most portable (no Linux/KVM requirement) but also the most limited in what it can run (WASM-compatible code only).