How I keep agents running for days without them forgetting what they were doing

Reddit r/AI_Agents News

Summary

作者分享让 AI 代理长时间运行而不丢失状态的做法:在上下文窗口写满前将工作状态保存到检查点文件,新会话读回检查点继续工作,并通过带验证的完成项来解决伪造完成的问题。

After my last post here a lot of you asked how the agents keep track of work across long runs, so here's the full loop. Before the context window fills, the agent writes its current state to a checkpoint file: what it's working on, what's done, what's next. Anything it couldn't capture gets written as "Unknown" instead of guessed. Then the session gets cleared and a fresh one reads the checkpoint back. The checkpoint is reference only, so if it disagrees with the live state, the live state wins. The part people pushed on most last time was fake "done" claims, and that's still the weak spot. The agent writes its own done list. What I'm moving toward is done items that carry a check, like a command or a URL, which the next session runs before trusting the claim. Long-term stuff like decisions and corrections lives separately in plain markdown in git, so a clear costs context but not knowledge. How are you all handling the fake done problem?
Original Article

Similar Articles

How many agent sessions can you run before you lose track of the work?

Reddit r/AI_Agents

作者提出评估 AI agent 使用水平的新视角:能否在并行运行多个 agent 会话的同时仍掌握工作全局。文章强调任务边界、看板状态、交付约定以及定时任务可见性的重要性,指出代理数量翻倍若带来翻倍的监督和整理成本,说明工作流仍需改进。