Chuyển đến nội dung
Skillpedia
Agent7.8k · #12854

detect-zero-iteration-failures

Skill này làm gì

Skill này là danh sách kiểm tra để nhận diện các lần chạy agent chưa bao giờ bắt đầu công việc thực sự. Dành cho người xem nhật ký agent cần biết vấn đề có xuất phát từ hệ thống hay không.

Khi nào nên dùng

  • ✓Khi một lần chạy agent không có vòng lặp, không dùng công cụ và không tạo tệp nào.
  • ✓Khi nhật ký hội thoại chỉ chứa chỉ thị gốc và không có phản hồi nào của agent.
  • ✓Khi tôi cần xếp một lỗi vào loại như sự cố khởi tạo, vấn đề môi trường hoặc cạn kiệt tài nguyên.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/detect-zero-iteration-failures/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy kiểm tra nhật ký agent của tôi. Nó không có việc dùng công cụ và không có tệp, nên hãy cho tôi biết lỗi này thuộc loại nào.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI chạy qua danh sách các chỉ báo, rồi đối chiếu lỗi với một loại, chẳng hạn sự cố khởi tạo, thiếu phụ thuộc hoặc cạn kiệt tài nguyên.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

Sự cố khởi tạo là gì?

Đó là lỗi xảy ra khi agent vẫn đang khởi động, trước khi bất kỳ công việc nào bắt đầu.

Những dấu hiệu nào xác nhận loại lỗi này?

Không có vòng lặp được báo cáo, không có lệnh gọi công cụ, không có tệp được tạo, và nhật ký chỉ có chỉ thị của người dùng.

Ai nên xem các lỗi này?

Hướng dẫn nói nên xem phía hệ thống trước, chẳng hạn nhật ký và cài đặt môi trường.

Chi tiết

Mô tả gốc của tác giả

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

repo: HKUDS/AgentPilot

Độ phổ biến

Sao GitHub
7.8k
Vị trí xếp hạng
#12854
Giấy phép
MIT
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự