DavidKPiano open-sources Jevspresso: XState constrains LLM agent actions in a coffee-bar demo

DavidKPiano · x · 2026-10-03

DavidKPiano (creator of XState) released Jevspresso, an open-source demo of a simulated espresso bar where the TypeSafe System One model Jev makes every barista decision, with an XState v6 state machine modeling what is physically possible.

The architecture inverts the usual agent pattern: instead of the LLM writing tool calls that the app validates afterward, the state machine defines the closed set of accepted events and Jev only picks from actions that are currently possible — it never writes an action itself. You can order in plain English or break the equipment to see how the model copes. Fully open source, runnable locally, live at jevspresso.dev.

Related event: XState Author Open-Sources Jevspresso, Combining State Machines with AI Agents(2 posts)→

Original post →

More from coding & agent

coding & agent channel →