Agents Need a Save Button: Kitaru's Replay Capability

ZenML's Hamza Tahir discusses Kitaru, a tool enabling 'what if' scenarios for AI agents by replaying past executions with modified parameters.

9 min read
Presentation slide showing 'What if you could ask "what if?" about a run that already happened?'
Hamza Tahir presents the concept of persistent state for AI agents.· AI Engineer

Visual TL;DR. AI Agent Limitations leads to No 'What If' Scenarios. AI Agent Limitations due to Traces Are Insufficient. Traces Are Insufficient needs Durable Runtime Layer. Kitaru by ZenML provides Durable Runtime Layer. Kitaru by ZenML enables Unlock 'What If'. No 'What If' Scenarios solved by Kitaru by ZenML. Unlock 'What If' generates Actionable Insights.

  1. AI Agent Limitations: lack of a persistent 'save button' for revisiting past execution states
  2. No 'What If' Scenarios: hinders asking crucial questions about agent behavior and alternative outcomes
  3. Traces Are Insufficient: telemetry data disconnected from agent's actual runtime environment and variables
  4. Kitaru by ZenML: tool enabling 'what if' scenarios by replaying past executions with modified parameters
  5. Durable Runtime Layer: augments agent traces with true checkpoints, preserving execution context
  6. Unlock 'What If': allows developers to modify parameters and observe different agent behaviors
  7. Actionable Insights: understand why an agent behaved a certain way and optimize future performance
Visual TL;DR
Visual TL;DR, startuphub.ai AI Agent Limitations due to Traces Are Insufficient. Kitaru by ZenML enables Unlock 'What If'. Unlock 'What If' generates Actionable Insights due to enables generates AI Agent Limitations Traces Are Insufficient Kitaru by ZenML Unlock 'What If' Actionable Insights From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai AI Agent Limitations due to Traces Are Insufficient. Kitaru by ZenML enables Unlock 'What If'. Unlock 'What If' generates Actionable Insights due to enables generates AI AgentLimitations Traces AreInsufficient Kitaru by ZenML Unlock 'What If' ActionableInsights From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai AI Agent Limitations due to Traces Are Insufficient. Kitaru by ZenML enables Unlock 'What If'. Unlock 'What If' generates Actionable Insights due to enables generates AI Agent Limitations lack of a persistent 'save button' forrevisiting past execution states Traces Are Insufficient telemetry data disconnected from agent'sactual runtime environment and variables Kitaru by ZenML tool enabling 'what if' scenarios byreplaying past executions with modifiedparameters Unlock 'What If' allows developers to modify parameters andobserve different agent behaviors Actionable Insights understand why an agent behaved a certainway and optimize future performance From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai AI Agent Limitations due to Traces Are Insufficient. Kitaru by ZenML enables Unlock 'What If'. Unlock 'What If' generates Actionable Insights due to enables generates AI AgentLimitations lack of apersistent 'savebutton' for… Traces AreInsufficient telemetry datadisconnected fromagent's actual… Kitaru by ZenML tool enabling 'whatif' scenarios byreplaying past… Unlock 'What If' allows developersto modifyparameters and… ActionableInsights understand why anagent behaved acertain way and… From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai AI Agent Limitations leads to No 'What If' Scenarios. AI Agent Limitations due to Traces Are Insufficient. Traces Are Insufficient needs Durable Runtime Layer. Kitaru by ZenML provides Durable Runtime Layer. Kitaru by ZenML enables Unlock 'What If'. No 'What If' Scenarios solved by Kitaru by ZenML. Unlock 'What If' generates Actionable Insights leads to due to needs provides enables solved by generates AI Agent Limitations lack of a persistent 'save button' forrevisiting past execution states No 'What If' Scenarios hinders asking crucial questions aboutagent behavior and alternative outcomes Traces Are Insufficient telemetry data disconnected from agent'sactual runtime environment and variables Kitaru by ZenML tool enabling 'what if' scenarios byreplaying past executions with modifiedparameters Durable Runtime Layer augments agent traces with truecheckpoints, preserving execution context Unlock 'What If' allows developers to modify parameters andobserve different agent behaviors Actionable Insights understand why an agent behaved a certainway and optimize future performance From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai AI Agent Limitations leads to No 'What If' Scenarios. AI Agent Limitations due to Traces Are Insufficient. Traces Are Insufficient needs Durable Runtime Layer. Kitaru by ZenML provides Durable Runtime Layer. Kitaru by ZenML enables Unlock 'What If'. No 'What If' Scenarios solved by Kitaru by ZenML. Unlock 'What If' generates Actionable Insights leads to due to needs provides enables solved by generates AI AgentLimitations lack of apersistent 'savebutton' for… No 'What If'Scenarios hinders askingcrucial questionsabout agent… Traces AreInsufficient telemetry datadisconnected fromagent's actual… Kitaru by ZenML tool enabling 'whatif' scenarios byreplaying past… Durable RuntimeLayer augments agenttraces with truecheckpoints,… Unlock 'What If' allows developersto modifyparameters and… ActionableInsights understand why anagent behaved acertain way and… From startuphub.ai · The publishers behind this format

In the rapidly evolving world of AI agents, a critical gap exists: the absence of a persistent 'save button' that allows developers to revisit and modify past execution states. This limitation hinders the ability to ask crucial 'what if' questions about agent behavior, such as whether a different model or tool configuration would have yielded a cheaper or faster outcome. Hamza Tahir, co-founder of ZenML and builder of Kitaru, highlighted this challenge in a recent presentation, emphasizing the need for a durable runtime layer that can augment agent traces with true checkpoints.

Agents Need a Save Button: Kitaru's Replay Capability - AI Engineer
Agents Need a Save Button: Kitaru's Replay Capability — from AI Engineer

Tahir explained that while traces offer valuable telemetry data on tool calls and their inputs/outputs, they are inherently disconnected from the agent's actual runtime environment. This means that variables, in-flight file systems, decision-making logic, and the code itself are lost once the trace is emitted. This disconnection prevents developers from precisely understanding why an agent behaved a certain way or exploring alternative execution paths without rerunning the entire process from scratch.

The Power of Replay: Unlocking 'What If' Scenarios

The core of Tahir's argument centers on the concept of replayability. Just as users have been able to save and revisit their work in documents since the 1980s, agents need a similar mechanism. A 'save button' for agents would enable them to store their state at various checkpoints, allowing for the re-execution of specific segments with modified parameters. This capability opens up a range of powerful analytical and debugging scenarios:

  • Model Swapping: Test the impact of using cheaper, open-source models by replaying an execution with a different model selected at a specific checkpoint.
  • Tool Mocking: Override the output of a tool to simulate different conditions or isolate specific functionalities.
  • Degradation Testing: Intentionally degrade a tool's performance to observe how the agent handles errors or unexpected behavior.

Tahir introduced Kitaru, a new tool from ZenML, as a solution that bridges this gap. Kitaru provides a durable runtime layer beneath existing agent frameworks, augmenting traces with code execution details and environmental context. This allows for the creation of persistent checkpoints that capture the complete state of an agent's run, making replay and 'what if' analysis feasible.

From Production Traces to Actionable Insights

The true power of this approach lies in its ability to leverage production data. Tahir argued that production runs serve as the ultimate test set, capturing real-world inputs, edge cases, and actual tool responses. By having a system like Kitaru in place, organizations can mine their existing production traces to perform detailed analysis and drive improvements. For instance, an agent handling customer refunds after chargeback disputes could be analyzed to see if language variations or escalation decisions could have been handled differently, potentially leading to cost savings or faster resolution times.

The process, as Tahir outlined, involves a four-step methodology: Checkpoint, Replay, Diff, and Decide. By checkpointing key runs (expensive, failed, or risky ones), replaying them with a single change, diffing the results, and then making informed decisions about shipping, routing, or holding, teams can systematically optimize their agents. He cited DoorDash's success with a similar simulation and evaluation platform for their support chatbots, which reportedly reduced hallucination rates by 90% and cut down testing time from hours to minutes.

The Importance of Cohort Analysis and Avoiding False Economies

Tahir cautioned against relying on single replays, emphasizing that "one replay is an anecdote, ten is evidence." He highlighted that models passing tasks 60% of the time might only be self-consistent a quarter of the time, underscoring the need for cohort analysis to understand the broader distribution of outcomes. A naive model swap, he warned, can lead to a 'false economy' if it appears cheaper on paper but degrades the overall value created by the agent.

The ultimate goal is to close the loop on agent development and evaluation, turning past production runs into a continuous cycle of improvement. By integrating replay capabilities into the release gate process, teams can ensure their agents are not only cost-effective but also robust and reliable, ultimately leading to better, cheaper, and faster systems.

The presentation concluded with a call to action: "Wrap your agent. Start replaying." Kitaru is available as an open-source, self-hosted solution, providing the necessary infrastructure for production ML agents to achieve this crucial level of introspection and optimization.

© 2026 StartupHub.ai. All rights reserved. Do not enter, scrape, copy, reproduce, or republish this article in whole or in part. Use as input to AI training, fine-tuning, retrieval-augmented generation, or any machine-learning system is prohibited without written license. Substantially-similar derivative works will be pursued to the fullest extent of applicable copyright, database, and computer-misuse laws. See our terms.