0.0
The project is in a healthy, maintained state
Crash-safe, resumable agent conversations for Rails. Ships the pi-durable runtime as a sidecar process inside the gem that keeps its state in your app's database, Postgres or SQLite, which Rails reads with Active Record. Broadcasts over Turbo, and lets you write tools in Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 8.0
 Project Readme

durable_agent

Crash-safe, resumable AI agent conversations for Rails. The gem ships pi-durable as a bundled sidecar process that keeps its state in your app's own database, Postgres or SQLite, which Rails reads with Active Record. Tools are Ruby classes. Pages update over Turbo.

bundle add durable_agent
bin/rails g durable_agent:install   # migration, initializer, mount, Procfile.dev line
bin/rails db:migrate
bin/dev                             # web, sidecar
conversation = DurableAgent.start
conversation.say("Summarize the invoice", request_id: message.id)
conversation.transcript

Early. The contract is in DESIGN.md, the guide in docs/guide.md, the example app in test/dummy. Needs Ruby 3.3+, Rails 8+, Node 22.19+.

MIT.