Skip to content
Skillpedia
Agents7.8k · #12853

detect-zero-iteration-failure

What it does

This skill helps the AI and its maintainers classify agent runs that fail before doing any steps. It is for people who review and debug AI agent runs and need to know where the problem starts.

When to use it

  • ✓When an agent run reports zero steps and uses no tools or files.
  • ✓When a run log ends right after the first instruction, with no reasoning.
  • ✓When I want to tag a failure as a setup problem before looking at the agent's logic.

Skill link

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/detect-zero-iteration-failure/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/detect-zero-iteration-failure/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“My agent run finished with zero steps and no files. Please check whether it failed before it even started.”

5 new skills a week. 1 minute to read.

How it works

The AI checks the run for zero steps, no tool use and no output, then looks at setup items such as the environment, the prompt and resource limits instead of the agent's reasoning.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Detect Zero-Iteration Failure

This skill provides a workflow for identifying and classifying agent failures that occur prior to any task execution.

Identification Criteria

Flag a task execution as a Zero-Iteration Failure if all of the following conditions are met:

  1. Iteration Count: The agent reports 0 completed iterations.
  2. Tool Usage: No tools were invoked during the session.
  3. Artifacts: No documents, files, or code artifacts were created.
  4. Conversation Log: The log ends abruptly or contains only an initial error message without agent reasoning steps.

Diagnosis Strategy

When a Zero-Iteration Failure is detected, do not attempt standard agent-level debugging (e.g., analyzing reasoning chains or tool parameters). Instead, investigate system-level causes:

  1. Environment Health: Check if the runtime environment initialized correctly (e.g., dependencies installed, API keys loaded).
  2. Prompt Parsing: Verify if the initial user instruction was malformed or triggered safety filters immediately.
  3. Initialization Crash: Look for stack traces or panic logs occurring before the first agent step.
  4. Resource Limits: Check if memory or quota limits were hit before execution began.

Action Plan

  1. Tag the Failure: Label the incident as failure_mode: pre_execution rather than failure_mode: agent_logic.
  2. Escalate: Route to infrastructure or platform engineering rather than prompt engineering.
  3. Retry Strategy: If automating retries, reset the environment context before retrying, as the previous context may be poisoned.

Example Indicators

Status: Failed
Iterations: 0
Tools Called: []
Error: "Session initialization failed: Missing environment variable"
FAQ

What counts as a zero-iteration failure?

A run with zero completed steps, no tool calls, no created files and a log that stops early.

What causes are checked?

Setup problems such as the environment, prompt parsing, a startup crash or resource limits.

Should the agent's reasoning be debugged first?

No, the guide says to skip agent-level debugging until setup problems have been ruled out.

Details

Original description by the author

Identify and classify agent failures occurring before execution starts

repo: HKUDS/AgentPilot

Popularity

GitHub stars
7.8k
Ranking position
#12853
License
MIT
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills