Docs
Start building
Code

Git & checkpoints

Automatic version history every turn, with diff and restore.

1 min read · 3 sections

Code keeps a git history of your workspace automatically, so every AI turn is a checkpoint you can diff against or restore. A bad change is one click of undo, not a lost working state.

Automatic checkpoints

Every AI turn is bracketed by commits:

  1. The commit before the turn is recorded.
  2. The AI makes its file changes.
  3. The turn ends with an automatic commit.
  4. The before/after pair shows in the chat as a checkpoint block.

Git operations

OperationWhat it does
DiffCompare any two commits
LogThe commit history
ResetRoll the workspace back to a commit
Checkout fileRestore a single file from a commit

History panel

The history panel lists commits in order, with a short SHA, message, and date. Click a commit to see its diff; restore to roll back to it. Because checkpoints are automatic, "undo that last change" is always one click away, even across multiple turns.