heal

heal is a command for Claude Code from nguyenthienthanh/aura-frog. It costs 0 tokens per session (1,071 once invoked), scanned A, original, MIT.

A command set for handling selected task failures through proposed recovery plans.

In plain words
What is it for?
Use it to diagnose F2 or F3 failures, review recovery proposals, accept or decline them, and enable or disable this recovery process for the current session.
Why use it?
It separates diagnosing eligible failures from applying a proposed fix, while tracking limits, approvals, rejected proposals, and session-level disabling.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aura-frog plugin — 43 skills, 24 commands, 15 agents, 10 hooks, 6 MCP servers shipped together

Good fit Use it to diagnose F2 or F3 failures, review recovery proposals, accept or decline them, and enable or disable this recovery process for the current session.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nguyenthienthanh/aura-frog/heal
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.

Clone the repo
git clone --depth 1 https://github.com/nguyenthienthanh/aura-frog

Made for: Claude Code.

Or install aura-frog, the plugin that ships this one along with the rest of its 43 skills, 24 commands, 15 agents, 10 hooks, 6 MCP servers.

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 heal

README.md
[![agentmods](https://agentmods.dev/badge/commands/nguyenthienthanh/aura-frog/heal.svg)](https://agentmods.dev/commands/nguyenthienthanh/aura-frog/heal)
Your own site
<a href="https://agentmods.dev/commands/nguyenthienthanh/aura-frog/heal"><img src="https://agentmods.dev/badge/commands/nguyenthienthanh/aura-frog/heal.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,071 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.
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.00000 $0.01071
Opus 5 $0.00000 $0.00535
Sonnet 5 $0.00000 $0.00214
Haiku 4.5 $0.00000 $0.00107

Measured 7d ago against content hash 100c5b8c37e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

heal 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 7d 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.

aura-frog/commands/heal.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/aura-frog:heal

Self-healing orchestration. Diagnose F2/F3 failures, view proposals, accept/decline, disable.


Usage

/aura-frog:heal diagnose <TASK_ID>          # run self-healing-orchestrator on the failed task; emit proposal
/aura-frog:heal status                       # session counter, budget, last proposal, disabled state
/aura-frog:heal accept <HEAL-ID>             # apply a proposal as a new T4 task with its own approval flow
/aura-frog:heal decline <HEAL-ID> [reason]   # reject; counts toward session cap
/aura-frog:heal disable                      # disable for this session (.claude/logs/.self-heal-disabled flag)
/aura-frog:heal enable                       # re-enable for this session

Protocol — diagnose

  1. Refuse if AF_SELF_HEAL_DISABLED=true or .claude/logs/.self-heal-disabled exists
  2. Refuse if session cap reached (5 proposals total)
  3. Read failure-classifier output for the task — refuse if class ∉ {F2, F3}
  4. Refuse if task already has an accepted heal (max 1/task)
  5. Check replan_budget_remaining on the task; refuse if 0
  6. Invoke self-healing-orchestrator skill — it produces a proposal artifact at .claude/plans/proposals/HEAL-<TASK_ID>-<NNN>.yaml
  7. If confidence < 0.7: surface raw findings only ("self-heal couldn't reach a confident proposal — escalating findings"); do NOT create a proposal
  8. If confidence ≥ 0.7: surface diff + reasoning + risks; prompt user to /aura-frog:heal accept or /aura-frog:heal decline
  9. Append history.jsonl event: event: self_heal_proposed

Protocol — accept <HEAL-ID>

  1. Refuse if proposal not found at .claude/plans/proposals/HEAL-<HEAL-ID>.yaml
  2. Refuse if already applied (idempotency check)
  3. Save checkpoint on the affected node (per rules/workflow/checkpoint-discipline.md)
  4. Apply the patch as a NEW T4 task (mint TASK-NNNNN), NOT a modification of the failing task
  5. The new T4 task goes through the standard approval flow (Phase 1 design optional, Phase 2/3 mandatory)
  6. Decrement replan_budget_remaining on the parent T3 (counts as a replan)
  7. Increment session counter
  8. Append history.jsonl: event: self_heal_accepted, link to original proposal + new task ID

Read the full file on GitHub · 85 lines

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. 7d ago First seen · 85 lines · 0 tokens per session scan A 100c5b8c37e2

Subscribe to this mod's changes

heal is a command published in the GitHub repository nguyenthienthanh/aura-frog (24 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,071 tokens. 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.