finnvoor/PiDurableKit
Durable AI agents for Apple platforms: pi-durable on JavaScriptCore with a Swift API
Older snapshot: check the original source for current information.
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
Durable AI agents for iPhone, iPad, Mac, and Vision Pro, powered by @earendil-works/pi-durable running in JavaScriptCore. Conversations, model turns, tool calls, and your own state are committed to storage before anything is shown. If iOS kills your app mid-turn, reopening the storage picks the work up where it stopped. Requires iOS 17, macOS 14, tvOS 17, or visionOS 1. and add PiDurableKit to your target's dependencies. The Swift API mirrors pi-durable's, with Swift concurrency in place of Chord contexts (cancel the Swift task to cancel a wait; cancelling a wait never cancels the work). Each call is its own durable task. Throwing gives the model an error result. A call interrupted by a crash reruns after a restart only when the tool is declared replay: .safe; otherwise the model gets an interrupted error. Return ToolResult.text(…).terminating() to end the run without another model request. Install, replace, or remove extensions at runtime…
Read the full README ↗ · Preview checked 2026-10-28T03:18:50.045Z
Inside the original README — Document outline
- PiDurableKit
- Installation
- Concepts
- Tools
- JavaScript extensions
- Subagents and transactions
- Nested calls and structured output
- Durable tasks
- More hooks and wraps
- Calling a model from a tool or task
- Files
- SwiftUI
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Links from the README
References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.
Documentation belongs to its respective authors. Reported project/model license: CC0-1.0. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
Durable AI agents for Apple platforms: pi-durable on JavaScriptCore with a Swift API
Repository facts
- Owner
- finnvoor
- Primary language
- Swift
- Stars
- 251
- Forks
- 22
- Open issues + pull requests
- 4
- License
- CC0-1.0
- Archived
- No
- Default branch
- main
- Created
- 2026-10-08T10:02:27.000Z
- Last push
- 2026-10-15T11:50:18.000Z
Topics and intended use
No topics were included in the latest source metadata.
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-10-15T12:08:24.329Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.