Agent retried for 16 hours silently? Author introspects durable runtime with Postgres persistence
slateraligator · reddit · 2026-09-02
An author shared a production incident where an agent silently retried 1,200 times over 16 hours due to a misconfiguration. In response, they open-sourced 'Toren', a durable agent runtime (Apache 2.0). Key features include:
- State Persistence: Every step is written to Postgres before execution, allowing recovery from crashes/OOM without re-paying for API calls.
- Retry Logic: Exponential backoff and hard caps on attempts.
- External Cancellation: Ability to kill runs from outside.
- Cost Tracking: CI pipeline kills the worker at every step to verify billing.
The author argues that long-running agents must be durable to survive deploys and API changes.
More from coding & agent
- LLM one-shots a Minecraft 3x3 piston door by building its own Linux test infra — Vjeux · 2026-10-18
- Dev builds Mumbai-inspired 3D manga background generator from OpenStreetMap data — CurieuxExplorer · 2026-10-18
- Solo founder builds a money-printing data service on Claude's Pi Durable harness — MicahBerkley · 2026-10-18
- Dev builds Arch-based OS with custom desktop and browser using Claude Code — Snoo-10493 · 2026-10-18
- Five SaaS agent workflows fail the same way — and it's never model intelligence — usehive · 2026-10-18
- Claude skill generates hand-drawn interactive diagrams that teach kids how things work — CatAstro_Piyush · 2026-10-18