Du

Durable Swarm – A Framework for Building Reliable AI Agents

Hacker News

Durable Swarm – A Framework for Building Reliable AI Agents

Hi HN! Today me and qianli_cs want to share a new open-source project we've been working on called Durable Swarm. It's a drop-in replacement for OpenAI’s Swarm that augments it with durable execution to make your agentic workflows resilient to failures, so that if they are interrupted or restarted, they automatically resume from their last completed steps. https://github.com/dbos-inc/durable-swarm We believe that as multi-agent workflows become more common, longer-running, and more interactive, it's important to make them reliable. If an agent spends hours waiting for user inputs or processing complex workflows, it needs to be resilient to transient failures, such as a server restart. However, reliable multi-agent orchestration isn't easy—it requires complex rearchitecting like routing agent communication through SQS or Kafka. Durable execution helps you write reliable agents while preserving the ease of use of a framework like Swarm. The idea is to automatically persist the execution state of your Swarm workflow in a Postgres database. That way, if your program is interrupted, it can automatically resume your agentic workflows from the last completed step. Here’s an example application–a durable refund agent that automatically recovers from interruptions when processing refunds: https://github.com/dbos-inc/durable-swarm/tree/main/examples... We also converted all of OpenAI’s example applications to Durable Swarm: https://github.com/dbos-inc/durable-swarm/tree/main/examples Under the hood, we implemented Durable Swarm using DBOS ( https://github.com/dbos-inc/dbos-transact-py ), an open-source lightweight durable execution library that we developed. The entire implementation of Durable Swarm is 24 lines of code, declaring the main loop of Swarm to be a durable workflow and each chat completion or tool call to be a step in that workflow. Check it out here: https://github.com/dbos-inc/durable-swarm/blob/main/durable_...

Share card

Actual performance

12points
6comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agents, agent, agentic · Missing: mac, macos, cursor
91%91% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: started · Missing: supports, reddit linkedin, podcasting
76%76% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
67%67% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
42%42% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
33%33% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

A
A Java framework for building microservices?57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Java framework for building microservices?

Hacker News1
Thousand Birds
Thousand Birds21%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A framework for building AI Agents

Indie Hackerscommitment-full-time
Ti
Tired of building agents? throw an LLM at this framework50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tired of building agents? throw an LLM at this framework

Hacker News14
SWARM
SWARM65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A design framework for clarity.

Indie Hackers1ai
I
I made an AI Agent Framework for building Dockerized RAG AI Agents29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made an AI Agent Framework for building Dockerized RAG AI Agents

Hacker News1
Ae
Aegis – Security framework for AI agents31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Aegis – Security framework for AI agents

Hacker News3
Mu
Mutters – a framework for building bot brains56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mutters – a framework for building bot brains

Hacker News3
En
Encore – Go framework for building distributed systems64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Encore – Go framework for building distributed systems

Hacker News182
AX
AXAR AI – a minimalistic TypeScript framework for building LLM agents46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AXAR AI – a minimalistic TypeScript framework for building LLM agents

Hacker News3
Di
Director – A Framework for Building Video Agents69%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Director – A Framework for Building Video Agents

Hacker News2