Who it is forA team lead who sees an agent stall on the same error and wants to know where it got stuck.
The problemLong sessions hide repeated failures inside many tool calls, so it is hard to see which error wasted the most time.
The outcomeA ranked list of error classes with the longest run of the same failing command, and a replay position for each.
What you need first
- Python 3.11 or newer
- uv, pipx, or pip to run agentplay
- Existing session transcripts from a supported agent such as Claude Code, Codex, or Cursor on the same machine
Steps
- Run
uvx agentplayto build maps and open the viewer. - Open the session and select the Errors tab.
- Read the list, which is grouped by error class and ranked by the longest run of the same failing command.
- Click the top row to seek the replay to that error and see the surrounding steps.
Prompt for your agent
Using the agentplay repo at https://github.com/Entelligence-AI/agentplay, run `uvx agentplay` and open the session <session name or id>. Open the Errors tab, list the top three error classes with their longest repeated failing command, and state the step where each run began. Verify that each count matches the error rows shown in the Errors tab.
Caveat. Command arguments are not stored, so the Errors tab identifies commands by verb such as pytest or git log, not by their full arguments.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Entelligence-AI/agentplay and "Find the commands an agent kept retrying and failing"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer