Repository navigation
Closed
Labels
Milestone
Description
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
- Pairs with
ComputerUseAgent(v2.0: ComputerUseAgent — multi-modal action model that drives apps via screen + keyboard #737) — risky GUI automation runs in the twin - Pairs with
SelfImprovingAgent(v2.0: Self-Evolving Agents — agents that rewrite their own prompts, tools, and routing rules #732) — config experiments live in the twin - Uses
VerifiableAgent(v2.0: Verifiable Agents — cryptographically signed audit trails of every LLM call and tool invocation #738) — every twin action signed; diff bundle to real PC is auditable
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
ComputerUseAgentreorganize files without breaking your setup - Test
SelfImprovingAgentpatches 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
docs(changelog): note SynapseKit#747 sandboxed PC Twin merge
Merge #940: sandboxed PC Twin (closes #747)