Tag
Promotional tweet claiming a single article is all you need to learn about State Machines.
This article explains the concept of finite state machines, their formal definition, and why they are a powerful abstraction for building reliable systems, including how they relate to current agent frameworks.
The article discusses the gap between model decision quality and execution integrity in AI agent evaluations on external systems, proposing separate scoreboards for decision correctness and successful task completion.
Many AI agent implementations fail because they treat agents like chatbots, relying on chat history for state rather than using deterministic data structures. The article advocates for separating reasoning (LLM), actions (tools), workflow progress (state machine), and external triggers (webhooks) to build reliable business agents.
A comprehensive guide on how an HTTP server works, covering networking protocols, chunked encoding, state machines, parser writing, and concurrency basics, with instructions to build one yourself.
PreAct compiles successful task runs of computer-using agents into small state-machine programs, allowing fast replay (8.5–13× faster) on repeated tasks by skipping per-step language model calls, while verifying screen states at each step and falling back to the agent when mismatches occur.
Peter Steinberger suggests moving from prompting coding agents to designing loops that prompt agents, while @dzhng advises using state machines instead of loops.
The article critiques the current framing of agent memory as merely a storage problem, arguing that memories should have typed roles, freshness, and authority levels to prevent stale or incorrect information from being treated as gospel.
Statewright is an open-source tool that uses visual state machines to enforce guardrails on AI agents, improving reliability for models like GPT and Llama by constraining tool usage to specific workflow phases.