by lukebuehler · 2mo ago · 0 comments
The main reasons are:
1) they are "durable", i.e. easier to make long-running in an unattended way, and easier to implement recovery, monitoring, etc
2) separating the harness from the compute brings safety and scaling benefits
3) easier to make multi-player.
I like your structured concurrency approach with tasks, which is similar to how I do it in Lightspeed too.
Also, the durable state implementation as documents is elegant! Question, though: why directly write/read to the store, why not abstract it and do more of a reducer/redux pattern and hide the persistence of the documents?
The good thing is that this more low level API can be easily papered over with a nice sugary thing.
We tried so many things. At one point it pulls in so much more complexity. At one point we had half of automerge's proxy system in there. In the end we felt like this is a reasonable line to draw, but we will see!
Pi-durable makes pi a good acquisition target for Cloudflare - nothing like durable objects (with containers no less) really exists in other clouds. Wonder what the_mitsuhiko thinks about this.
> acquisition target for Cloudflare
Once it gets acquired, it won't be any better than all the others.
Pi is alright but it's only virtue so far is being the Neovim of harnesses, minimal yet (incredibly) extensible. That being said it's still early days and unclear how the whole landscape regarding agentic stuff will play out at various different levels. For example I prefer stuff like Claude Code and Pi but I've seen a friend use Kiro at work with some crazy workflows all basically structured around Markdown files, spec writing, ingesting tickets from Jira and then validating/testing the code written automagically.
fwiw, celld is seeing a rush of building around it:
https://tlockney.github.io/celld-book/
https://noite.now/ https://github.com/kentcdodds/kody-celld
https://celld-operator.io/ https://ewhauser.github.io/celld-operator/
So, it'll be interesting to see if these durable agent setups need more of a complete product approach, or if people want to compose them as libraries.