Code
Git & checkpoints
Automatic version history every turn, with diff and restore.
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:
- The commit before the turn is recorded.
- The AI makes its file changes.
- The turn ends with an automatic commit.
- The before/after pair shows in the chat as a checkpoint block.
Git operations
| Operation | What it does |
|---|---|
| Diff | Compare any two commits |
| Log | The commit history |
| Reset | Roll the workspace back to a commit |
| Checkout file | Restore 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.