- Home
- Skills
- Testing & Debugging
- Agent Failure Analyzer: Find Why AI Agent Runs Fail
More screenshots
Works with the AI Agents you already use
Agent Failure Analyzer: Find Why AI Agent Runs Fail
by AGI Tools
Find why your AI agent runs fail from their real logs: tool errors, rate limits, context overflows and cut-off answers grouped into ranked root causes, with confidence levels and a CI gate.
$9.99
Agent Failure Analyzer: Find Why AI Agent Runs Fail
Example session with this skill installed
Why did my support agent's runs fail last week? The exported logs are in logs/week-47.jsonl.
- Read your context and instructions
- Compiled the agent failure analyzer
Week 47 (included demo, invented data): 14 of 27 runs failed (51.8%); exit code 1 with --fail-above 0.05.
Top root causes
- tool_error in check_inventory, 'inventory service timeout after
ms (request <id>)': 4 runs, medium confidence; 2 of them retried at once and failed again (repeat); 2 other runs recovered by themselves.
- api_error, rate limit (HTTP 429): 3 runs, high confidence.
- truncated_output at the output token limit: 2 runs, high confidence.
- unknown_tool refund_order (never declared): 1 run; its error result and the empty answer that follow are downstream.
Also: a context overflow, broken argument JSON, a content-filter stop, and one transcript that stops right after an error (low confidence). For review only: 1 refusal, 1 polling loop, 1 unexplained failure. 1 cut-off line skipped.
Week 48 after the fixes: 1 of 27 runs failed (3.7%), the context overflow; 6 runs recovered from a first error; exit 0.
Connects securely to your tools. The creator never sees your data.
About this skill
Agent runs fail for a handful of reasons, but in logs they look like thousands of different errors: every timeout has its own duration, every rate limit its own request id. Agent Failure Analyzer reads your agent's real logs (OpenAI Chat Completions or Responses API, Anthropic Messages, chat transcripts) with a real Python program, finds the failure signals in every run and groups them into a short, ranked list of root causes.
It tells the first failure of a run apart from what followed it, failed retries from errors the agent recovered from, and gives every cause a confidence level, so you fix the right thing first.
Signals: tool errors and timeouts, API errors and rate limits, context overflows, answers cut at the token limit or stopped by a content filter, empty answers, undeclared tools and broken argument JSON. Refusals, call loops and unexplained failures are listed for review, never counted as failures.
Use --fail-above in CI to block a release when too many runs fail. Runs locally on Python 3.9+, standard library only, no API key; secrets and emails in excerpts are masked, and --no-values leaves excerpts out.
Built by AGI Tools. Not affiliated with Agensi, Anthropic or OpenAI.
It reads logs only and cannot see failures that left no trace; answers that report one are listed as unexplained.
Causes are inferred from the order of the signals; read the example records before concluding.
Tool errors are recognised from error flags, JSON error fields and common error openings.
Masking covers the listed secret formats only; use --no-values to leave every excerpt out.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Software
Python 3.9+
Exported logs of your agent (JSONL or JSON). The skill itself needs no account, package or API key.
Permissions
File Scopes
Terminal: runs scripts/analyze.py with Python. Read: the log files you name. Write: the report folder you name. Environment variable SOURCE_DATE_EPOCH (optional) fixes the report date for reproducible reports. No network access.
What's inside
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.