作者亲自解读 Pi Durable:怎么做到断点恢复的
This is a dev post classified by AGK Intelligence as AI dev tools (a tutorial), kept by the Dev Radar because it carries real work, not commentary.
作者亲自解读 Pi Durable:怎么做到断点恢复的 终端里的 Pi,崩了没关系,敲一句 continue 就行。但如果 Agent 跑在 Slack、内存受限的手机上、或部署到会被回收的 serverless 环境后,旁边就没人敲 continue 了。它得能被重新拉起,从断点恢复,还不能忘掉做过什么。 Pi Durable 把会话里每个动作都表达成带阶段的任务:先记录接下来要做什么,执行这个 effect,把结果持久化,再进下一阶段。所有状态变化按顺序串行提交,提交后才算数;模型一次回复发起的多个工具调用各自成为任务,可以并行跑。 它刻意不用事件溯源。常见 harness 把每个 token、每次工具调用都写成事件,几千条记录的编码会话够用,但一个要在 Slack 频道活五年、几千人参与的 bot 撑不住。 Pi Durable 改存 JSON 文档:监听者先拿整份快照,之后只收 delta,文档带版本号、可迁移,演讲里说这是为跑十年的 agent 准备的。存储只是一个简单接口,SQLite、Postgres、Cloudflare Durable Object、JSONL 都能接。 进程任意时刻被杀,重启后打开同一个存储说 resume,没完成的任务会被读出来续跑。这里有个讲究:bash 这种不可重放的工具不会再执行,而是在转录里标记成因进程消失被中断,把结果交给模
Posted by yibie (6.1k followers) 9 days ago · 43 likes · 1.4k views · view the original post on X. Kept by the Dev Radar as AI dev tools.
More dev work like this
- GPU Speed of Light Roofline Analysis with NVIDIA Nsight Compute! #BigData #Analytics… — @gp_pulipaka
- Optimization Algorithm! #BigData #Analytics #DataScience #AI #MachineLearning #IoT #IIoT… — @gp_pulipaka
- Grok Bot is getting VERY good at being the BOSS of other AI tools. — @MarioNawfal
- Can you trust your AI agent to make the same decision twice? — @Gartner_inc
- Machine Learning with TensorFlow! #BigData #Analytics #DataScience #AI #MachineLearning… — @gp_pulipaka
- AI 写小说这事儿,有人直接做成了流水线,GitHub 上已经揽下 3.4K Star! — @bkdgiffug
- This is what India deserves, built with no grants and no subsidies. — @ShubhamMal72313
- The Google AI Edge Gallery team built a 100% offline language learning app with… — @antigravity
Every post is read and classified by AGK Intelligence: what it is, which market it belongs to, and whether the link is a real tool. 13.4k posts from 5k X accounts over the last 21 days, 10.1k tools, 12 markets. New posts are collected several times an hour and the full ranking is recomputed every hour — last update 2026-11-25 18:41 UTC. Full method.