Proactive operations monitoring for OpenClaw agents. Tracks token utilization, memory layer health, and generates alerts. Provides `/health` dashboard and auto-suggestions for open loops. Works with memory-stack-core to prevent context overflow.
别再被动应对了。这项技能能将你的智能体转变为主动协作伙伴,在问题发生前发出预警,并建议后续步骤。
/health 命令或 tool(proactive-ops-monitor, health_dashboard)
显示内容:
🛡️ OpenClaw 运维面板
============================
令牌利用率: 62%(74k / 120k)
内存层:
• WAL 条目: 1,234(12KB)
• 工作缓冲区: 5.2KB(最近3轮对话)
• 每日日志: 7
状态: ✅ 健康
告警:
• 无
建议(1条):
1. 会话桥接文件缺失 → 运行 /init
通过字符数除以4估算当前上下文令牌。持续监控。
阈值(可配置):
当超过阈值时:
告警存储在 memory/ops-alerts.jsonl 中:
json
{
timestamp: 2026-04-01T16:30:00Z,
level: warning,
metric: token_utilization,
value: 72,
message: 令牌使用率达72%。建议尽快执行 /wrap_up。
}
tool(proactive-ops-monitor, suggest_next, {limit: 3})
扫描内容:
输出建议的下一步操作:
json
[
{
type: open_loop,
content: 在外部机器上构建 ollama 二进制文件,
context: 2天前提及,
priority: high
},
{
type: context,
content: 完成 ToolRegistry 与核心智能体的集成
}
]
配置后,智能体将在以下情况下自动在回复前附加建议:
可通过 proactive-ops-config.json 配置。
工作区根目录下的 proactive-ops-config.json:
json
{
alerts: {
token_warning: 70,
token_critical: 85,
bufferwarningsize_kb: 5000
},
suggestions: {
enabled: true,
maxperturn: 1,
includeopenloops: true,
includecontextgaps: true
},
dashboard: {
show_suggestions: true,
show_alerts: true
}
}
交互式斜杠命令:
工具调用:
python
tool(proactive-ops-monitor, health_dashboard, {format: text})
tool(proactive-ops-monitor, suggest_next, {limit: 3})
$99/月包含:
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 proactive-ops-monitor-1775883737 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 proactive-ops-monitor-1775883737 技能
skillhub install proactive-ops-monitor-1775883737
文件大小: 4.95 KB | 发布时间: 2026-4-12 11:05