More Practical AI episodes

Building Durable AI Agents thumbnail

Building Durable AI Agents

Published 9 Jul 2026

Duration: 00:46:38

The evolution of AI agents from local tools to enterprise systems highlights challenges in scalability, reliability, and infrastructure, emphasizing the need for robust frameworks, open-source innovation, and observability in managing complex, distributed workflows.

Episode Description

What does it take to move AI agents from demos to reliable production systems? In this episode, Hamza Tahir explores how MLOps principles are shaping...

Overview

The podcast explores the evolving landscape of AI agents, emphasizing their transition from local tools to enterprise-grade systems capable of handling complex workflows. Key topics include the challenges of ensuring durability in agents, particularly in cloud environments, where issues like state management, retries, and failure recovery complicate reliability. The discussion highlights the need for reimagining traditional ML pipeline approachesstructured as deterministic DAGswith dynamic, graph-based agent systems that execute decision-making without explicit DAG visualization. ZenMLs new project, Kitoru, is presented as a solution to these challenges, focusing on runtime resilience through state checkpointing, replay capabilities, and flexible execution paths. The podcast also addresses the shift from ML Ops to agent-based systems, where principles of safety and retryability from ML Ops are being re-applied to manage non-deterministic agent workflows.

Infrastructure considerations, such as the "harness" conceptseparating model execution from tool integrationare critical for enabling agents to interact with external systems. The dialogue contrasts proprietary and open-standard harnesses, noting tensions between model-specific integrations for performance and open frameworks that reduce dependency on particular models. Enterprise adoption of agents is framed as a growing trend, requiring scalable architectures, domain-specific infrastructure, and robust platforms to manage multi-agent fleets. Challenges include handling distributed execution, ensuring idempotency in task queues, and mitigating risks in live updates without disrupting workflows. The conversation also touches on broader industry shifts, such as the commoditization of AI models and the rise of open-source tools like Keteru, which aim to support modular, observable agent systems. Finally, the discussion emphasizes the need for holistic system design, iterative optimization, and the development of companion agents to automate troubleshooting and experimentation in complex environments.

What If

  • What if you redefined agent durability using state checkpointing?

    • Move: Implement a state checkpointing system that captures agent execution states at critical intervals (e.g., during Kubernetes pod transitions) and stores them in blob storage.
    • Why Now?: Cloud-based agents are increasingly fragile due to unoptimized architectures and distributed failures, making durability a bottleneck for production readiness.
    • Expected Upside: Enables replay, debugging, and recovery of failed agent runs, reducing downtime and improving trust in agent-driven workflows.
  • What if you decoupled agent execution from API calls via message queues?

    • Move: Introduce a message broker (e.g., RabbitMQ, Kafka) to handle task distribution between APIs and worker agents, ensuring idempotent task execution and worker resilience.
    • Why Now?: Direct API-to-worker task execution risks failure due to worker unavailability, a common issue in scaling agent fleets for enterprise use cases.
    • Expected Upside: Achieve scalable, fault-tolerant agent orchestration by isolating stateless APIs from stateful workers, aligning with modern microservices patterns.
  • What if you built an open-ended workflow orchestration framework for agents?

    • Move: Leverage existing open-source tools like Enamel (used in Kitoru) to define dynamic, retryable agent workflows that adapt to conditional branching and external tool interactions.
    • Why Now?: The commoditization of AI models shifts value to infrastructure, and open frameworks allow solo developers to avoid vendor lock-in while enabling complex agent behaviors.
    • Expected Upside: Create modular, reusable agent pipelines that can evolve with changing requirements, reducing reliance on proprietary solutions and accelerating deployment.

Takeaway

  • Implement durable agent workflows with checkpointing and replay capabilities
    Use tools like Kiteru (built on Enamel) to capture state checkpoints during agent execution, store them in external databases, and enable replaying traces for troubleshooting, model-swapping, or experimentation.

  • Decouple model harnesses from execution environments
    Design agent systems using a "harness" that maps model outputs (e.g., token sequences) to executable code, ensuring flexibility and reliability. Explore open frameworks like Lengraf or Pydantic AI to avoid model-specific lock-in.

  • Adopt cloud-native infrastructure for scalable agent deployments
    Leverage orchestration tools (e.g., Kubernetes, AWS ECS) and task queues (e.g., message brokers) to manage distributed agent workloads, ensuring fault tolerance, idempotency, and efficient resource utilization.

  • Invest in internal agent platforms for complex workflows
    For enterprise-scale operations, build or adopt domain-specific agent platforms (similar to MLOps) that integrate observability, state management, and tools like Gitaroo to analyze execution traces and prioritize optimization efforts.

  • Prioritize observability and experiment-driven agent refinement
    Integrate checkpointing, logging, and debugging tools to monitor agent behavior in production. Use companion agents or automation scripts to identify issues, run experiments, and iterate on performance without disrupting workflows.

Recent Episodes of Practical AI

2 Jul 2026 Image Generation and Visual Intelligence with Black Forest Labs

The evolution of generative AI progresses from basic outputs to cinematic-quality media via diffusion and autoregressive models, with innovations in noise-removal techniques, preference-based evaluation, multimodal integration, and efficiency-focused research for real-world applications.

25 Jun 2026 AIUC-1: Building trust in AI agents

The development of AI safety and ethics standards, employing a flywheel model of audits, certifications, and red teaming, addresses risks to vulnerable groups and enterprise adoption through frameworks like three-layer structures, probabilistic risk management, and systemic safeguards beyond technical controls.

4 Jun 2026 Breaking down the 2026 Stanford AI Index Report

Recent advancements in AI, highlighted by the Stanford AI Index Report's findings on accelerating capabilities, human-level performance in specialized tasks, impacts on education and work, challenges like flawed benchmarks and the "jagged frontier," robotics limitations, U.S.-China leadership dynamics, governance gaps, and broader implications for labor, creativity, and policy.

28 May 2026 Rebooting Enterprise AI with MCP and Kubernetes

The Multi-Cloud Protocol (MCP) bridges AI systems with enterprise infrastructure, enabling secure, scalable interactions between LLMs and traditional tools via standardized, governance-focused operational frameworks.

21 May 2026 Hermes Agent: Agents that grow with you

Noose Research's mission to democratize AI through open-source tools like the Hermes Agent emphasizes efficiency, distributed training, ethical alignment, and agentic systems, while navigating challenges like monopolization, geopolitical competition, and the balance between open-source ideals and commercial interests, alongside debates on AI's creative limits and societal impact.

More Practical AI episodes