The GitHub repository finnvoor/pidurablekit is a durable AI agent package for iPhone, iPad, Mac and Vision Pro. It provides a Swift API for @earendil-works/pi-durable, which runs on JavaScriptCore. It saves conversations, model turns, tool calls and user state before displaying them on screen. If the app is terminated in the middle of a task, you can reopen the store and resume the interrupted work.
The core of this package is an execution model that saves agent state first. It is designed so that processing continues from the saved state even if the app terminates during a task. It distinguishes canceling a wait from canceling a task: canceling a wait only stops the waiting behavior and does not cancel work in progress. It supports SQLite and JSONL storage and crash recovery. It also supports Swift tools, prompts and hooks, subagents, transactions, multiple model providers, and OAuth login. The README explains that PKCE with the real pi-ai provider SDK, loopback redirects for Anthropic OAuth, and token exchange and refresh are verified with a mock HTTP server.
However, no performance figures or throughput benchmarks are presented, so measured performance cannot be confirmed. The scope of the storage and recovery features is described in the documentation, but judging actual performance requires separate measurement data. Therefore, while the execution model proposed by this repository is concrete, its performance characteristics are difficult to judge from the documentation alone.