Skip to main content
Practical AI

Building Durable AI Agents

46 min episode · 2 min read
·
Hamza Tahir

Episode

46 min

Read time

2 min

Topics

Startups, Artificial Intelligence, Software Development

AI-Generated Summary

Key Takeaways

  • Agent Harness Architecture: The harness — the software program that maps LLM token outputs to actual tool calls and actions — is distinct from the model itself. Anthropic's Claude Opus 4.8 and Claude Code have become tightly coupled through reinforcement learning, meaning swapping in GPT-5.5 into the Claude Code harness produces measurably worse tool-calling accuracy and task performance.
  • Production Infrastructure Pattern: Deploying agents beyond a local machine requires a message broker between the API entry point and workers. A FastAPI server places events on a durable message queue; workers spin up independently to process agentic loops. This prevents total failure when individual workers go down due to network issues or compute contention at scale.
  • Checkpoint Everything First: Before optimizing agent performance, instrument every tool call and LLM interaction as a checkpoint stored in an external database or blob storage. After one week of production runs, filter for the most expensive successful traces, identify common bottlenecks, and address failure modes — rather than writing defensive code that slows development velocity.
  • Model Supply Chain Risk: Enterprises building agents on proprietary model providers face operational risk if those models become unavailable. Open-source models like GLM-4 now reach approximately 95% of Claude Opus 4.8 performance, making internal agent platforms built on open harnesses like LangGraph or Pydantic AI a viable strategy for avoiding single-provider dependency.
  • Replay-Based Experimentation: Kitaru enables replaying production agent traces with swapped models or modified tool sets to evaluate cost and quality tradeoffs without re-running full workflows from scratch. A key limitation: replacing a model mid-trace produces a broken experiment because the agent may never have reached that state with the substitute model from the start.

What It Covers

Hamza Tahir, cofounder of ZenML and creator of Kitaru, explains why AI agents running in cloud environments fail at scale, how MLOps principles apply to agentic systems, and what infrastructure patterns — checkpointing, task queues, replay — make agents durable in production enterprise deployments.

Key Questions Answered

  • Agent Harness Architecture: The harness — the software program that maps LLM token outputs to actual tool calls and actions — is distinct from the model itself. Anthropic's Claude Opus 4.8 and Claude Code have become tightly coupled through reinforcement learning, meaning swapping in GPT-5.5 into the Claude Code harness produces measurably worse tool-calling accuracy and task performance.
  • Production Infrastructure Pattern: Deploying agents beyond a local machine requires a message broker between the API entry point and workers. A FastAPI server places events on a durable message queue; workers spin up independently to process agentic loops. This prevents total failure when individual workers go down due to network issues or compute contention at scale.
  • Checkpoint Everything First: Before optimizing agent performance, instrument every tool call and LLM interaction as a checkpoint stored in an external database or blob storage. After one week of production runs, filter for the most expensive successful traces, identify common bottlenecks, and address failure modes — rather than writing defensive code that slows development velocity.
  • Model Supply Chain Risk: Enterprises building agents on proprietary model providers face operational risk if those models become unavailable. Open-source models like GLM-4 now reach approximately 95% of Claude Opus 4.8 performance, making internal agent platforms built on open harnesses like LangGraph or Pydantic AI a viable strategy for avoiding single-provider dependency.
  • Replay-Based Experimentation: Kitaru enables replaying production agent traces with swapped models or modified tool sets to evaluate cost and quality tradeoffs without re-running full workflows from scratch. A key limitation: replacing a model mid-trace produces a broken experiment because the agent may never have reached that state with the substitute model from the start.

Notable Moment

Tahir describes updating a production agent as genuinely terrifying — even adding a single word to a system prompt can produce unpredictable outcomes across hundreds of millions of in-flight enterprise executions, revealing that agent versioning and safe deployment remain largely unsolved problems in 2025.

Know someone who'd find this useful?

You just read a 3-minute summary of a 43-minute episode.

Get Practical AI summarized like this every Monday — plus up to 2 more podcasts, free.

Pick Your Podcasts — Free

Keep Reading

More from Practical AI

We summarize every new episode. Want them in your inbox?

Similar Episodes

Related episodes from other podcasts

Explore Related Topics

This podcast is featured in Best AI Podcasts (2026) — ranked and reviewed with AI summaries.

Read this week's Startups & Product Podcast Insights — cross-podcast analysis updated weekly.

You're clearly into Practical AI.

Every Monday, we deliver AI summaries of the latest episodes from Practical AI and 192+ other podcasts. Free for one show.

Start My Monday Digest

No credit card · Unsubscribe anytime