An experimental TypeScript framework for agents whose work must survive process failure, span multiple conversations, and be steered by multiple clients. Earendil announced it alongside Pi 1.0 on October 1, 2026. It shares code and the minimal, malleable design philosophy of Pi (Coding Agent), but does not replace the coding agent.
The distinction is operational. The terminal coding agent is built for one person who can inspect a failure and ask it to continue. Pi Durable persists enough execution state for a new process to reopen storage and recover unfinished work. It is infrastructure for building agentic applications, including coding agents, rather than a drop-in switch that makes existing CLI sessions automatically durable.
Experimental, not a production guarantee
The announcement explicitly says the API may change. Features and examples below describe the publisher’s October 2026 release, not independently tested behavior in Quang’s installed Pi. Durable execution does not establish safe authorization, correct agent decisions, or exactly-once external effects.
The model: storage, conversations, tasks, and environments
The article defines a harness as storage plus machinery for running conversations with models, tools, and execution environments. Every model request, tool invocation, and compaction is a task.
- Storage keeps transcripts, task checkpoints, queued submissions, and application documents.
- A conversation has its own model, thinking level, selected extensions/tools, instructions, and working directory.
- An execution environment supplies filesystem and shell capabilities. The harness and tools can run on different machines.
- A registry supplies named extensions and task implementations; conversations persist names rather than executable code.
This makes runtime state and deployment code independently replaceable, related to Brain Hands Session Split and Cloud Agent Infrastructure. It does not supply every cloud security or operations layer those pages describe.
Storage and runtime boundaries
The release includes memory, SQLite, and JSONL storage implementations, plus a conformance suite and benchmarks for custom backends. A backend can be built over other storage systems, but Postgres and key-value storage are extension possibilities, not listed shipped implementations.
The SQLite and JSONL storage code avoids Node APIs. The publisher says small adapters allow Bun or a Cloudflare Durable Object; that is not the same as every environment being turnkey. A Node execution environment is supplied for local tools; other environments implement its interface.
One process owns a storage backend at a time. Other clients attach to that owner. “Many conversations” and “multiplayer” do not imply multiple independent writers can open the same storage simultaneously.
For SQLite, only the working set stays in memory: active transcripts, live tasks, and pending submissions. Older history remains on disk. Compaction bounds the active model context even when the stored conversation has tens of thousands of messages. The memory backend, by itself, cannot provide persistence across a process death.
Crash recovery is task recovery
Every task saves checkpoints as it progresses. A replacement process opens the same persistent storage, loads the corresponding implementations, and resumes unfinished tasks from their checkpoints.
The publisher describes different treatment for interrupted work:
- Model request: send the request again; retain the partial answer in history as aborted.
- Replay-safe tool: rerun it.
- Tool not declared safe to replay: report the interruption and stored output to the model rather than automatically repeating it.
- Queued submission: remains queued.
- Repeated submission with the same
requestId: returns the original submission rather than creating another.
See Durable Tool Execution for the crucial distinction between recovering execution and duplicating a business action. A process restart does not freeze and restore an arbitrary JavaScript call stack.
The example uses Harness.open(...), a stable root conversation, and harness.resume(). These are source examples, not commands run during this ingest.
Conversations, forks, and custom subagents
One harness can run multiple conversations concurrently. A fork sees the parent’s history up to a chosen entry without copying that history. The article maps this to a Slack channel and a reply thread that can proceed independently.
A reviewer can use a cheaper model, read-only tools, and another checkout. Tool availability is conversation-specific; a thread may search without being allowed to deploy.
There is no built-in subagent policy. The example creates a child conversation from a tool, gives it its own model and instructions, and waits for a response. It reuses the child associated with the owning task and a stable submission ID on replay. Durable conversations make this possible; the application still chooses delegation and permissions.
Extensions participate in durability
An extension is a named bundle of prompt sections, tools, hooks, and tasks.
Prompt sections and context history
The system prompt is rebuilt from selected sections before each model request. Changes are recorded at their transcript positions, so a restart or fork can reconstruct the prompt history. Where a provider supports mid-conversation system/tool changes, the harness sends the change rather than resending everything, preserving caching where possible.
This is relevant to Session Observability and Replay’s “context as it was” requirement. It does not mean every model supports identical update or caching semantics.
Tools and hooks
Each tool invocation is a durable task with intent stored before execution. A later extension can replace a same-named tool, and wrappers can decorate the selected implementation.
Hooks can alter model requests, block or rewrite tool calls, replace results, continue a run, or supply compaction. Their chain behavior is defined per hook: a beforeTool block stops execution, and an exception in that hook also blocks the call. Other hook exceptions are reported while the chain continues.
A hook can store a decision in a task memo, where the first write wins. The approval example reuses a persisted answer after restart instead of asking again. The article does not establish that asking an external person and storing the answer are one atomic action; a crash before persistence still needs application-level handling.
Tasks and cancellation ownership
Tasks and conversations form an ownership tree. Cancellation propagates through owned work, bottom-up, so cleanup runs before an owner completes.
Foreground tasks keep a conversation busy and participate in its normal abort. Background tasks belong to the conversation but can outlive its current turn; an ordinary abort leaves them alone. An explicit background-inclusive abort or a direct task abort reaches them. Applications must choose ownership deliberately, not assume Esc cancels everything.
The split-payment example illustrates durable task coordination, idempotency keys, and compensation. It is not a complete payment protocol or an atomic multi-card transaction. Refund failures, ambiguous provider outcomes, reconciliation, and idempotency semantics still need domain-specific design.
Long context without deleting history
Compaction itself is a durable task. It starts summarizing older messages in the background, then installs the summary at a turn boundary. The next request waits only if it cannot fit without that summary. A provider context-length rejection triggers compaction and one retry.
reset() can start a fresh context from an optional handoff note. Older entries remain stored, and an application can provide a history-search tool. The sample search scans only a bounded page of entries; it should not be mistaken for exhaustive retrieval over the entire archive.
“Infinitely long conversations” is the design goal for retained history and repeated context management, not infinite model context, unlimited storage, or guaranteed lossless summaries. This complements Context Window Management Strategies rather than eliminating its tradeoffs.
Application state and live clients
Typed JSON documents store things such as todos, plans, or sandbox metadata alongside the transcript. They can change in the same atomic storage commit as transcript state. Fork policies choose the parent’s value at the fork point, its current value, or fresh state.
This is a concrete implementation of coordinated state in Agent State and Resumability, but not literally one messages array: transcripts, task checkpoints, and typed documents remain distinct records in a shared transactional system. Atomic storage changes do not make remote APIs transactional.
Clients can subscribe to the current transcript, streaming answer, tool output, queued messages, agent configuration, and usage. A reconnecting client receives the current view, then changes. Any authorized application client can be given steering or follow-up capabilities. Authentication and access policy remain responsibilities of the application; “multiplayer” is not itself authorization.
Changing code while work continues
Reinstalling an extension under the same registry name replaces it. An already running tool call finishes on the old implementation; the next call uses the new one. After restart, stored names resolve to whatever the new process installs.
This enables malleability, but also creates a deployment responsibility: compatibility with persisted task versions and checkpoints must be tested. Hot replacement is not proof that arbitrary code changes are safe for in-flight work.
Sources
- Pi Durable: Earendil Engineering, Pi Durable, 2026-10-01; full announcement and code examples. The package is explicitly experimental.
- Agent platform of 2027: John Suh lists “Pi-Durable x Extensions” as an example of agents as isolated actors, the runtime he expects platforms to move to from Temporal-style workflows; see Agent Platform Blueprint