Pi Durable

paulsmith 304 points 37 comments October 01, 2026
earendil.com · View on Hacker News

Related: Pi 1.0 - https://news.ycombinator.com/item?id=49926069 - Oct 2026 (184 comments)

Discussion Highlights (15 comments)

lukebuehler

Very cool to see Pi build a durable agent harness too. I've been building in this space for quite some time myself [0][1] and it is a super interesting place of innovation. Less hype-y that on-your-machine coding agents, but all major players are building products in this space: LangChain Deep Agents, Vercel Eve, OpenAI Agents API, Anthropic Managed Agents, etc. 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. [0] https://github.com/smartcomputer-ai/lightspeed [1] https://github.com/smartcomputer-ai/agent-os/

ireadmevs

> The entire source code, without tests, is about 15,000 lines, which comes out to about 150,000 tokens with GPT and about 250,000 with Claude. Woah, that big of a difference when it comes to token counting?

saagarjha

Nice! I made my own version of this for Pi but I’m excited to see if I can just replace it lol

vmg12

Brilliant. I wish the the durable application state wasn't restricted to just the json documents though. There should be some sort of integrated way of implementing the outbox pattern so external stores can be synchronized with the conversation state.

rsalus

super interesting. I have so many half-considered questions... like sandboxing (it seems like it is BYO). would love to have some kind of policy engine.. perhaps an integration with https://github.com/NVIDIA/openshell in the form of an extension? also, I see most of the durability promise comes from persisting JSON documents locally and minimizing the amount of context/data kept in-memory, even during SQLite mode. while this makes sense, my own experiments with a process that relied on a JSONL-based event store have led me to prefer keeping things in-memory to avoid all the friction with I/O.. am I crazy for preferring just a straight .db file being persisted?

skeledrew

I like the multi-user bit the most. Should make it easier to build my remote control tool, as something I've had to hack around is not being able to use ACP while the TUI is active in an instance.

azuanrb

Cross-post from the 1.0 thread. I’m currently building a harness for Slack to support our on-call and support channels. It’s been working great so far. The harness is built on top of the Pi SDK. I initially used Codex, but Pi seems more hackable, and I like that it’s vendor-agnostic by default. Running it on Kubernetes works, but dealing with the JSONL session files and making sure sessions survive pod interruptions adds some complexity. I’m using DBOS for that right now, which works well, although it still feels like overkill. This came at just the right time. I’m looking forward to removing the pieces I no longer need and simplifying the architecture. Thanks Pi team!

phainopepla2

What are people using these infinitely-running agents for?

croemer

That code font is painful to read, no syntax highlighting and extremely pixelated. It's retro but an eyesore.

try-working

in Effect, please

ernsheong

This stuff is really complicated. Just trying to build a harness coordinating multiple instances of vanilla pi has been a bit of a nightmare. I'm not sure if the huge added complexity is worth it but kudos for trying and labelling as experimental.

lemming

One decision here which seems like a large break from the original pi is that Durable doesn't support branching conversation trees, it only supports conversation forks with ancestry information. Can anyone speculate (or confirm, if you happen to be Armin or Mario) why this is, and if that is necessary for the durable guarantees? The branching conversations are still an immutable data structure, so I can't see why this would be necessary, but perhaps I'm missing something.

zmmmmm

It's an interesting concept. This is half way to replicating pieces of Gastown. I like the idea, but I'm disappointed these tools still fail to address sandboxing as a first class citizen. I want to be able to declaratively set rules for what sandboxes agents execute in and mark context as tainted when untrusted etc. So far I still don't see any of these harnesses properly addressing this space. I'd be interested in knowing if it can be done through the extensibility of Pi, but since it operates directly on the trust layer, it feels like the type of thing that really needs native support.

harbefehforex

Explain this

lostmsu

> A requestId makes a submission exactly-once, so a client that retries after a crash gets the original submission back instead of asking twice. Sounds like a bug under a false assumption. Just having an ID cannot alone guarantee exactly once semantics AFAIK.

Semantic search powered by Rivestack pgvector
8,245 stories · 76,959 chunks indexed