How I keep agents running for days without them forgetting what they were doing
A practitioner shares their full loop for multi-day agent runs: before the context window fills, the agent writes its state to a checkpoint file (current work, done, next), marks uncertain items as Unknown instead of guessing, and a fresh session reads it back — with live state always winning over the checkpoint on conflicts. Commenters suggest making checkpoints diffs rather than snapshots for faster state recovery.