Agents are Just While Loops

Agents are Just While Loops

Author: Demetrios May 15, 2026 Duration: 41:11

Hamza Tahir, co-founder of ZenML, joins the show to cut through the hype around long-running agents — arguing that at the end of the day, an agent is just a while loop that talks to a model, calls a tool, and writes to a file system. He covers the architecture of agent harnesses (inner and outer), what durable execution actually guarantees (and what it doesn't), and why the ML pipeline paradigm is a cleaner mental model than transactions for most agent workloads.


Hamza also announces Kitaru — ZenML's new open-source execution runtime for async Python agents — built on five years of running ML workloads in enterprise environments.


What we get into:

Agents are while loops: The surprising simplicity under all the tooling: a brain (LLM), hands (tool calls), and a file system, stacked recursively

Inner harness vs outer harness: Why Pydantic AI owns the inner loop while production deployment needs a separate runtime layer

What "long-running" actually means: Why the infrastructure we need to build is about extrapolating the future, not defining a time window today

Durable execution demystified: What checkpointing actually guarantees (infra failures, pod death, network drops) vs. what it never will (external state, bad LLM outputs, Snowflake rollbacks)

ML pipelines vs transactions: Why bursty containers in Kubernetes map more naturally to agent workloads than microsecond-latency queue workers — and why Hamza argues against the complexity tax

Anthropic opening the harness: Why letting other models run Claude Cowork is a "boss move," and what it means for the one-harness vs one-model debate

Human-in-the-loop, done right: The pod-kill-and-resume pattern, and why warm pools matter less when your agent runs for days

Kitaru: ZenML's new open source durable execution runtime: zero-config local, Kubernetes/SageMaker/Vertex in production, built on Pydantic AI integration

Arguing with Claude about Temporal: Hamza's story of spending hours getting an LLM to admit ZenML and Temporal solves the same problem


If you're architecting agents for production, picking between Pydantic AI, LangGraph, and Temporal, or just want to understand what "durable execution" actually means — this is the episode.


// LINKS & RESOURCES

Kitaru on GitHub: https://github.com/zenml-io/kitaru

Kitaru launch blog post: https://www.zenml.io/blog/kitaru-launch

Kitaru on Hacker News: https://news.ycombinator.com/item?id=47520115

Hamza Tahir on LinkedIn: https://www.linkedin.com/in/hamzatahirofficial/

ZenML: https://www.zenml.io/


Timestamps

[00:00] While Loop Checkpointing

[00:24] Long-Running Agents Explained

[01:28] Agent Harness Model Definitions

[06:30] Durability and State Recovery

[11:03] Agent Systems Layers

[18:45] Durability in Agent Systems

[22:07] ML Pipeline vs Transactions

[29:23] Durability vs Guarantees

[33:13] Durability vs Chaos Engineering

[39:50] Kitaru Naming and Purpose

[40:38] Wrap up


#AIAgents #DurableExecution #OpenSource


Hosted by Demetrios, MLOps.community is a space for honest, meandering talks about the real work of making artificial intelligence systems actually work. This isn't about hype or theoretical papers; it's about the messy, practical, and often surprising journey of taking models from a notebook into a live environment. You'll hear from engineers and practitioners who are in the trenches, discussing the tools, the frustrations, and the occasional breakthroughs that define the day-to-day. The conversations are deliberately relaxed, covering everything from traditional machine learning pipelines to the new world of large language models and even the intangible "vibes" of team culture and process. Each episode peels back a layer on what "production" really means, whether that involves deploying a predictive service, managing an agentic system, or maintaining reliability as everything scales. Tuning into this podcast feels like grabbing a coffee with colleagues who aren't afraid to dig into the technical nitty-gritty while keeping the tone conversational and accessible. It's for anyone who builds, manages, or is just curious about the operational backbone that allows AI to deliver value, offering a grounded perspective often missing from the broader conversation.
Author: Language: en-us Episodes: 100

MLOps.community
Podcast Episodes
Autonomous Agents at Work: From OpenClaw Hype to Enterprise Reality [not-audio_url] [/not-audio_url]

Duration: 42:19
Pramod Krishnan is a Managing Director - AI Managed Services at PwC, specializing in enterprise AI transformation — helping large organizations move from AI experimentation to production operating models. In this episode…
The Latency Goldilocks Zone Explained [not-audio_url] [/not-audio_url]

Duration: 48:13
Rafael (Head of Innovation, iFood) and Daniel (Data and AI Manager, iFood) pull back the curtain on ILO-Agent — iFood's conversational AI ordering system built for 200 million users across Latin America. Recorded live at…
Building MCP Before MCP Existed: Inside Despegar's Sofia Agent [not-audio_url] [/not-audio_url]

Duration: 41:13
Nicolas Alejandro Bogliolo is the AI PM at Despegar, the largest online travel agency in Latin America, and the engineer-product-hybrid behind Sofia, the GenAI travel concierge that beat most of the OTA world to a workin…
Voice Agent Use Cases [not-audio_url] [/not-audio_url]

Duration: 51:04
This episode is brought to you by the MLflow team. Check out more information at MLflow.org.What does it actually take to build voice AI at a billion-interaction scale? This episode features an ex-Amazon voice AI enginee…
It's 2026, and We're Still Talking Evals [not-audio_url] [/not-audio_url]

Duration: 40:56
Maggie Konstanty is an AI Product Manager at Prosus, one of the world's largest consumer internet companies, where she builds and evaluates AI agents for food ordering and ecommerce at scale. She's been inside the messy…
Why Agents are Driving Software Development to the Cloud [not-audio_url] [/not-audio_url]

Duration: 51:07
This episode is brought to you by Hyperbolic and the MLflow team. Check out more information at hyperbolic.ai and MLflow.org.Why AI Coding Agents Are Moving to the Cloud — With Zach Lloyd, CEO of WarpZach Lloyd is the fo…
The Modern Software Engineer [not-audio_url] [/not-audio_url]

Duration: 53:37
This episode is brought to you by the MLflow team. Check out more information at MLflow.org.Mihail Eric is Head of AI at Monaco and Adjunct Lecturer at Stanford University, where he teaches CS146S: "The Modern Software D…
We Cut LLM Latency by 70% in Production [not-audio_url] [/not-audio_url]

Duration: 1:05:20
Maher Hanafi is an engineering leader who went from zero AI experience to self-hosting LLMs at enterprise scale — managing GPU costs, optimizing inference with TensorRT LLM, and building an AI platform for HR tech. In th…
Getting Humans Out of the Way: How to Work with Teams of Agents [not-audio_url] [/not-audio_url]

Duration: 50:30
Rob Ennals is the creator of Broomy, an open-source IDE designed for working effectively with many agents in parallel. He previously worked at Meta, Quora, Google Search, and Intel Research. He has a PhD in Computer Scie…