Templestein wants agent harnesses to be debuggable, extensible, composable, and able to run across computers and languages. His proposal is to treat every action as an event, so the event log captures what happened and can support new processors and integrations.
Make your own event-sourced agent harness using stream processors
Speaker
Jonas Templestein of Iterate leads an AI Engineer workshop on building agent harnesses from event streams, with Misha and workshop participants.
Templestein introduces Iterate’s event service, where agents have hierarchical paths and streams contain YAML formatted events. Events carry a type, path, offset, and creation time, and clients can read them over server sent events. The service also supports idempotency keys, scheduled events, subscriptions, and pausing streams when event volume risks a loop.
A processor derives state by reducing each event synchronously, while keeping side effects in a separate after-append step. This lets a processor catch up after downtime without repeating actions for every event it missed. Templestein sketches an OpenAI agent whose state includes its model, system prompt, and conversation history.
The event service UI derives feed items from the stream, and the same reducer pattern can power other interfaces and processors. Templestein demonstrates a stream configured with JavaScript that replies “pong” to “ping,” and describes bundling an agent processor into an event so a stream can become an agent. He also imagines remote services responding to agent events, such as a prompt injection checker, while noting that the system would need authentication and resilience to late responses.
Takeaways
- Keep event reduction synchronous and state focused; place API calls and other side effects in a separate step.
- An append only log can make agent behavior easier to inspect and replay, provided side effects are not repeated during catch up.
- Use idempotency keys and circuit breakers to limit duplicate webhook events and runaway loops.
- A shared event stream can provide a language independent interface for processors running on different machines.
- Treat public or remote processors as requiring authentication, access controls, and safeguards against request flooding.
Mentioned in this talk
Search inside this talk
What was claimed 11
- works at
“We both work at Iterate.”
YouTube Unverified1 source· Talk
- works atJonas Templestein works at
Iterate
“We both work at Iterate.”
YouTube Unverified1 source· Talk
- feature
Events app: The workshop instance has no authentication and exposes event streams to other participants.
“There’s no authentication, as you’ll see. You’ll all be able to see everybody else’s event streams”
YouTube Unverified1 source· Talk
- launched
Iterate launched
Events app
“we created this service over the last week, called events.iterate.com”
YouTube Unverified1 source· Talk
- feature
Events app: Stores append-only event streams and exposes them through an HTTP API, SSE subscriptions, and a web UI.
“you just have raw events, which are YAML-formatted in each of these paths”
YouTube Unverified1 source· Talk
- feature
Events app: Supports live SSE subscriptions, scheduling, subscriptions, stream pausing, and idempotency keys.
“If you do live=true, the connection will stay open and it'll just keep sending you more events”
YouTube Unverified1 source· Talk
- feature
Events app: Pauses a stream after more than 100 events arrive in about a second.
“If you put more than 100 events in a second or so, it will circuit-break”
YouTube Unverified1 source· Talk
- feature
Iterate: Had not launched a product at the time of the talk.
“We haven't launched a product.”
YouTube Unverified1 source· Talk












