Davide Zambiasiv4.x
Documentation
Projects

typescript · restate · claude

Preflight Agent: durable AI flight briefings

A Restate + Claude demo where a weather-briefing workflow suspends for hours, survives process kills, and resumes exactly where it left off.

Published · 1 min read

The problem

Real agent workflows wait on humans and clocks: a pilot acknowledges a briefing now, departs hours later. Naive implementations hold processes open, lose state on restart, or re-bill every LLM call after a crash.

What I built

A flight-briefing workflow on Restate: it fetches live aviation weather (METARs, TAFs, PIREPs, SIGMETs) in parallel, has Claude write a plain-language GO / NO-GO briefing, then suspends — consuming zero resources — until the pilot acknowledges. A durable timer sleeps until one hour before departure, re-fetches the weather, and Claude diffs conditions against the original briefing. Kill the process anywhere and restart it: completed API and LLM calls replay from Restate’s journal instead of re-running.

The DevRel angle

The entire durable-execution story is one ~160-line file, src/workflow.ts, and the README walks it top to bottom. The rest of the repo is deliberately ordinary plumbing, so the concept being taught is the only thing left to read. It is a demo, clearly labeled as not for actual flight operations.

Was this page helpful? Tell me by email.