Vibeleaderboard
← All Intel
Intel / article

SPACE separates agent sessions from the sandboxes that run them

Source
perplexity.ai
Author
Perplexity
Date

Context

Perplexity built SPACE ( Platform for Agentic Code Execution) as the sandbox layer under Perplexity Computer. It starts from the view that agent sessions break the assumptions behind container sandboxes. According to the engineering post, containers usually expect short-lived, stateless jobs and depend on a shared kernel that is a single point of failure. An agent session instead builds up hours of , a working filesystem and running processes, and its code should be treated as untrusted. So each SPACE sandbox is a virtual machine with its own guest kernel. If a workload exploits its own guest kernel, the compromise stays inside that VM instead of spreading to other workloads. A daemon inside the VM is the only sanctioned channel to the platform, and all outbound traffic is forced through a network gateway. Credentials sit in a store outside the sandbox. They are injected at the network layer or auto-filled by a , so they never enter the sandbox.

The second problem is keeping a session's state without making every pause or restart expensive. A scheduler takes frequent disk snapshots and less frequent full checkpoints of the paused VM. A disk snapshot can roll the filesystem back to undo a destructive command. A full checkpoint lets a crashed sandbox resume from a recent running point instead of a cold disk. When a sandbox is suspended, its checkpoint is uploaded to object storage and only counts as restorable once every piece has arrived, so any node can bring it back. This is cheap because the on-node filesystem, btrfs, is copy-on-write: a new sandbox or snapshot shares existing data and stores only what changes. Perplexity says it ran SPACE alongside its previous sandbox provider on the same production traffic during launch week. Median sandbox creation time fell from 185 to 60 milliseconds, and the 90th percentile fell from 447 to 89 milliseconds. The post says 100% of Computer sessions now run on SPACE.

Three months later Perplexity open-sourced SPACE under the Apache 2.0 license. In that announcement it describes each agent task getting its own Firecracker microVM, with credentials and outbound traffic still controlled from outside the VM.

Terms in this piece · Glossary
  • Sandbox — An enforced restriction that confines a process to specified files, network destinations and other resources, applied by the operating system, a container or a virtual machine.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • Browser automation — Programmatic operation and inspection of a rendered web interface.
  • Agent sandbox — An isolated runtime with explicit limits for agent-executed work.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source www.perplexity.ai
More from Perplexity
Recommended reads