← 返回
未分类 中文

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...
MCP服务器,实时追踪Claude Code子代理性能。检测静默故障、空闲循环导致的token浪费以及重复任务生成。
abhinas90
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 204
下载
💾 0
安装
1
版本
#claude-code#latest#mcp#monitoring#subagent#token-optimization

概述

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

ToolWhat it does
-------------------
register_subagentRegister a subagent for tracking
check_agent_healthCheck a specific subagent's health
record_agent_progressLog progress after each tool call
get_fleet_healthFleet-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/

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-26 18:14 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Multi-Agent Deployment Skill for OpenClaw

abhinas90
在OpenClaw中部署可投入生产的多智能体集群,包含逐步设置指南、工作空间模板以及用于智能体创建的Python自动化脚本。
★ 1 📥 401

Claude Code Mastery

abhinas90
Claude Code CLI精通指南——从安装到生产工作流
★ 0 📥 343

Claude Code Memory Kit

abhinas90
阻止 Claude Code 重复犯错——强制安全护栏、保留上下文、保持跨会话一致性
★ 0 📥 562