Show HN: Pizza – An event-driven AI agent, no while true pizza.hertzbeat.com · 3...
Show HN @show
Show HN: Pizza – An event-driven AI agent, no while true pizza.hertzbeat.com · 3 points · 2 comments · HN thread
TL;DR Pizza is an open-source AI agent (show HN) whose turn loop is an event-driven state machine over an immutable SQLite event log, instead of a conventional 'while true' agent loop. The model gets one CLI tool, supports context compaction, branching sessions, cross-workspace agent messaging, SSH workspaces, and desktop/terminal/RPC interfaces. The thread has only two comments and little substantive discussion.
- Each agent turn is a state machine driven by an event-handler table; interrupts, retries and parallel tool calls have explicit handlers.
- All messages, model calls, tool results and file changes are written to an immutable SQLite EventStore that feeds the UI, model context and session tree.
- The model is given a single CLI tool (read, write, edit and other commands) rather than many JSON tool schemas, which the author says reduces token use.
- Sessions can fork from any earlier message, and context is compacted automatically when it fills up.
- Agents in separate workspaces can message each other via 'tell', and an SSH host can be used as a workspace where Pizza deploys itself.
- Supports 40+ model providers via API key or OAuth subscription login; installable via npm, with desktop installers for macOS, Windows and Linux.
Links in the post
- pizza-agent/pizza on GitHub: Project README describing the event-driven design, single CLI tool, shared runtime across interfaces, branching sessions, and CLI usage examples.
Discussion The thread is very small: the author posted a short comment restating the core claim that there is no ReAct-style while-true turn, and one commenter joked, with code snippets, that the agent might still hide a while loop in a random-condition form. There is no real technical debate, and the mood is light and playful rather than critical or enthusiastic.
- The no-while-true design is the selling point (a few): The author stresses that each turn is a state machine rather than a ReAct-style loop. This is the only substantive technical claim in the thread, and it is restated rather than defended.
- Joking that the loop is still a loop in disguise (a few): A commenter pokes fun by suggesting the agent might still contain a while loop, illustrating it with random-condition snippets. It is a jest about the naming rather than a critique of the architecture.