Skip to content
View original post on X: Guillermo RauchX· 17/100AI score17/100

Vercel's fx.sh makes agent sessions durable across crashes and restarts

AISummary

Guillermo Rauch says createFxAgent() now runs durably on a laptop or in the cloud via files, Postgres, or Vercel Workflows in Node.js or Bun.

The libfx durability adapter API keeps a turn running to completion after a user disconnects and resumes a crashed tool call from where it stopped, with one line of code on Vercel. Rauch says the same durability will come to Pi, OpenCode, and custom harnesses.

Post on XView on X
Guillermo RauchVerified on X
@rauchg

Harness durability in http://fx.sh.

The same 𝚌𝚛𝚎𝚊𝚝𝚎𝙵𝚡𝙰𝚐𝚎𝚗𝚝() is now *durable* on your laptop or in the cloud, via files, Postgres, or Vercel Workflows. Node.js or Bun.

Agents need long-running compute. But they also need to tolerate restarts, redeploys, timeouts, crashes…

Concretely, if a user sends a prompt and then throws their phone into a black hole, we ensure that turn runs to completion. If the process crashes mid-tool-call, it resumes from there.

To this end, 𝚕𝚒𝚋𝚏𝚡 introduces a simple durability adapter API. On Vercel, it leverages all the infra we built for durable workflows and queues, giving you reliability with 1LOC.

This is a critical aspect of production-grade agents (and something all @eve agents also get out of the box). Next, we'll show you how we bring the same durability to Pi, OpenCode, and even your own custom harnesses.

Pranit@fazxes
fx v0.0.14 libfx is now durable out of the box. Same API on local, Vercel and DIY. - Sessions survive crashes, redeploys & timeouts - Power cloud agents with ChatGPT & Grok subscriptions - Custom providers & local model support in libfx - Run multiple libfx agents in one app - More control over each libfx session - TypeScript types for libfx's public APIs - Ported to Zig 0.17 - Multiple bug fixes & security improvements https://fx.sh/changelog#v0.0.14
View quoted post on X

Source: Guillermo Rauch · x.comPublished · added here