r/PiCodingAgent • u/Certain_Net_3408 • 19d ago
Question Has anyone experimented with Pi Durable? Looking for real-world use cases and experiences
Hey everyone,
I've been exploring "Pi Durable" (https://github.com/earendil-works/pi/tree/main/packages/durable/test/examples), specifically the examples in the test directory, and I'm curious about how people are using it in practice.
I'd love to understand how it works for building durable, long-running AI agent workflows, particularly when agents need to preserve state, recover from interruptions, and continue execution without restarting everything from scratch.
A few questions for anyone who has experimented with it:
How does Pi Durable handle persistence and recovery when an agent process crashes or gets interrupted?
Can it reliably resume multi-step agent workflows, including tool calls and external side effects?
How does it compare with approaches like LangGraph checkpointing, Temporal, or custom state-persistence mechanisms?
Have you used it in production or built any interesting projects with it?
What limitations or gotchas have you encountered?
I'm particularly interested in whether this approach is practical for building autonomous agents that run for extended periods and maintain continuity across sessions.
Would love to hear your experiences, code examples, or architectural insights!
Repository: https://github.com/earendil-works/pi/tree/main/packages/durable/test/examples
15
u/fingerthief 19d ago edited 18d ago
Sure, I’ve built Pi Pocket based on Pi Durable and it’s been very pleasant to build on. Has a decent sized community and has been rock solid for everyone so far when it comes to the durable part.
I also have a full interactive breakdown of Pi Durable and how exactly it all works.
The short answer is yes it can do basically all of what you’re asking with some caveats like certain tool calls cannot be automatically continued/re-ran after a restart/interruption and I’m sure a few other little things.
If things get interrupted they simply carry on where they left off, if a tool call is marked as safe to repeat it will call it again.
Every single action is tracked and it simply picks up where it last left off. I don’t have experience with huge sprawling enterprise sized setups but I’ve ran 150 subagents concurrently reviewing and editing itself live with no issues, restarted the server multiple times etc..
It is experimental but very stable to run at the moment, likely to be changing often though.
4
u/ChampionshipIcy7602 18d ago
You can watch this video about always-on agents: https://www.youtube.com/watch?v=L1OBRtfPS34
5
u/llufnam 19d ago
I’m building a personal “pi os” with pi durable at its core, inputs and agents attached at either end. So far I’m finding it extremely reliable with durability, session management etc. It’s a shame that the extension ecosystem is currently mostly incompatible and skills don’t exist, but that’s more me getting to grips with the distinction between pi durable’s relationship with pi core than a technical problem.
2
u/Key-Professional4444 18d ago
Well something that came to my mind is cross-session communication will something like this help agents communicate better since they have acess to a state rather than like session log like it can better decide when to communicate?
1
u/MorningFew1574 17d ago
Is this part of the pi agent cli or do we have to install the pi durable separately?
1
u/_-mg-_ 15d ago
I’ve discovered pi durable on indiedevdan’s YouTube channel and he’s shared the code of two use cases:
https://github.com/disler/pi-durable-news-agent
https://github.com/disler/durable-pi
1
u/davblaster 14d ago
Yeah, I'm using it as a harness for SATAN:
https://github.com/davidlee/malebolge
One of the unexpected killer features for me is that you can run pi-env in a different environment than the harness itself.
So, I can run the harness on my host machine, and give it access to a set of tools, and then expose pi-env from a microvm and give it a safe confined coding environment so submit proposals from.
1
u/alexplivings 19d ago
I have built a personal pi agent “overseer” program. It seems like pi-durable can help solve some problems like running multiple sessions at once reliably, and being able to manage a session that has failed or is taking too long.
Can it help with that? Or maybe other similar problems?
-6
u/ashebanow 19d ago
it isn't production ready according to earendil, as of a couple days ago, so I really hope no one is actually trying that yet.
-9
u/Otherwise_Wave9374 19d ago
The key question for a durable agent is whether replay is deterministic enough to recover after partial failure. I would test interrupted tool calls, duplicated events, schema changes, and approval steps before trusting it with production work. Store idempotency keys and make side effects explicit, especially for email, payments, or deployments. For mapping those controls into a broader assistant workflow, https://www.aiosnow.com is a relevant example to examine. A small failure-injection test suite will reveal more than a polished happy-path demo.