Settings

Theme

Show HN: Pizza – An event-driven AI agent, no while true

pizza.hertzbeat.com

3 points by tomsun28 · 2 comments · 1 min read

Reader

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

2 threads
tomsun28OP

No ReAct while true turn.

moritzwarhier

Oh my, I hope it doesn't have

  while (crypto.randomUUID()[14] === "4")
or

  while (Math.random() < 1)
either.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection