Branches
Iteration that forks rather than overwrites, so earlier good states stay reachable.
History
v4 More urgent Latest
In the wild
How 2 products ship this pattern. Click a screenshot to enlarge it.

Replit Agent
Every Agent step is saved as a checkpoint with a preview; you can roll back to any one, and roll forward again, without losing later states.
Source: Replit Docs ↗

v0
Each generation in v0 is kept as a numbered version that can be viewed or restored; restoring adds a new latest version instead of overwriting history.
Source: v0 Docs ↗
When to use
Exploratory work where the fifth attempt is often worse than the second.
Seen in
ChatGPT edit-message branching, Midjourney variation trees, Cursor checkpoints, artifact version history.
For engineers
Model the session as a tree, not a list; every node needs a stable, linkable ID.
Build prompt
A neutral, component-only prompt for a coding agent. Edit the stack block or anything else to fit your project, then copy it.
Download this prompt as Markdown, or every prompt as JSON for an agent.
Critique checklist for feedback & correction
0 of 4 checked
These questions apply to every pattern in this family. Ticks are saved in this browser.