openclaw-self-healing
Installation
Summary
4-tier autonomous self-healing system for OpenClaw Gateway with Claude Code as AI emergency doctor.
- Escalates through watchdog monitoring, HTTP health checks with retries, AI-powered diagnosis via Claude Code, and Discord/Telegram alerts for human intervention
- Captures persistent learning documentation (symptom to solution mappings) and reasoning logs for explainable AI decision-making
- Includes metrics dashboard for tracking recovery success rates, timing, and trends across incidents
- Requires tmux, Claude Code CLI, and jq; integrates with macOS LaunchAgent for continuous background operation
SKILL.md
OpenClaw Self-Healing System
"The system that heals itself — or calls for help when it can't."
A 4-tier autonomous self-healing system for OpenClaw Gateway.
Architecture
Level 1: Watchdog (180s) → Process monitoring (OpenClaw built-in)
Level 2: Health Check (300s) → HTTP 200 + 3 retries
Level 3: Claude Recovery → 30min AI-powered diagnosis 🧠
Level 4: Discord Alert → Human escalation