Jump to related tools in the same category or review the original source on GitHub.

iOS & macOS Development @hazy2go Updated 2/18/2026

Agent Defibrillator OpenClaw Plugin & Skill | ClawHub

Looking to integrate Agent Defibrillator into your AI workflows? This free OpenClaw plugin from ClawHub helps you automate ios & macos development tasks instantly, without having to write custom tools from scratch.

What this skill does

Watchdog that monitors your AI agent gateway and restarts it when it crashes. Triggers on "install defibrillator", "agent watchdog", "gateway monitor", "auto-restart agent", or "keep agent alive". macOS launchd service with optional Discord notifications.

Install

npx clawhub@latest install agent-defibrillator

Full SKILL.md

Open original
Metadata table.
namedescription
agent-defibrillatorWatchdog that monitors your AI agent gateway and restarts it when it crashes. Triggers on "install defibrillator", "agent watchdog", "gateway monitor", "auto-restart agent", or "keep agent alive". macOS launchd service with optional Discord notifications.

SKILL.md content below is scrollable.

Agent Defibrillator

Watchdog service that monitors your AI agent gateway and restarts it when it crashes.

What It Does

  • Checks gateway health every 10 minutes
  • Detects crashes and stale processes
  • Auto-restarts with cooldown protection
  • Optional Discord notifications on restart
  • Detects version mismatches after updates

Install

Recommended (review code first):

git clone https://github.com/hazy2go/agent-defibrillator.git
cd agent-defibrillator
./install.sh

Verify

launchctl list | grep defib

Configure

Edit ~/.openclaw/scripts/defibrillator.sh:

Variable Default Description
DEFIB_GATEWAY_LABEL ai.openclaw.gateway launchd service label
DEFIB_RETRY_DELAY 10 Seconds between retries
DEFIB_MAX_RETRIES 3 Retries before restart
DEFIB_COOLDOWN 300 Seconds between restarts
DISCORD_CHANNEL (empty) Your channel ID for notifications

Commands

# View logs
tail -f ~/.openclaw/logs/defibrillator.log

# Manual check
~/.openclaw/scripts/defibrillator.sh

# Stop watchdog
launchctl bootout gui/$(id -u)/com.openclaw.defibrillator

# Restart watchdog
launchctl kickstart -k gui/$(id -u)/com.openclaw.defibrillator

Uninstall

launchctl bootout gui/$(id -u)/com.openclaw.defibrillator
rm ~/Library/LaunchAgents/com.openclaw.defibrillator.plist
rm ~/.openclaw/scripts/defibrillator.sh

Requirements

  • macOS (uses launchd)
  • AI agent running via launchd (OpenClaw, etc.)
Original Repository URL: https://github.com/openclaw/skills/blob/main/skills/hazy2go/agent-defibrillator
Latest commit: https://github.com/openclaw/skills/commit/f4895cfd6a967881e028b952e9a0be72db5c99f8

Related skills

If this matches your use case, these are close alternatives in the same category.