Here is a scenario every developer using Claude Code, Cursor, or Aider knows too well:

You prompt your AI agent across 7 iterations. Turns 1 to 6 are solid—models are written, database queries work, and tests pass. On Turn 7, you ask for a minor optimization. The agent goes rogue, touches 12 files, breaks imports, and introduces a nasty regression.

Now you're stuck:

git restore . fixes the bug, but destroys all the good work from Turns 1 to 6.

git commit after every turn fills your Git log with 15 junk commits ("fix typo", "try again", "revert previous").