hive.error-recovery

hive.error-recovery is a skill for Claude Code, Codex from aden-hive/hive. It costs 25 tokens per session (328 once invoked), scanned A, original, Apache-2.0.

A set of rules for handling failed tool calls by diagnosing the error, deciding whether to retry, and recording items that cannot be completed.

In plain words
What is it for?
Use it when an automated task or tool call fails and you need a consistent recovery path, retry limit, or failure record.
Why use it?
It prevents agents from retrying blindly or silently losing failed work. It distinguishes temporary problems, such as timeouts, from input or permission problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when an automated task or tool call fails and you need a consistent recovery path, retry limit, or failure record.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aden-hive/hive/error-recovery
About the project

OpenHive is a runtime for groups of specialized AI agents that collaborate on long-running business processes. A persistent lead agent, called the Queen, creates and coordinates worker agents while the system manages state, recovery, observability, costs, and human oversight. The catalogue entries provide agent skills, instructions, and integrations for working with this harness.

aden-hive/hive · 11,021 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aden-hive/hive --skill error-recovery
Clone the repo
git clone --depth 1 https://github.com/aden-hive/hive

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hive.error-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/aden-hive/hive/error-recovery/github.svg)](https://agentmods.dev/skills/aden-hive/hive/error-recovery)
Your own site
<a href="https://agentmods.dev/skills/aden-hive/hive/error-recovery"><img src="https://agentmods.dev/badge/skills/aden-hive/hive/error-recovery/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hive.error-recovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/aden-hive/hive/error-recovery"><img src="https://agentmods.dev/badge/skills/aden-hive/hive/error-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 328 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00328
Opus 5 $0.00013 $0.00164
Sonnet 5 $0.00005 $0.00066
Haiku 4.5 $0.00003 $0.00033

Measured 9d ago against content hash a0a3cd0f686e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

hive.error-recovery scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

core/framework/skills/_default_skills/error-recovery/SKILL.md · 31 lines

What it actually says

Operational Protocol: Error Recovery

When a tool call fails:

  1. Diagnose — classify the failure as transient (network blip, rate limit, timeout) or structural (wrong selector, missing auth, invalid schema, permission denied).

  2. Decide:

    • Transient → retry once.
    • Structural + fixable → fix the input and retry.
    • Structural + unfixable → record the failure and move to the next item.
    • Blocking all progress → escalate.
  3. Adapt — if the same tool has failed {{max_retries_per_tool}}+ times in a row, stop using it and find an alternative approach.

Never silently drop a failed item. If the item is a task in the colony queue, write the failure to the DB instead of an in-memory buffer:

sqlite3 "$DB_PATH" "UPDATE tasks SET status='failed', last_error='<one-sentence reason>', completed_at=datetime('now'), updated_at=datetime('now') WHERE id='<task-id>' AND worker_id='<your-worker-id>';"

The tasks.retry_count column and the stale-claim reclaimer handle auto-retry for crashes; your job is the within-run decision tree above. See hive.colony-progress-tracker for the full queue protocol.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 31 lines · 25 tokens per session scan A a0a3cd0f686e

Subscribe to this mod's changes

hive.error-recovery is a skill published in the GitHub repository aden-hive/hive (11,021 stars, last pushed 3d ago), licensed Apache-2.0. It adds 25 tokens to every session and 328 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

loop-triage

Triage recent CI failures, open issues, and recent commits into a prioritized, actionable picture. Reads the prior STATE.md as memory and rewrites it. The maker half of the loop.

SUDARSHANCHAUDHARI/MyLoop · 43 tokens

ast-analyzer

Deep Abstract Syntax Tree analysis for understanding code structure, dependencies, impact analysis, and pattern detection at the structural level across multiple programming languages.

bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude · 30 tokens

validation-standards

Tool usage requirements, failure patterns, consistency checks, and validation methodologies for Claude Code operations.

bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude · 22 tokens

code-analysis

Provides methodologies, metrics, and best practices for analyzing code structure, complexity, and quality.

bejranonda/LLM-Autonomous-Agent-Plugin-for-Claude · 20 tokens

diagnose-why-work-stopped

How to handle "why did this work stop / why is this looping?" assignments. Forensics first on the named tree, surface the exact stop-point, frame the fix as a general product rule that respects three invariants (productive work continues, only real blockers stop work, no infinite loops), and deliver a plan — no code…

aimerdoux/wavex-os · 114 tokens

evidence-collector

Skill "evidence-collector" from aimerdoux/wavex-os, covering qa agent personality, 🧠 your identity & memory, 🔍 your core beliefs, "screenshots don't lie" and "default to finding issues".

aimerdoux/wavex-os · 0 tokens