返回顶部
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
安全检测
已通过
862
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

agent-defibrillator

技能名称: agent-defibrillator
详细描述:

代理除颤器

监控你的AI代理网关并在其崩溃时重启的看门狗服务。

功能

  • - 每10分钟检查网关健康状态
  • 检测崩溃和僵死进程
  • 自动重启并带有冷却保护
  • 可选的重启Discord通知
  • 检测更新后的版本不匹配

安装

推荐(先审查代码):
bash
git clone https://github.com/hazy2go/agent-defibrillator.git
cd agent-defibrillator
./install.sh

验证

bash
launchctl list | grep defib

配置

编辑 ~/.openclaw/scripts/defibrillator.sh:

变量默认值描述
DEFIBGATEWAYLABELai.openclaw.gatewaylaunchd服务标签
DEFIBRETRYDELAY
10 | 重试间隔秒数 |
| DEFIBMAXRETRIES | 3 | 重启前重试次数 |
| DEFIB_COOLDOWN | 300 | 重启冷却秒数 |
| DISCORD_CHANNEL | (空) | 通知用的频道ID |

命令

bash

查看日志


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

手动检查

~/.openclaw/scripts/defibrillator.sh

停止看门狗

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

重启看门狗

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

卸载

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

系统要求

  • - macOS(使用launchd)
  • 通过launchd运行的AI代理(OpenClaw等)

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

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

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

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

通过命令行安装

skillhub install agent-defibrillator-1776419934

下载

⬇ 下载 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
返回顶部