Agent Trajectory Replay for Debugging Tool-Using AI Workflow Regressions
Year: 2026
Type: preprint
Abstract: Tool-using AI agents are difficult to debug because a failure may emerge from a sequence of planning steps, tool calls, intermediate errors, and final-output decisions rather than from a single response. This paper presents Agent Trajectory Replay, a small zero-dependency JavaScript package for summarizing, replaying, and diffing agent event traces. The package removes unstable timing fields before comparison, counts tool calls and errors, exposes final-output changes, and allows event handlers to rebuild state from a recorded trajectory. The contribution is a lightweight regression-debugging pattern for teams that need a simple way to compare agent behavior across model, prompt, or tool changes. This artifact bundle includes the manuscript, PDF, workflow figure, bibliography, metadata, and source notes grounded in the agent-trajectory-replay package.
Author: Katta, Mukunda Rao
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Keywords: agent debugging, JavaScript packages
Open Access status: green
OpenAlex ID: W7160384607
