← 返回 Skills 市场
abhinas90

Subagent Health Monitor

作者 abhinas90 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
41
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install subagent-health-monitor
功能描述
MCP server that tracks Claude Code subagent performance in real-time. Detects silent failures, token waste from idle loops, and duplicate task spawns. Get fl...
使用说明 (SKILL.md)

Subagent Health Monitor

Your subagents are dying silently and you don't know until the bill arrives. This MCP server catches it in real-time.

Built from production data: agent teams burn 13-22% of tokens on idle loops and duplicate spawns. This tool surfaces exactly where.

What it tracks

  • Silent failures: subagent with zero progress for >2 minutes → alert
  • Token waste: estimates waste from idle notification loops
  • Duplicate detection: same task spawning multiple times → alert
  • Fleet health score: 0-100 based on stuck agents + token waste

Tools exposed to Claude

Tool What it does
register_subagent Register a subagent for tracking
check_agent_health Check a specific subagent's health
record_agent_progress Log progress after each tool call
get_fleet_health Fleet-wide health summary

Quick start

Add to ~/.claude/mcp.json:

{
  "mcpServers": {
    "subagent-health": {
      "command": "python3",
      "args": ["path/to/subagent-health.py", "--mcp"]
    }
  }
}

Then in Claude Code: "Check fleet health" or "Is subagent-3 stuck?"

Example output

Fleet Health Report
├── Total agents: 4
├── Active: 3
├── Stuck: 1 (agent-2: no progress for 340s)
├── Total tokens: 142,000
├── Estimated waste: 25,560 tokens (18%)
└── Health score: 68/100

ALERT: agent-2 is stuck. Kill and restart with trimmed context.

Prerequisites

  • Python 3.8+
  • Claude Code with MCP support
  • No API keys required — state stored locally in ~/.claude/
安全使用建议
Install only if you are comfortable with local persistent monitoring state in ~/.claude, including task descriptions and agent identifiers. Avoid passing sensitive task text, and manually inspect or delete ~/.claude/subagent-health-state.json when you want to clear retained state. Do not rely on the advertised duplicate-spawn alerts without testing, because the current code does not appear to implement that feature.
能力评估
Purpose & Capability
The MCP tools match subagent monitoring, health checks, token estimates, and fleet summaries. However, the advertised duplicate-spawn alerting is not actually surfaced by the code.
Instruction Scope
The exposed tools are narrow, but users may pass task descriptions that can contain sensitive workflow details.
Install Mechanism
Installation is manual through a Claude MCP config entry that runs a local Python script; no automatic installer, package download, shell chaining, or hidden startup behavior was found.
Credentials
Static review found local JSON file I/O only, with no network calls, subprocess execution, credential access, destructive actions, or broad filesystem scanning.
Persistence & Privilege
The script reads and writes ~/.claude/subagent-health-state.json and persists agent IDs plus raw task text; the README broadly discloses local state under ~/.claude but does not document fields, retention, cleanup, or file-permission controls.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install subagent-health-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /subagent-health-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Real-time subagent health tracking MCP server. Detects silent failures, token waste, duplicate spawns. Fleet-wide health scoring.
元数据
Slug subagent-health-monitor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Subagent Health Monitor 是什么?

MCP server that tracks Claude Code subagent performance in real-time. Detects silent failures, token waste from idle loops, and duplicate task spawns. Get fl... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 41 次。

如何安装 Subagent Health Monitor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install subagent-health-monitor」即可一键安装,无需额外配置。

Subagent Health Monitor 是免费的吗?

是的,Subagent Health Monitor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Subagent Health Monitor 支持哪些平台?

Subagent Health Monitor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Subagent Health Monitor?

由 abhinas90(@abhinas90)开发并维护,当前版本 v1.0.0。

💬 留言讨论