{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "entelligence-ai-agentplay--find-repeated-failing-commands",
 "repo": "Entelligence-AI/agentplay",
 "repo_url": "https://github.com/Entelligence-AI/agentplay",
 "repo_slug": "entelligence-ai-agentplay",
 "title": "Find the commands an agent kept retrying and failing",
 "page_title": "How to find the commands an agent kept retrying and failing with Agentplay",
 "summary": "Use the Errors tab to see which failing command ran most often in a row and jump to it in the replay.",
 "who": "A team lead who sees an agent stall on the same error and wants to know where it got stuck.",
 "problem": "Long sessions hide repeated failures inside many tool calls, so it is hard to see which error wasted the most time.",
 "outcome": "A ranked list of error classes with the longest run of the same failing command, and a replay position for each.",
 "steps": [
  "Run `uvx agentplay` to 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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/entelligence-ai-agentplay/find-repeated-failing-commands/",
 "md": "https://dedupedai.com/use-cases/entelligence-ai-agentplay/find-repeated-failing-commands/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/entelligence-ai-agentplay--find-repeated-failing-commands.json",
 "api_version": "v1"
}
