🤖Pi Durable Ships, A Solid Foundation for Agentic Apps
Pi Durable: A New Framework for Agentic Applications
TL;DR
Pi Durable, a framework for building agentic applications, ships with 15,000 lines of code. It's designed for long-running, durable agents and includes storage backends, a Node execution environment, and more.
Pi Durable, a framework for building agentic applications, ships today, marking Pi as a solid foundation for developers. This framework is built for long-running, durable agents that can run anywhere, making it ideal for complex, multi-step tasks. Pi Durable shares code and principles with Pi the coding agent, including minimalism and malleability. The entire source code is about 15,000 lines, with storage backends alone taking up 3,000 lines. It includes memory, SQLite, and JSONL storage, plus a conformance suite and benchmarks for custom backends. Pi Durable also has a Node execution environment, allowing tools access to local files and remote execution environments. Each conversation can run in a different place, and a root conversation remains the same after every restart, ensuring continuity. Pi Durable stores checkpoints before moving on to the next step, allowing for survival of crashes and continued execution from the last checkpoint. Queued messages are still queued after a crash, and a requestId ensures exactly-once submission, preventing duplicate requests.

Key Points
Pi Durable ships with 15,000 lines of code, about 150,000 tokens with GPT and 250,000 with Claude.
Storage backends alone in Pi Durable are 3,000 lines, including memory, SQLite, and JSONL storage.
Pi Durable includes a conformance suite and benchmarks for custom backends, ensuring compatibility.
Each conversation in Pi Durable can run in a different place, with the env function building the environment for every tool call.
Pi Durable stores a checkpoint before moving on to the next step, ensuring survival of crashes and continued execution.
Why It Matters
If you're building complex, multi-step agentic applications, Pi Durable's minimalism and malleability make it a strong choice. With 15,000 lines of code and a Node execution environment, it offers a solid foundation for long-running, durable agents. The storage backends and conformance suite ensure compatibility and reliability, making it a valuable tool for developers working on agentic applications.
Comments
Be the first to comment
Enjoyed this article?
Get it daily. 7am. Free. Reads in 5 minutes.