Skip to content
June 2, 2026•Engineering

How we run secure agent sandboxes in the browser

An exploration into WebAssembly execution limits, browser security bounds, and virtualized micro-containers.

Running developer code inside the browser has traditionally been risky due to process execution security concerns. At VibeSite, we solved this isolation requirement using WebAssembly sandboxing.

1. WebAssembly Process Isolation

Instead of compiling directly on host environments, the workspace processes run inside WebAssembly virtual machines (Wasm VMs) isolated inside the browser runtime. This ensures that any command executed by an agent (e.g. running scripts, compilations, or lints) is restricted to VM boundaries.

2. Secure System Call Mapping

Typical operating system commands require filesystem write or network socket calls. VibeSite translates these system queries into browser-controlled APIs. For instance, file access requests are redirected to sandboxed virtual file systems, preventing access to host OS directories.

3. Local Approval Gates

Even with sandboxed runtimes, execution actions such as writing files or making whitelisted external HTTP calls require explicit developer approval checkpoints. The local verification gate validates commands before execution.