Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

hive-debugger

БесплатноБез исполняемых скриптовНе проверен

Interactive debugging companion for Hive agents - identifies runtime issues and proposes solutions

majiayu000от majiayu000★ 31 звезда на GitHub

Об этом скилле

Hive Debugger

An interactive debugging companion that helps developers identify and fix runtime issues in Hive agents. The debugger analyzes runtime logs at three levels (L1/L2/L3), categorizes issues, and provides actionable fix recommendations.

When to Use This Skill

Use /hive-debugger when:

  • Your agent is failing or producing unexpected results
  • You need to understand why a specific node is retrying repeatedly
  • Tool calls are failing and you need to identify the root cause
  • Agent execution is stalled or taking too long
  • You want to monitor agent behavior in real-time during development

This skill works alongside agents running in TUI mode and provides supervisor-level insights into execution behavior.

Forever-Alive Agent Awareness

Some agents use terminal_nodes=[] (the "forever-alive" pattern), meaning they loop indefinitely and never enter a "completed" execution state. For these agents:

  • Sessions with status "in_progress" or "paused" are normal, not failures
  • High step counts, long durations, and many node visits are expected behavior
  • The agent stops only when the user explicitly exits — there is no graph-driven completion
  • Debug focus should be on quality of individual node visits and iterations, not whether the session reached a terminal state
  • Conversation memory accumulates across loops — watch for context overflow and stale data issues

How to identify forever-alive agents: Check agent.py or agent.json for terminal_nodes=[] (empty list). If empty, the agent is forever-alive.


Prerequisites

Before using this skill, ensure:

  1. You have an exported agent in exports/{agent_name}/
  2. The agent has been run at least once (logs exist)
  3. Runtime logging is enabled (default in Hive framework)
  4. You have access to the agent's working directory at ~/.hive/agents/{agent_name}/

Workflow

Stage 1: Setup & Context Gathering

Objective: Understand the agent being debugged

What to do:

  1. Ask the developer which agent needs debugging:

    • Get agent name (e.g., "deep_research_agent", "deep_research_agent")
    • Confirm the agent exists in exports/{agent_name}/
  2. Determine agent working directory:

    • Calculate: ~/.hive/agents/{agent_name}/
    • Verify this directory exists and contains session logs
  3. Read agent configuration:

    • Read file: exports/{agent_name}/agent.json
    • Extract goal information from the JSON:
      • goal.id - The goal identifier
      • goal.success_criteria - What success looks like
      • goal.constraints - Rules the agent must follow
    • Extract graph information:
      • List of node IDs from graph.nodes
      • List of edges from graph.edges
  4. Store context for the debugging session:

    • agent_name
    • agent_work_dir (e.g., /home/user/.hive/deep_research_agent)
    • goal_id
    • success_criteria
    • constraints
    • node_ids

Example:

Developer: "My deep_research_agent agent keeps failing"

You: "I'll help debug the deep_research_agent agent. Let me gather context..."

[Read exports/deep_research_agent/agent.json]

Context gathered:
- Agent: deep_research_agent
- Goal: deep-research
- Working Directory: /home/user/.hive/deep_research_agent
- Success Criteria: ["Produce a comprehensive research report with cited sources"]
- Constraints: ["Must cite all sources", "Must cover multiple perspectives"]
- Nodes: ["intake", "research", "analysis", "report-writer"]

Stage 2: Mode Selection

Objective: Choose the debugging approach that best fits the situation

What to do:

Ask the developer which debugging mode they want to use. Use AskUserQuestion with these options:

  1. Real-time Monitoring Mode

    • Description: Monitor active TUI session continuously, poll logs every 5-10 seconds, alert on new issues immediately
    • Best for: Live debugging sessions where you want to catch issues as they happen
    • Note: Requires agent to be currently running
  2. Post-Mortem Analysis Mode

    • Description: Analyze completed or failed runs in detail, deep dive into specific session
    • Best for: Understanding why a past execution failed
    • Note: Most common mode for debugging
  3. Historical Trends Mode

    • Description: Analyze patterns across multiple runs, identify recurring issues
    • Best for: Finding systemic problems that happen repeatedly
    • Note: Useful for agents that have run many times

Implementation:

Use AskUserQuestion to present these options and let the developer choose.
Store the selected mode for the session.

Stage 3: Triage (L1 Analysis)

Objective: Identify which sessions need attention

What to do:

  1. Query high-level run summaries using the MCP tool:

    query_runtime_logs(
        agent_work_dir="{agent_work_dir}",
        status="needs_attention",
        limit=20
    )
    
  2. Analyze the results:

    • Look for runs with needs_attention: true
    • Check `attention_
Полный SKILL.md на GitHub

Установить hive-debugger в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл hive-debugger?

Interactive debugging companion for Hive agents - identifies runtime issues and proposes solutions

Как установить скилл hive-debugger?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл hive-debugger запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить hive-debugger с