Make your own event-sourced agent harness using stream processors — Jonas Templestein, Iterate
Jonas Huckestein introduces a novel, event-sourced architecture for building AI agents. The core abstraction consists of three parts: a state, a synchronous reducer that derives state from events, and an after-append hook for side effects. This design ensures debuggability and allows state to be rebuilt without re-running expensive operations like LLM calls. A key innovation is the ability to deploy an agent by simply appending a 'dynamic worker configured' event—containing JavaScript code for a processor—to an event stream, eliminating the need for servers or complex deployment pipelines. This enables a distributed and composable ecosystem where processors from different authors can collaborate on a single stream.