跳到正文
TakoAPI
返回技能列表

agent-defibrillator

由 hazy2go 提供

iOS & macOS Development
543下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

Watchdog service for macOS that monitors an AI agent gateway running under launchd and automatically restarts it when it crashes or becomes stale. Checks gateway health every 10 minutes with configurable retry and cooldown logic. Optionally sends Discord notifications when a restart occurs.

Uses native macOS launchd instead of cron or external process managers, so the watchdog itself survives reboots and user sessions without extra setup.

何时使用

  • Keep an AI agent gateway running overnight without manual intervention
  • Get notified on Discord when your local agent crashes and recovers
  • Prevent restart storms with cooldown protection after repeated failures
  • Detect and respond to version mismatches after updating the gateway
  • Monitor agent uptime on a development machine without third-party tools

示例工作流

输入

User asks: install the defibrillator watchdog

智能体
  1. 1

    Clones the agent-defibrillator repository

  2. 2

    Runs install.sh to register the launchd plist and deploy the script to ~/.openclaw/scripts/

  3. 3

    Verifies the service appears in launchctl list

  4. 4

    Optionally sets DISCORD_CHANNEL in defibrillator.sh for restart notifications

  5. 5

    Confirms the watchdog is active and begins polling the gateway every 10 minutes

输出

Watchdog service running under launchd, auto-restarting the AI agent gateway on crash with optional Discord alerts

前置要求

  • macOS (launchd required)
  • Discord channel ID (optional, for notifications only)

安装

clawhub install hazy2go/agent-defibrillator

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接