Skills
LangGraph Time-Travel Debugging: Checkpoint-Based State Replay Enables Deterministic Repro of Non-Deterministic Agent Failures
LangGraph's checkpoint system (MemorySaver, SqliteSaver, PostgresSaver) snapshots full graph state after every node execution in a thread. On failure, invoke with the same thread_id to replay from the last successful checkpoint. This enables time-travel debugging — fork a checkpoint, change one variable, replay forward — making non-deterministic agent behavior reproducible and bisectable. Production agents can survive deploys and resume multi-hour workflows exactly where they left off.
Source
↳ Follow the thread