Show HN: Pizza – An event-driven AI agent, no while true An open-source project called Pizza released an event-driven AI agent that replaces the conventional `while true` loop with a per-turn state machine, logging conversations and tool calls to an immutable SQLite log from which the UI, model context, and session tree are built. Pizza gives the model a single tool — a CLI for reading files, editing code, and running commands — and supports context compaction, branching from any earlier message, and cross-workspace communication via a `tell` command, with SSH hosts usable as workspaces where the agent deploys and runs remotely. The project ships desktop and terminal interfaces, requires users to bring their own model, and is hosted at github.com/pizza-agent/pizza. Hi HN, I made Pizza, an open-source, event-driven AI agent. No while true . Each turn is a state machine. Conversations and tool calls go into an immutable SQLite log. The UI, model context, and session tree are built from that log. The model gets one tool: a CLI. Reading files, editing code, and running commands all go through it. You can keep a conversation going without manually starting new sessions. Pizza compacts context as needed, and you can branch from any earlier message. Agents in separate workspaces talk through tell , each doing the work in its own project. An SSH host can be a workspace too: Pizza deploys itself there and runs remotely. Desktop and terminal interfaces are included. Bring your own model. https://github.com/pizza-agent/pizza https://github.com/pizza-agent/pizza Comments URL: https://news.ycombinator.com/item?id=50507971 https://news.ycombinator.com/item?id=50507971 Points: 1 Comments: 0