Agents are Just While Loops  episode artwork

EPISODE · May 15, 2026 · 41 MIN

Agents are Just While Loops

from MLOps.community · host Demetrios

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 recursivelyInner harness vs outer harness: Why Pydantic AI owns the inner loop while production deployment needs a separate runtime layerWhat "long-running" actually means: Why the infrastructure we need to build is about extrapolating the future, not defining a time window todayDurable 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 taxAnthropic 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 debateHuman-in-the-loop, done right: The pod-kill-and-resume pattern, and why warm pools matter less when your agent runs for daysKitaru: ZenML's new open source durable execution runtime: zero-config local, Kubernetes/SageMaker/Vertex in production, built on Pydantic AI integrationArguing with Claude about Temporal: Hamza's story of spending hours getting an LLM to admit ZenML and Temporal solves the same problemIf 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 & RESOURCESKitaru on GitHub: https://github.com/zenml-io/kitaruKitaru launch blog post: https://www.zenml.io/blog/kitaru-launchKitaru on Hacker News: https://news.ycombinator.com/item?id=47520115Hamza 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

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 recursivelyInner harness vs outer harness: Why Pydantic AI owns the inner loop while production deployment needs a separate runtime layerWhat "long-running" actually means: Why the infrastructure we need to build is about extrapolating the future, not defining a time window todayDurable 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 taxAnthropic 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 debateHuman-in-the-loop, done right: The pod-kill-and-resume pattern, and why warm pools matter less when your agent runs for daysKitaru: ZenML's new open source durable execution runtime: zero-config local, Kubernetes/SageMaker/Vertex in production, built on Pydantic AI integrationArguing with Claude about Temporal: Hamza's story of spending hours getting an LLM to admit ZenML and Temporal solves the same problemIf 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 & RESOURCESKitaru on GitHub: https://github.com/zenml-io/kitaruKitaru launch blog post: https://www.zenml.io/blog/kitaru-launchKitaru on Hacker News: https://news.ycombinator.com/item?id=47520115Hamza 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

NOW PLAYING

Agents are Just While Loops

0:00 41:11

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

She’s a Hazard to Herself She’s a Hazard Hi there, I’m Mallory, and I’d like to invite you into our world with “She’s a Hazard to Herself!” Join us as we navigate life with Multiple Sclerosis from the seat of my power wheelchair. Discover stories of resilience, family, and the community we’ve built around chronic illness. Whether you’re impacted by MS or want to learn from our journey, there’s something here for you. So why wait? Subscribe to “She’s a Hazard to Herself” on your favorite podcast app and be part of our journey today. Let’s lift each other up, one episode at a time! Tips, News and Stories for Older Adults Esther C Kane CAPS, C.D.S. "Tips, News, and Stories for Older Adults" delivers weekly insights tailored for seniors. We bring you summaries of curated news, practical advice, and inspiring stories that matter to the 55+ community. From health and finance to technology and lifestyle, our content keeps you informed and engaged. Sourced from trusted outlets, each episode offers valuable information for navigating your golden years. Join us as we explore aging with positivity, wisdom, and engaging stories. Your perfect companion for staying active, learning, and embracing life's later chapters. Prayer Time Heir Waves Prayer Time A podcast especially for our Prayer Time community NEWMORROW SESSIONS - A PodCast Series on the Future of Hospitality Mario C. Bauer, Florian Schneider, Axel Weber & Dr. Tillman Bardt The Newmorrow PodCast is more than a podcast — it's a platform for open dialog on the future of our business, a platform for those building what doesn’t exist yet. Here, we share and embrace our passion for the hospitality industry, but we won’t romanticize the journey. We ask the tough questions, confront uncomfortable truths, and prepare for a future that resists easy answers. We believe that the tougher and wilder times become, the more openly, honestly and humanely people need to talk to each other and act together. We believe, openness, togetherness, and truthfulness should also be cornerstones of a professional community to develop our utopian idea of „open source“. This is a space where visionaries don’t just imagine the future — they wrestle with the paradoxes that shape it: success vs. happiness, data vs. instinct, stability vs. reinvention. Join leaders, entrepreneurs, and thinkers as they share not what made them — but what’s actively shaping them, now and next. So tune in

Frequently Asked Questions

How long is this episode of MLOps.community?

This episode is 41 minutes long.

When was this MLOps.community episode published?

This episode was published on May 15, 2026.

What is this episode about?

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...

Can I download this MLOps.community episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!