Agent rollback
Agent rollback is the pattern of restoring an agent's state to a previous checkpoint when the current trajectory has gone wrong — letting it try a different approach without starting over.
In more detail
What it means
Long agent loops occasionally make a wrong call that cascades into a dead-end. Rollback lets the orchestrator detect the dead-end (via no-progress detection, critic feedback, or explicit error) and restore the agent's state to a previous checkpoint — usually one made before the wrong call — and continue with a different action. Implementations vary: LangGraph's checkpointing + replay, custom state snapshots, transactional databases of agent state. Rollback is the difference between an agent that recovers and one that burns all its budget on a single failed path.
Part 1 of 2
When to use it, and when not
Use it for
- Long agent loops where a single wrong step cascades.
- Agents that interact with versioned external systems (filesystem, DB).
Part 2 of 2
Common mistakes
- Rolling back without a different strategy — the agent repeats the same mistake.
- No checkpointing strategy — there's nothing to roll back to.
FAQ
Questions readers ask.
What is agent rollback?
Agent rollback is the pattern of restoring an agent's state to a previous checkpoint when the current trajectory has gone wrong — letting it try a different approach without starting over.
When should you use agent rollback?
Long agent loops where a single wrong step cascades. Agents that interact with versioned external systems (filesystem, DB).
What are the common mistakes with agent rollback?
Rolling back without a different strategy — the agent repeats the same mistake. No checkpointing strategy — there's nothing to roll back to.
Last updated: 2026-06-01. Raw markdown: https://promtable.com/glossary/rollback.md. Found a mistake? Tell us.