跳到正文
Skillpedia
智能体7.8k · #12854

detect-zero-iteration-failures

它能做什么

这项技能是一份清单,用于识别从未真正开始工作的智能体运行。它适合查看智能体日志、需要找出问题是否来自系统的人。

适用场景

  • ✓当一次智能体运行没有迭代、没有工具使用,也没有创建文件的时候。
  • ✓当对话日志中只有最初的指令,没有任何智能体回复的时候。
  • ✓当我需要把一次失败归入某个类别,例如初始化崩溃、环境问题或资源耗尽的时候。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/detect-zero-iteration-failures/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请检查我的智能体日志。它没有工具使用,也没有文件,请告诉我这次失败属于哪一类。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会逐项核对一份指标清单,然后把这次失败归入某个类别,例如初始化崩溃、缺少依赖项或资源耗尽。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Detect Zero-Iteration Failures

This skill helps identify and properly categorize agent failures that occur before any task execution begins. These failures require system-level investigation rather than agent-level debugging.

When to Apply

Use this skill when analyzing agent task executions where:

  1. Iteration count is 0 - The agent completed zero iterations
  2. No tool usage - No tools were invoked during the execution
  3. No artifacts created - No files, documents, or outputs were produced
  4. Minimal or no conversation log - Only the user instruction exists, with no agent responses

Identification Checklist

Check the following indicators to confirm a zero-iteration failure:

[ ] Iterations reported: 0
[ ] Tool invocations: None
[ ] Files created: None  
[ ] Conversation turns: 1 (user instruction only)
[ ] Agent self-report: Indicates failure before execution began

Failure Categories

Zero-iteration failures typically indicate one of these pre-execution issues:

Category Description Investigation Focus
Initialization crash Agent failed during setup System logs, environment config
Environment issue Missing dependencies or resources Infrastructure, permissions
Prompt parsing error Input could not be processed Prompt format, encoding
Resource exhaustion Quota or limits exceeded System capacity, rate limits

Diagnostic Steps

Step 1: Verify Zero-Iteration Indicators

def is_zero_iteration_failure(execution_log):
    """Check if execution shows zero-iteration failure pattern."""
    indicators = {
        'iterations': execution_log.get('iterations', 0) == 0,
        'tools_used': len(execution_log.get('tool_calls', [])) == 0,
        'artifacts': len(execution_log.get('files_created', [])) == 0,
        'conversation_length': len(execution_log.get('messages', [])) <= 1
    }
    return all(indicators.values())

Step 2: Check System-Level Indicators

Look for these error patterns in system logs:

  • Environment errors: Missing packages, permission denied, path not found
  • Initialization errors: Connection failures, timeout during setup
  • Resource errors: Memory exceeded, quota limits, rate limiting
  • Parsing errors: Invalid JSON, encoding issues, malformed input

Step 3: Route Investigation Appropriately

IF zero-iteration failure detected:
    └── Do NOT debug agent logic or prompt instructions
    └── DO investigate:
        ├── System initialization logs
        ├── Environment configuration
        ├── Resource allocation and limits
        └── Input parsing and validation

Response Actions

For Analysts

  1. Flag as system-level issue - Do not attribute to agent behavior
  2. Check infrastructure health - Verify system components are operational
  3. Review recent changes - Look for deployments, config updates, or quota changes
  4. Escalate appropriately - Route to infrastructure/platform team, not agent developers

For Automated Systems

def categorize_failure(execution_log):
    """Categorize failure type for routing."""
    if is_zero_iteration_failure(execution_log):
        return {
            'category': 'PRE_EXECUTION_FAILURE',
            'severity': 'HIGH',
            'investigation_team': 'INFRASTRUCTURE',
            'agent_debug_required': False,
            'recommended_actions': [
                'Check system initialization logs',
                'Verify environment configuration',
                'Review resource quotas and limits',
                'Validate input parsing pipeline'
            ]
        }
    else:
        return {
            'category': 'EXECUTION_FAILURE',
            'severity': 'MEDIUM',
            'investigation_team': 'AGENT_DEVELOPMENT',
            'agent_debug_required': True
        }

Example Analysis

Zero-Iteration Failure Example:

Task ID: 69a8ef86-phase1
Iterations: 0
Tools Used: None
Files Created: None
Messages: [User instruction only]
Agent Report: "Failed before executing any iterations"

Analysis: PRE_EXECUTION_FAILURE
- No agent logic was executed
- Failure occurred during initialization
- Action: Investigate system environment, not agent prompts

Normal Execution Failure (for contrast):

Task ID: abc123
Iterations: 3
Tools Used: [read_file, write_file, shell_agent]
Files Created: [output.txt]
Messages: [User instruction, Age
常见问题

什么是初始化崩溃?

指智能体仍在启动时就发生的失败,此时任务工作尚未开始。

哪些迹象能证实这类失败?

报告的迭代为零、没有工具调用、没有创建文件,且日志中只有用户的指令。

谁应该排查这些失败?

指南要求先查看系统层面,例如日志和环境设置。

详情

作者的原始描述

Identify and handle pre-execution agent failures occurring before any iterations or tool usage

repo: HKUDS/AgentPilot

热度

GitHub 星标
7.8k
排名
#12854
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能