返回顶部
a

agent-defibrillator

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
789
下载量
0
收藏
概述
安装方式
版本历史

agent-defibrillator

# 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):** ```bash git clone https://github.com/hazy2go/agent-defibrillator.git cd agent-defibrillator ./install.sh ``` ## Verify ```bash 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 ```bash # 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 ```bash 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.)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agent-defibrillator-1776419934 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-defibrillator-1776419934 技能

通过命令行安装

skillhub install agent-defibrillator-1776419934

下载 Zip 包

⬇ 下载 agent-defibrillator v1.0.1

文件大小: 8.34 KB | 发布时间: 2026-4-17 19:47

v1.0.1 最新 2026-4-17 19:47
Security fixes: removed hardcoded Discord channel, recommend git clone over curl|bash

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部