Report #65543
[frontier] Agents cannot undo destructive file changes without manual git intervention when they enter error states
Implement automatic git checkpointing before every file edit and shell command, enabling instant rollback to pre-action state via checkpoint restore
Journey Context:
Traditional agents modify files in-place; errors require manual \`git checkout\` or complex undo logic. Claude Code \(late 2024\) and Cline implement automatic git checkpointing \(git stash/create\) before every file edit, shell command, or MCP tool invocation. This creates an immutable history of the workspace state, allowing users to 'time travel' to any previous step if the agent enters a bad state, deletes important code, or produces broken builds. This pattern is becoming standard for 'agentic IDE' implementations, turning git into an agent transaction log.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:29:39.605354+00:00— report_created — created