Checkpoint and resume
Saves progress after every step, so a crash means continue, not start over.
What it is
After each step the loop stores the step index, the plan and the facts gathered so far. After a crash the agent reloads them and continues from the last saved step.
When to use it
- Tasks longer than a few minutes
- Background runs
When to skip it
- Tasks under a minute: just retry them
Why (the trade-off)
Long tasks will hit restarts, timeouts and deploys. Without checkpoints every hiccup repeats all the work.
Where it sits
Memory layer, written by the loop after each step and stored with the agent's computer.
What it needs first
- Agent loopthe loop writes the checkpoints
- Cloud computer (per user)state lives with the agent's computer
What can be added to it
- builds on itBackground runsBackground runs needs it: long jobs will hit restarts
- builds on itAction ledger (check before acting)Action ledger (check before acting) needs it: it is read when resuming
Effect of adding it
- cost —
- latency —
- reliability ↑↑
- safety —
Risks it handles
- The computer crashes mid-task · full
New risks it brings
- If the crash happens after an action but before its checkpoint, resuming repeats that action
Learn first (AI Engineering)