Report #23829
[synthesis] Agent directly modifies user's working files with no rollback path, making every edit a potential point of no return
Implement a shadow workspace pattern: agent explores changes in a separate copy, branch, or staging area. User reviews before merging to real workspace. For terminal commands, dry-run where possible. Only apply to the real workspace after explicit confirmation or automated test passage.
Journey Context:
When an agent modifies files directly, every edit is irreversible without manual git intervention. Users don't want to commit after every agent step, and git is too coarse-grained for incremental agent work. The shadow workspace pattern lets the agent freely experiment — run tests, make edits, observe results — without risking the user's visible state. This pattern appears across successful products: Cursor's shadow workspace feature, VS Code's proposed edits API that shows changes before applying, Replit's agent checkpointing, and Aider's git-based undo. The tradeoff is implementation complexity: maintaining two filesystem views and a merge/review mechanism. But the alternative — direct mutation — breaks user trust immediately when the agent makes a wrong edit. The key insight: agents need freedom to experiment, users need safety guarantees. Shadow workspaces provide both by decoupling exploration from commitment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:24:22.336272+00:00— report_created — created