Make your own event-sourced agent harness using stream processors — Jonas Templestein, Iterate

| Podcasts | May 14, 2026 | 5.01 Thousand views

TL;DR

Jonas Templestein and Misha from Iterate demonstrate a prototype event-sourced architecture for building distributed AI agent harnesses where all state changes are captured as immutable events in HTTP-accessible streams, enabling debuggability and composability across different languages and environments.

💡 Event-Sourced Architecture Philosophy 2 insights

Immutable event logs enable perfect debugging

Every state change is captured as an event with a type and payload, creating a complete audit trail that makes agent behavior fully reproducible and transparent.

Single abstraction simplifies system design

The architecture treats everything—from LLM responses to errors and scheduled tasks—as uniform events, eliminating complex side effects and special cases found in traditional agent frameworks.

🌐 Distributed & Edge-First Design 2 insights

Publicly routable HTTP endpoints for every agent

Agents exist as internet-connected server programs with unique URLs from creation, eliminating the need for connector frameworks to integrate external services like Slack or web forms.

Cross-language composability

Plugins and extensions can run on different machines written in different languages (Rust, TypeScript) and communicate purely through the event stream interface.

⚙️ Technical Implementation & Safety 3 insights

Circuit breaker prevents infinite loops

Streams automatically pause when exceeding 100 events per second, requiring manual intervention to resume and preventing runaway feedback loops between distributed components.

Native scheduling and webhook support

The system supports scheduled events (heartbeats, future tasks) and bidirectional HTTP subscriptions via Server-Sent Events, allowing agents to both consume and push events to external endpoints.

Tolerance for unstructured data

The API accepts arbitrary webhook payloads from third parties without strict validation, relying on LLMs to parse unstructured data rather than enforcing rigid schemas.

Bottom Line

Build AI agent harnesses as distributed, event-sourced systems with immutable logs and HTTP-native interfaces to maximize debuggability, composability, and interoperability across different languages and environments.

More from AI Engineer

View all
Give Your Agent a Computer — Nico Albanese, Vercel
AI Engineer AI Engineer

Give Your Agent a Computer — Nico Albanese, Vercel

Nico Albanese demonstrates building AI agents with Vercel's AI SDK 6, introducing the new tool loop agent pattern and three essential building blocks for 2026: agent runtimes, sophisticated tool ecosystems, and sandboxed computer environments for state persistence and code execution.

3 days ago · 8 points
Viktor: AI Coworker That Lives in Slack — Fryderyk Wiatrowski
AI Engineer AI Engineer

Viktor: AI Coworker That Lives in Slack — Fryderyk Wiatrowski

Fryderyk Wiatrowski presents Victor, an AI employee that lives natively in Slack to automate complex cross-functional tasks by leveraging shared company context and 3,000+ tool integrations, evolving from early browser-based agents to solve the unique memory and permission challenges of multi-user enterprise environments.

4 days ago · 8 points