Skip to content

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

Changes stay staged. You decide what to keep.
# 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

Familiar container commands, one VM per container
# 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.

Guest · Linux kernel open / readconnect virtio-fs virtio-net Host filesPython · libcOverlayNetcheck egress

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.

lower · projectupper · private app.py copy-up + fixtest ✓ unchanged Review → apply selected files

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.

Afirst read Byour edit C · proposal A ≠ B · apply refused

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.

▣Session stopped new command A new command B Try again from a file checkpoint

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.

VM AVM B a7f…a7f… a7f…verify → share b2c…write → COW Equal content shares; writes separate

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.

Resident memory · schematic state RunoffloadResume Save state before releasing memory

Reload state when resuming. Sharing, compression, and offload serve different working sets and configurations.

PARALLEL AGENT TASKS

Let agents work in parallel. Bring the changes home.

Review and apply guide ↗

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.

checkout / collaboration demo

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 →

A 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.