MemoryPatternValidated

Checkpoint

Also called: save point, resume point

A checkpoint is a deliberate save point holding enough state to resume a task from there. It turns a long run from something that either finishes or is lost into something that can be picked up.

James Phoenix
Understanding Data Updated July 26, 2026

Long agent tasks fail in the middle. The window fills, a tool errors, a rate limit hits, or the answer drifts far enough that you want to stop and restart. Without checkpoints the only options are to continue a session you no longer trust, or to start again from nothing.

A checkpoint is a written point you can resume from: what has been done, what is left, and what a fresh session would need to know.

What belongs in one

The test is simple: could a new session, with no history, continue from this alone?

Markdown
## Checkpoint: migrate auth to the new session store

Done
- session table created and migrated
- read path switched, tests passing

Next
- switch the write path
- delete the legacy cookie handler

Watch out
- legacy handler is still referenced in two admin routes
- staging has stale sessions; clear before testing

The "watch out" section is the part people leave out and the part that saves the most time. It is the accumulated context that is expensive to rediscover.

Where to put them

  • Before anything risky. A migration, a wide refactor, a destructive command.
  • When the window is filling. Checkpoint, then clear, rather than compacting and hoping the summary kept the right things.
  • At natural boundaries. End of a subtask, a passing test suite, a green build.
  • In git. A commit is a checkpoint with the code attached, which is why committing more often than feels necessary works so well with agents.

What it is not

A checkpoint is not a transcript. Saving the whole conversation and calling it a checkpoint recreates the original problem, because resuming means re-reading everything. The value is in the compression: a good checkpoint is short enough to read in fifteen seconds and complete enough to act on.

Note
Checkpoints and externalized state overlap but differ in intent. Externalized state is the durable record of a task; a checkpoint is a snapshot aimed at resumption. In practice a well-maintained state file makes checkpointing nearly free.

Related terms

Engineering context for real systems?

Getting the right information into the window at the right time is most of the job. If you want that thinking applied to your product, that is what I do.

See how I can help