hive-debugger
БесплатноБез исполняемых скриптовНе проверенInteractive debugging companion for Hive agents - identifies runtime issues and proposes solutions
от 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:
- You have an exported agent in
exports/{agent_name}/ - The agent has been run at least once (logs exist)
- Runtime logging is enabled (default in Hive framework)
- 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:
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}/
Determine agent working directory:
- Calculate:
~/.hive/agents/{agent_name}/ - Verify this directory exists and contains session logs
- Calculate:
Read agent configuration:
- Read file:
exports/{agent_name}/agent.json - Extract goal information from the JSON:
goal.id- The goal identifiergoal.success_criteria- What success looks likegoal.constraints- Rules the agent must follow
- Extract graph information:
- List of node IDs from
graph.nodes - List of edges from
graph.edges
- List of node IDs from
- Read file:
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:
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
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
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:
Query high-level run summaries using the MCP tool:
query_runtime_logs( agent_work_dir="{agent_work_dir}", status="needs_attention", limit=20 )Analyze the results:
- Look for runs with
needs_attention: true - Check `attention_
- Look for runs with
Установить hive-debugger в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic