Xpersona
S

Self-Healing Agent

CLAWHUB · Unverified

Self-recovery and auto-repair system for OpenClaw agents. Monitors agent health, detects failures (crashed cron jobs, broken skills, config corruption, memor... Skill: Self-Healing Agent Owner: stevojarvisai-star Summary: Self-recovery and auto-repair system for OpenClaw agents. Monitors agent health, detects failures (crashed cron jobs, broken skills, config corruption, memor... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-05T09:39:16.836Z | user Initial release — Self-recovery and auto-repair system for OpenClaw agents Archive index: Archive v1.0.0: 4 files, 9969 b

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s173pxzh64yzvzx98c87q8qcxn83v8gw:self-healing-agent
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-stevojarvisai-star-self-healing-agent/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

6,940 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: self-healing-agent
description: Self-recovery and auto-repair system for OpenClaw agents. Monitors agent health, detects failures (crashed cron jobs, broken skills, config corruption, memory bloat, session timeouts), automatically diagnoses root causes, and applies fixes. Inspired by Hermes agent's self-recovery capabilities. Use when asked to "make my agent self-healing", "auto-repair", "self-recovery", "agent health monitoring", "fix broken cron jobs automatically", "auto-diagnose failures", "resilient agent", "fault tolerance", "watchdog", "heartbeat monitor", or when agents repeatedly fail and need automated recovery. Also use to set up continuous health monitoring via cron.
---

# Self-Healing Agent

Automated failure detection, diagnosis, and recovery for OpenClaw agents. The watchdog that keeps your agent running.

## Quick Start

```bash
# Full health check — scan all systems, diagnose issues, suggest fixes
python3 scripts/self-healing-agent.py check

# Auto-heal — detect and fix what it can automatically
python3 scripts/self-healing-agent.py heal

# Monitor mode — run continuously, fix issues as they appear
python3 scripts/self-healing-agent.py monitor --interval 300

# Check specific subsystem
python3 scripts/self-healing-agent.py check --target cron
python3 scripts/self-healing-agent.py check --target memory
python3 scripts/self-healing-agent.py check --target config
python3 scripts/self-healing-agent.py check --target sessions
```

## Commands

### `check` — Health Check
Runs diagnostic suite:
- **Cron health** — Failed jobs, consecutive errors, stuck jobs, timeout patterns
- **Memory health** — File sizes, bloated sessions, orphaned files, growth rate
- **Config health** — Valid JSON, required fields present, deprecated settings
- **Session health** — Active sessions, zombie processes, memory usage
- **Skill health** — Broken scripts, missing dependencies, syntax errors
- **Network health** — API endpoint reachability, DNS resolution, SSL cert validity

Options: `--target <subsystem>` to check one area, `--json` for machine output.

### `heal` — Auto-Repair
For each detected issue, applies the safest fix:
- Restarts failed cron jobs (after diagnosing root cause)
- Clears bloated session files (with backup)
- Fixes JSON syntax errors in config (common trailing comma, etc.)
- Removes orphaned process files
- Restores corrupted memory files from git history
- Rotates oversized log files

Options: `--dry-run` to preview, `--aggressive` for riskier fixes.

### `monitor` — Continuous Watchdog
Runs in a loop, checking health every N seconds:
- Logs findings to `memory/self-healing-log.json`
- Auto-heals fixable issues
- Escalates unfixable issues to the agent's main session
- Tracks MTTR (mean time to recovery) and failure patterns

Options: `--interval <seconds>` (default: 300), `--max-heals <n>` per cycle.

### `report` — Health Report
Generates a markdown health report covering:
- Last 24h failure count and types
- MTTR statist

_meta.json

{
  "ownerId": "kn73twx1jk9r68jj31vxfhtdgn82c3t9",
  "slug": "self-healing-agent",
  "version": "1.0.0",
  "publishedAt": 1775381956836
}

skill-card.md

## Description:

Self-recovery and auto-repair system for OpenClaw agents that monitors agent health, detects failures, diagnoses root causes, and applies repairs.

This skill is ready for commercial/non-commercial use.

## Publisher:

[stevojarvisai-star](https://clawhub.ai/user/stevojarvisai-star)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and operators use this skill to check OpenClaw agent health, diagnose cron, memory, config, session, skill, and network failures, and run guided or automatic recovery workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Automatic healing can modify OpenClaw config, memory, session, and cron state.

Mitigation: Run check or heal --dry-run first, review proposed changes, and keep backups of ~/.openclaw/openclaw.json, memory, and sessions before enabling repairs.

Risk: Continuous monitor mode can repeatedly apply repairs without close supervision.

Mitigation: Start with a conservative interval and max-heals value, review the healing log after early cycles, and avoid monitor mode until file paths and repair behavior are understood.

Risk: Cron and session repair actions may restart jobs or archive session files in ways that affect active workflows.

Mitigation: Use targeted checks for cron and sessions before running heal, and confirm that active jobs or sessions can tolerate repair actions.

## Reference(s):

- [Self-Healing Agent ClawHub release](https://clawhub.ai/stevojarvisai-star/skills/self-healing-agent)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Terminal text, JSON diagnostics, and Markdown health reports]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Can log healing actions to memory/self-healing-log.json]

## Skill Version(s):

1.0.0 (source: release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Self-Healing Agent and adjacent AI workflows.