Skip to content

v2.1: Sandboxed PC Twin — safe playground for destructive agent work #747

Closed

Description

@AmitoVrito

Summary

Spin up a lightweight clone of the user's environment (Docker / OrbStack / Lima / Firecracker), let the agent operate freely there, then propose verified diffs back to the real PC after passing the eval suite.

Fits the framework

Design

from synapsekit.sandbox import PCSandbox

sandbox = PCSandbox(
    base=\"current_user\",     # clone home + git repos
    backend=\"orbstack\",       # docker, lima, firecracker
    network=\"egress_only\",
    fs_overlay=True,
)

with sandbox.snapshot() as env:
    await computer_use_agent.run(\"reorganize my project directory\", env=env)
    diff = env.diff_against_host()
    if eval_suite.passes(diff):
        diff.preview_and_apply()

Components

  • PCSandbox — backend-agnostic ephemeral env
  • Backends: OrbStackBackend (mac), LimaBackend (mac/linux), DockerBackend (universal), FirecrackerBackend (linux)
  • FsOverlay — copy-on-write filesystem layer
  • DiffBundle — patch set with provenance for review
  • EvalGate — must pass before apply
  • CLI: synapsekit sandbox spawn, diff, apply, discard

Use cases

  • Try a risky refactor without polluting your branch
  • Let ComputerUseAgent reorganize files without breaking your setup
  • Test SelfImprovingAgent patches before they touch real config
  • Onboard dependencies/installers safely

Risks

  • Snapshot size on huge homes → selective copy via include/exclude rules
  • Backend availability varies by OS → Docker as universal fallback
  • Secrets in snapshot → strict env scrubbing

Acceptance

  • Snapshot a 50GB home in <30s using CoW
  • Apply-or-discard never partial-applies
  • All three backends green in CI

Activity

  1. added this to the v2.1.0 milestone on Jun 25, 2026
  2. added
    enhancement
    security
    agents
    v2.1
    on Jun 25, 2026
  3. added 2 commits that reference this issue on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentsenhancementsecurityv2.1

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions