PolicyVisor
A container runtime optimized for agent workloads¶
Run containers with familiar Docker CLI commands. Review staged edits with pVisor's agent commands.
- Stronger isolation: Each container has its own Linux kernel, keeping the agent's tools separate from host processes and other containers.
- Lower memory use: With page sharing enabled, VMs running the same tools can use one copy of identical pages.
- Faster tool startup: Lazy images load content on demand, so an agent can start a tool before the whole image downloads.
pip install pvisor-sandbox
Or install with Homebrew
brew tap DeepLink-org/formula https://github.com/DeepLink-org/Formula.git
brew install DeepLink-org/formula/pvisor
Homebrew and native installation guide
Linux x86_64 · Apple Silicon macOS
Installation and prerequisites
# Run your agent with staged writes
pvisor spawn --safe \
--pass-env ANTHROPIC_API_KEY -- claude
# Review the file changes
pvisor review last --diff
# Keep the paths you choose
pvisor apply last --path src
Agent experiments → You review → Accept selected files
Try the offline staging demo (no model account required). The commands above need Claude Code authentication and platform staging support. Complete task tutorial
# Pull an image and start a separate VM
pvisor pull alpine:3.20
pvisor run -d --name demo \
alpine:3.20 sleep 600
# Execute, inspect logs, and clean up
pvisor exec demo echo hello
pvisor logs demo
pvisor stop demo
pvisor rm demo
Experimental Docker-compatible command subset; limited Compose support, no Docker Engine API. See supported commands
WHY PVISOR
Review the changes before you accept them.
You can describe a failing test before you know which files need changing. Every permission prompt asks you to stop your own work and reconstruct what the agent is doing.
Staging retains file changes for review. Set access boundaries up front, let the agent edit and test within them, then inspect the diff and bring selected files back into your project.
Start where you work
01 ↗Your tools and project are already on the machine. Let the agent use them.
On Linux, a transparent VM reads the host environment through virtio-fs and keeps its own kernel. Images provide a fixed base when needed.
Keep edits in a stage
02 ↗Edit, run tests, and adjust. The agent gets real feedback throughout.
With staging enabled, programs immediately see edits in the private upper layer. You review them before applying them to the project.
Check before applying
03 ↗When you edit the project too, an older proposal must not overwrite your work.
Record a baseline when content is first observed and check the target before apply. Stop on conflict, then retest the files you accept.
Keep an execution
04 ↗Keep the current file proposal while trying another approach.
Host workspace forks start a new command from a stopped Session. Resuming execution uses a VM checkpoint with the required state support.
Share beyond templates
05 ↗Independently started VMs may load the same Python runtime and libraries.
Shared snapshots reuse an existing baseline. An opt-in page pool finds and verifies equal resident pages at runtime; writes separate through COW.
Release memory while paused
06 ↗An idle VM can preserve its execution state and offload memory.
Reload state when resuming. Sharing, compression, and offload serve different working sets and configurations.
An independent kernel
Each Docker-style container gets a Linux VM, using KVM or Hypervisor.framework for hardware virtualization.
08 ↗Check before connecting
OverlayNet checks VM egress before the host opens a socket. Remote effects need controls before execution.
09 ↗Read images on demand
Choose an image for fixed dependencies. A shared cache supplies read-only content as files are needed.
10 ↗Review with the record
Check the outcome, access records, and file diff together to assess whether the task meets your requirements.
PARALLEL AGENT TASKS
Let agents work in parallel. Bring the changes home.
Agents edit and test in separate stages while you keep working in the original project. When their results are ready, review the diffs, check for conflicts, and accept the changes you need.
Money, stock, and coupon fixes write to private stages. Your edit causes a conflict with the older money proposal. Retry from the current project, review and accept selected files, then test the combined result.
Read the workflow →Executions & acceptance
Sessions & stages
Coordination
checkoutA browser simulation of Host Sessions and staged files, with example coordination and test output. File forks start from stopped Sessions; acceptance follows review. Network access has separate policy controls. File-fork requirements ↗
Three separate experiments, each with its own configuration and sample size. Conditions and full tables are in benchmarks.
Manage containers and review task results
Platform integration: execution environments for inference, evaluation, and RL post-training, plus a local daemon for supported OpenSandbox / E2B SDK protocol subsets. Deployment and integration
File changes can be reviewed and accepted or dropped. Remote calls, database writes and sent messages are outside apply/drop and stay in effect.
Try the commands Installation and prerequisites OpenSandbox / E2B SDK What the boundary covers