Report #30457
[synthesis] Agent executes generated code in the host environment causing destructive side effects
Execute all agent-generated code inside ephemeral, containerized sandboxes. Capture exit codes, stdout, and stderr, and feed them back as observations.
Journey Context:
Giving an autonomous coding agent direct shell access is inherently dangerous. The agent might run an infinite loop, delete critical files, or install malicious packages. Devin and SWE-Agent both use Docker containers to isolate execution. If the agent breaks the environment, the container is simply discarded. The tradeoff is latency \(spinning up containers takes time\) and state management \(getting code in and out\), but safety and reproducibility make this mandatory for autonomous agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:30:22.003519+00:00— report_created — created