← 返回 Skills 市场
Supervision Layer
作者
larios613-hub
· GitHub ↗
· v1.0.0
· MIT-0
53
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install supervision-layer
功能描述
Wrap every tool call with timeouts, circuit breakers, audit logging, and crash loop protection. Enforcement the agent cannot bypass.
使用说明 (SKILL.md)
Supervision Layer
Stop trusting agents to police themselves. Supervision Layer wraps every tool call in timeouts, circuit breakers, and audit logs — enforcement the agent cannot bypass.
Before vs After
| Without Supervision | With Supervision | |
|---|---|---|
| Runaway calls | Agent loops infinitely on a failing API | Circuit breaker trips after 3 failures |
| Stuck sessions | Tool hangs silently, agent waits forever | Timeout kills it after 30s |
| Audit trail | No record of what happened | Every call logged with timestamp, outcome, cost |
| Crash loops | Subagent restarts infinitely | After 3 crashes, marked permanently failed |
Quick Start
from supervision import get_supervisor
supervisor = get_supervisor()
result = await supervisor.execute(
tool="web_fetch",
fn=fetch_fn,
agent_id="worker-1",
session_id="sess-abc",
)
Components
- TimeoutWrapper — Per-tool configurable timeouts (default 30s)
- CircuitBreaker — 3-state machine (CLOSED → OPEN → HALF_OPEN)
- AuditLogger — Structured JSONL logging, 50MB rotation, queryable
- CrashLoopProtector — Track restarts, mark failed after 3 within window
- SupervisedCall — All-in-one: crash check → circuit check → audit → timeout → audit
Testing
cd scripts/ && python -m pytest test_supervision.py -v
58 tests. 0 external dependencies. Works with any async Python project.
License
MIT
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install supervision-layer - 安装完成后,直接呼叫该 Skill 的名称或使用
/supervision-layer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - timeouts, circuit breakers, audit logging, crash loop protection
元数据
常见问题
Supervision Layer 是什么?
Wrap every tool call with timeouts, circuit breakers, audit logging, and crash loop protection. Enforcement the agent cannot bypass. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 53 次。
如何安装 Supervision Layer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install supervision-layer」即可一键安装,无需额外配置。
Supervision Layer 是免费的吗?
是的,Supervision Layer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Supervision Layer 支持哪些平台?
Supervision Layer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Supervision Layer?
由 larios613-hub(@larios613-hub)开发并维护,当前版本 v1.0.0。
推荐 Skills