Fighting agent context drift on hour-long tasks: checkpoint files and handoff notes

Wezabis2 · reddit · 2026-11-24

A Reddit practitioner shares lessons from running agents on tasks that take an hour or more, where the recurring failure is context drift: the agent starts with a clear plan, then forgets constraints or repeats finished work after several tool calls and long outputs. Two things that helped: a checkpoint file the agent updates every few steps recording the goal, decisions made, and open items; and starting a fresh session with a short handoff note instead of letting one session degrade. The open question is checkpoint granularity — too short and the next session guesses, too long and it eats the context you were trying to save. He asks how others handle it: summarize, restart with a handoff, split the task, or something else entirely.

Original post →

More from coding & agent

coding & agent channel →