Report #50678
[synthesis] Why do autonomous coding agents often break the developer's local environment or create unrecoverable states during execution?
Architect the agent to run in an ephemeral, sandboxed container \(e.g., Docker\). The agent should only interact with the host system by outputting a final git patch or diff. Implement a strict loop: Write code -> Run command in sandbox -> Observe stdout/stderr -> Update code.
Journey Context:
Agents that execute shell commands or modify files directly on the host machine inevitably run destructive commands \(e.g., rm -rf, mutating databases\). Devin and SWE-Agent demonstrate that true autonomy requires isolation. The container provides a safe space for the agent to test, fail, and revert without user intervention. The tradeoff is setup latency \(building the container\) and lack of access to local secrets or servers, but this isolation is mandatory for trust. The host acts purely as an observer until the agent submits a PR.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:32:46.022415+00:00— report_created — created