WhoBuilt

Your Agents Need a Save Button

Jul 18, 2026· 17 min· 1.7K views·Watch on YouTube

Speaker

Hamza Tahir, ZenML co-founder, presents at AI Engineer on checkpointing and replaying agent executions to evaluate changes using production data.

Agents need durable state

Hamza contrasts document autosave with agent traces, which capture tool inputs and outputs but leave out runtime state, files, decisions, and code. He argues that connecting observability spans to execution would make agent runs replayable.

Replay runs to test changes

With checkpoints, teams can revisit an execution and test a different model, mock a tool, or simulate failures. Hamza describes this as a way to ask what-if questions using the state of a real run, including a customer support agent handling refunds.

Checkpoint and compare with Kitaro

Hamza demonstrates Kitaro, a ZenML tool that checkpoints execution state and supports replay. He changes a model to GPT-5 Nano, then mocks a policy lookup tool, and compares both replays with the original. In the example, the policy change leads to a different outcome: the agent marks the case safe to answer instead of needing review.

Evaluate cohorts before shipping

Hamza recommends replaying groups of costly, slow, or risky runs and analyzing the results across a cohort. A single model swap can appear cheaper while reducing the value delivered, so he advises against making a decision from one or two examples. In his demo, cohort analysis concludes that the cheaper model should not ship for those support cases.

Build a production feedback loop

The proposed process starts with real production runs, forms relevant cohorts, replays changes at scale, and then decides whether to ship, route, or hold. Hamza says to automate as much of the loop as possible while keeping a human involved in the final decision.

Takeaways

  • Capture runtime state alongside traces so agent runs can be replayed from code.
  • Use checkpoints to test model, tool, or policy changes against real executions.
  • Compare changes across cohorts; one replay is only an anecdote.
  • Measure outcomes and value alongside cost and speed when evaluating a model swap.
  • Keep a human in the final ship, route, or hold decision.

Mentioned in this talk

Search inside this talk

What was claimed 4

  • founded
    Co-founder
    “I'm one of the co-founders.”
    YouTube
    Verified4 sources· Talk, Web· archived
  • metric
    DoorDash: Replay simulations took five minutes instead of hours; 90% fewer hallucinations; results within two points of production
    “With hundreds of simulations, they saw 90% fewer hallucinations, and the results were still within two points of what they'd seen in production.”
    YouTube
    Unverified1 source· Talk
  • launched
    ZenML launched Kitaro
    “Kitaro is a very new tool launched by the team at ZenML.”
    YouTube
    Unverified1 source· Talk
  • feature
    Kitaro: Checkpoints agent execution state and runs replay scenarios
    “It does all the checkpointing we were just talking about, and then runs replay scenarios.”
    YouTube
    Unverified1 source· Talk

Related talks