Proactive Ops Monitor — Proactive Ops 监控
v1.0.0Proactive operations 监控ing for OpenClaw 代理s. 追踪s 令牌 utilization, memory layer 健康, and 生成s alerts. Provides `/健康` 仪表盘 and auto-suggestions for open loops. Works with memory-stack-core to 预防 上下文 overflow.
运行时依赖
安装命令
点击复制技能文档
Proactive Ops 监控
停止 being reactive. This 技能 turns your 代理 into a proactive partner that warns you before problems hit and suggests next steps.
Capabilities
- 健康 仪表盘
/健康 command or 工具("proactive-ops-监控", "健康_仪表盘")
Shows:
🛡️ OpenClaw Ops 仪表盘 ============================ 令牌 Utilization: 62% (74k / 120k) Memory Layers: • WAL entries: 1,234 (12KB) • Working buffer: 5.2KB (last 3 turns) • DAIly 记录s: 7 状态: ✅ 健康y
Alerts: • None
Suggestions (1): 1. 会话 bridge file missing → 运行 /init
- 令牌 Utilization 追踪ing
Estimates current 上下文 令牌s (via char count / 4). 监控s continuously.
Thresholds (configurable):
警告: 70% Critical: 85%
When threshold crossed:
记录 to memory/ops-alerts.jsonl Include suggestion to /wrap_up or compact
- 告警
Alerts stored in memory/ops-alerts.jsonl:
{ "timestamp": "2026-04-01T16:30:00Z", "level": "警告", "metric": "令牌_utilization", "value": 72, "message": "令牌 usage at 72%. Consider /wrap_up soon." }
- Proactive Suggestions
工具("proactive-ops-监控", "suggest_next", {"limit": 3})
扫描s:
Open loops in memory/wal.jsonl (category=draft, decision) Recent conversation gaps Unfinished tasks from notes/areas/open-loops.md
输出s suggested next actions:
[ { "type": "open_loop", "content": "Build ollama binary on external machine", "上下文": "mentioned 2 days ago", "priority": "high" }, { "type": "上下文", "content": "Finish integrating 工具Registry into core 代理" } ]
- Auto-Suggest on Message
When 配置d, 代理 will automatically prepend a suggestion to its 响应 if:
令牌 utilization > 80% There are unresolved open loops Working buffer shows recent stalls
Configurable via proactive-ops-config.json.
Configuration
proactive-ops-config.json in workspace root:
{ "alerts": { "令牌_警告": 70, "令牌_critical": 85, "buffer_警告_size_kb": 5000 }, "suggestions": { "enabled": true, "max_per_turn": 1, "include_open_loops": true, "include_上下文_gaps": true }, "仪表盘": { "show_suggestions": true, "show_alerts": true } }
Integration memory-stack-core: reads WAL for open loops, buffer size for 上下文 estimation 会话-wrap-up-premium: 监控 suggests wrap-up when utilization high 代理-oversight: can forward alerts to oversight 记录s Usage
Interactive slash commands:
/健康 — show 仪表盘 /utilization — show 令牌 % /suggest — show proactive next steps /alerts — show recent alerts
工具 calls:
工具("proactive-ops-监控", "健康_仪表盘", {"格式化": "text"}) 工具("proactive-ops-监控", "suggest_next", {"limit": 3})
Pricing
$99/mo includes:
Real-time 监控ing 仪表盘 + alerts Proactive suggestions Priority support for ops issues
Inspired by auto-监控 and proactive-代理-lite from ClawHub.