← 返回
开发者工具 中文

Subagent Watchdog

Monitors subagent runs by enforcing a completion marker file before a deadline and alerts or exits if the marker is missing.
通过在截止时间前强制检查完成标记文件来监控子代理运行,若标记缺失则报警或退出。
gleb-urvanov
开发者工具 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 844
下载
💾 8
安装
1
版本
#latest

概述

Subagent Watchdog

A small reliability tool for agentic workflows.

What it does

  • After you spawn a subagent with a label, start a watchdog timer.
  • The subagent must write a completion marker file.
  • If the marker is missing when the timer expires, the watchdog alerts (or exits non-zero so the caller can restart).

Files

  • watch.sh — watchdog runner
  • SUBAGENT_CONTRACT.md — what the subagent must do

Usage

1) Enforce the contract in your subagent prompt

Tell the subagent to:

  • write full results to the instructed project files
  • write a marker file: subagent-watchdog/state/

2) Start the watchdog

# explicit wait (seconds)
./watch.sh "my-subagent-label" 601

# or omit wait_seconds to read from ~/.openclaw/openclaw.json:
#   caliban.subagentWatchdog.maxRuntimeSeconds (+1 second)
./watch.sh "my-subagent-label"

Notification

By default watch.sh prints a failure message and tries to notify using OpenClaw messaging if:

  • OPENCLAW_BIN and WATCHDOG_CHAT_ID are set.

Config read (optional):

  • Reads OPENCLAW_CONFIG_PATH or ~/.openclaw/openclaw.json for caliban.subagentWatchdog.maxRuntimeSeconds.

This keeps the skill portable: you can use it with or without OpenClaw messaging.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 08:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Braingit

gleb-urvanov
自动化提交仅包含 Markdown 文件的更改到 git 仓库,使用安全暂存,适合笔记快照,不影响代码或二进制文件。
★ 0 📥 620
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,887
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,742