{"slug": "show-hn-pizza-an-event-driven-ai-agent-no-while-true", "title": "Show HN: Pizza – An event-driven AI agent, no while true", "summary": "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.", "body_md": "Hi HN, I made Pizza, an open-source, event-driven AI agent. No `while true`.\n\nEach 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.\n\nThe model gets one tool: a CLI. Reading files, editing code, and running commands all go through it.\n\nYou can keep a conversation going without manually starting new sessions. Pizza compacts context as needed, and you can branch from any earlier message.\n\nAgents 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.\n\nDesktop and terminal interfaces are included. Bring your own model.\n\n[https://github.com/pizza-agent/pizza](https://github.com/pizza-agent/pizza)\n\nComments URL: [https://news.ycombinator.com/item?id=50507971](https://news.ycombinator.com/item?id=50507971)\n\nPoints: 1\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-pizza-an-event-driven-ai-agent-no-while-true", "canonical_source": "https://pizza.hertzbeat.com/", "published_at": "2026-11-15 16:04:32+00:00", "updated_at": "2026-11-15 16:23:18.149903+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "artificial-intelligence"], "entities": ["Pizza", "GitHub", "SQLite", "Hacker News"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/show-hn-pizza-an-event-driven-ai-agent-no-while-true", "markdown": "https://wpnews.pro/news/show-hn-pizza-an-event-driven-ai-agent-no-while-true.md", "text": "https://wpnews.pro/news/show-hn-pizza-an-event-driven-ai-agent-no-while-true.txt", "jsonld": "https://wpnews.pro/news/show-hn-pizza-an-event-driven-ai-agent-no-while-true.jsonld"}}