Loading video...
Video Failed to Load
Introducing Durable Sessions — the key pattern for collaborative AI. As the world moves to getting things done through agents, the winners are going to be the products that combine AI with collaboration. Building AI apps on a Durable Session pattern is the best way to do that. The... show more
76,661 views • 9 months ago •via X (Twitter)
20 Comments

The result is native multi-tab, multi-device, multi-user and multi-agent sessions. Built on an open protocol. You get full support for real-time and asynchronous collaboration. With end-to-end type safety and no changes to your actual AI engineering code:

Source code and @TanStack AI - Durable Sessions demo app: You provide a single Standard Schema defining your token streaming and session state. The Durable Streams state layer takes care of the rest:

wait this is actually cool. does the state layer handle conflict resolution when multiple agents write to the same session state? that's always been the tricky part for us with multi-agent setups

Yup, you’re in control of how you handle writes and Durable Streams work great with CRDTs. See eg uses Durable Streams with Yjs

will experiment with this thanks!

Durable Sessions could simplify collaborative AI agent workflows.

This is really next-level collaboration with agents great work!!

This is seriously awesome

@ElectricSQL is insane, looking forward to see it turn into the standard on web development!

Durable state is what turns agents from solo tools into shared systems that can actually coordinate over time.

love this concept already, persisting sessions makes sense

Awesome

@thruflo, this Durable Session pattern is crucial for building collaborative AI applications effectively.

totally agree. tried async agent collab without session state - felt like herding cats. durable sessions made it click. context is everything for real teamwork

Durable Sessions feel like the missing glue for serious agent apps. The next pain point is observability per session so you can replay a messy human plus agent plus tool interaction and see exactly where the state went sideways.

this is soo sick man

Does it production ready? There is a very minimal template/guide that to follow to get started with?

Test mine and let me know Additions feature to follow!

Hello, I was very impressed by the demo and wanted to try it myself and learn the technologies used. So I pulled the code and tried to run the demo, but I found that many of the dependency versions are "workspace:*".

I've been looking for something like this for quite a while, this is so sick
