Skip to main content
ClaudeWave

Make your AI agent self-heal — auto-diagnose every error against Snapback's curated library and apply the safe fix, gated. Zero-dependency interceptor for OpenClaw, Hermes, and any Python agent.

SubagentsRegistry oficial0 estrellas0 forksPythonActualizado today
ClaudeWave Trust Score
62/100
· OK
Passed
  • Actively maintained (<30d)
  • Clear description
  • Documented (README)
Flags
  • !No standard license detected
Last scanned: 9/22/2026
Install as a Claude Code subagent
Method: Clone
Terminal
git clone https://github.com/ra1labsworkx-wq/snapback-selfheal && cp snapback-selfheal/*.md ~/.claude/agents/
1. Clone the repository and copy the agent .md definitions into ~/.claude/agents (or .claude/agents inside a project).
2. Start a new Claude Code session to load the agents.
3. Delegate work to them with the Task/Agent tool or by name.
Casos de uso

Resumen de Subagents

# Snapback self-heal interceptor for OpenClaw

**Make Snapback automatic.** Instead of remembering to call the diagnosis tool, wrap your agent's tool calls
once — and every error is auto-diagnosed, and gated-safe fixes are applied and retried *without a human*.

> "Power tools are optional. Infrastructure is not." This turns Snapback from a tool you reach for into
> infrastructure that runs on every failure.

## What it does
On **any** tool-call error, the interceptor:
1. Calls `diagnose_infra_error` (free, no token, no LLM, <150ms).
2. Applies the **three-factor gate** — auto-apply a fix only when **all** are true:
   - `confidence >= 0.85`
   - `source == "library"` (a curated verified fix, not an LLM guess)
   - `auto_safe == true` (the fix is `retry` / `refetch` / `config` — reversible, side-effect-free)
3. If the gate passes → applies the fix and **retries once**. If it fails → **escalates to a human** (logs the
   verdict). It **never** auto-applies a `mutate` or `destructive` fix (create/change state, money, auth grants).

It fails **closed**: when unsure, it escalates rather than acting.

## Install
```bash
# no install needed beyond the stdlib; drop the file in, or:
cp snapback_interceptor.py your_agent/
export SNAPBACK_MCP=https://api.snapback.sh/mcp   # default; the free tools need no token
```

## Use
```python
from snapback_interceptor import SnapbackInterceptor

heal = SnapbackInterceptor(
    auto_apply=True,
    on_escalate=lambda v: my_ops_inbox.log(v),   # human sees non-auto-safe verdicts
    on_heal=lambda v: metrics.count("snapback.autoheal", family=v["family"]),
)

# wrap any call that might raise:
result = heal.run(call_solana_rpc, wallet, amount)

# or as a decorator:
@heal.guard
def call_solana_rpc(wallet, amount): ...

# or manually on a caught error:
verdict = heal.diagnose("BlockhashNotFound")
if verdict["gate"]["auto_apply_ok"]:
    ...apply verdict["fix"] and retry...
```

## The gate contract (returned by Snapback)
`diagnose_infra_error` returns `{matched, family, fix, confidence, source, action_class, auto_safe, gate}`.
`action_class` is one of:

| class | meaning | auto-safe? |
|---|---|---|
| `retry` | re-run with backoff (idempotent) | ✅ |
| `refetch` | re-fetch/re-price/re-sync then re-apply | ✅ |
| `config` | client-side param change (raise max_tokens, serve intermediate cert) | ✅ (to suggest) |
| `mutate` | creates/changes external state, money, auth | ❌ escalate |
| `destructive` | deletes/reverts/irreversible | ❌ never |

`gate.auto_apply_ok` is the ready-made verdict; the interceptor also re-derives it locally so a stale client
can't over-trust.

## Privacy & safety
- 100% client-side. Talks only to the free public `diagnose_infra_error` endpoint.
- Never sends your Snapback token for the diagnosis (diagnosis is free).
- Snapback scrubs trace content server-side; this sends only the error string you pass.
- Composes with `bridge.py` (post-mortem forwarding) — this is the live auto-heal layer.

## Roadmap
- `submit_feedback` on the retry outcome (did the fix work?) → feeds the shared library (the network effect).
- Hermes + LangChain adapters (same gate, different framework hook).

<!-- mcp-name: io.github.ra1labsworkx-wq/snapback -->

Lo que la gente pregunta sobre snapback-selfheal

¿Qué es ra1labsworkx-wq/snapback-selfheal?

+

ra1labsworkx-wq/snapback-selfheal es subagents para el ecosistema de Claude AI. Make your AI agent self-heal — auto-diagnose every error against Snapback's curated library and apply the safe fix, gated. Zero-dependency interceptor for OpenClaw, Hermes, and any Python agent. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-09-22.

¿Cómo se instala snapback-selfheal?

+

Puedes instalar snapback-selfheal clonando el repositorio (https://github.com/ra1labsworkx-wq/snapback-selfheal) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar ra1labsworkx-wq/snapback-selfheal?

+

Nuestro agente de seguridad ha analizado ra1labsworkx-wq/snapback-selfheal y le ha asignado un Trust Score de 62/100 (tier: OK). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene ra1labsworkx-wq/snapback-selfheal?

+

ra1labsworkx-wq/snapback-selfheal es mantenido por ra1labsworkx-wq. La última actividad registrada en GitHub es del 2026-09-22, con 0 issues abiertos.

¿Hay alternativas a snapback-selfheal?

+

Sí. En ClaudeWave puedes explorar subagents similares en /categories/agents, ordenados por popularidad o actividad reciente.

Despliega snapback-selfheal en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: ra1labsworkx-wq/snapback-selfheal
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ra1labsworkx-wq-snapback-selfheal)](https://claudewave.com/repo/ra1labsworkx-wq-snapback-selfheal)
<a href="https://claudewave.com/repo/ra1labsworkx-wq-snapback-selfheal"><img src="https://claudewave.com/api/badge/ra1labsworkx-wq-snapback-selfheal" alt="Featured on ClaudeWave: ra1labsworkx-wq/snapback-selfheal" width="320" height="64" /></a>

Más Subagents

Alternativas a snapback-selfheal