FG—01AI Design Field Guide

Search the field guide

Search chapters, principles, patterns, worksheets, and glossary terms

PTN—37

Checkpoints & branches

Give long AI sessions save-points: restore to before a bad turn, or branch to try an alternative without losing the original.

Undo is built for keystrokes; AI sessions need save-points built for turns. One agent message can rewrite six files, and one bad prompt can send a document somewhere it takes ten minutes to notice and an hour to unwind. Checkpoints make the session’s history addressable: every consequential state change gets a marker, and any marker can be restored. The unit of recovery matches the unit of damage — a turn, not a keystroke — which is what a generic undo stack never gives you.

Restore has to be honest about its blast radius. “Restore to checkpoint 4” must state what it reverts — which files, which edits, which conversation turns — because a restore that silently takes the person’s own work with it converts the safety net into a second hazard. Cursor’s checkpoint restore earns trust precisely because it is scoped and stated: the workspace returns to the moment before that agent message, and you knew that before you clicked.

Branching is the offensive use of the same machinery. Restore says “that was wrong”; branch says “what if we tried it another way, without betting the original.” Exploratory work with AI is naturally tree-shaped — two tones for the email, two architectures for the feature — and forcing that tree through a linear session means every experiment overwrites the incumbent. A branch preserves the original by construction, so trying the alternative costs nothing but the attempt.

The tree only works if you can see where you are in it. The current branch needs a visible label, the checkpoint markers need to live in the transcript where the turns are, and getting back to any prior state needs to be one click. A history that exists but cannot be navigated is an archive, not a control — people will re-do work by hand before they will spelunk for a restore point they cannot see.

Anatomy

Fig. 01Checkpoints & branchesLive specimen

Session · campaign email

Branch · main draft
  1. Turn 1Drafted the spring tune-up campaign email

    Checkpoint 1
  2. Turn 2Rewrote the offer as an $89 flat rate

    Checkpoint 2
  3. Turn 3Added an urgency line — “this week only”

Every consequential change drops a checkpoint. Nothing here overwrites.

A session timeline with restorable checkpoints and a labeled branch — recovery and exploration on the same machinery.

  1. 1Checkpoint markers. Every consequential state change gets a marker in the timeline, created automatically — not on request.
  2. 2Scoped restore. Restore is one click and states exactly what it reverts before it does — files, edits, turns.
  3. 3Branch label. The current branch is named and visible, so you always know which version of the work you are in.
  4. 4Preserved original. Branching copies forward instead of overwriting — the original survives every experiment by construction.

When to use

Design considerations

Pitfalls

In the wild

Cursor
Creates a checkpoint at each agent message and offers one-click restore of the workspace to the state before that turn — scoped, stated, and in the transcript.
ChatGPT
Editing an earlier message forks the conversation into a new branch while keeping the original reachable through the version toggles on that turn.
Figma
Branching lets designers explore an alternative on a copy of the file and merge or discard it later — the original is never the experiment.
Claude
Artifacts keep prior versions as the AI revises them, so an over-eager rewrite can be stepped back to any earlier state of the document.

Principles served