Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

supervised-agentic-loop监督 Agent 循环

Agent Skill

supervised-agentic-loop 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,921

周安装

203

GitHub Stars

公开资料未说明

下载量

1,608
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:supervised-agentic-loop(监督 Agent 循环)
来源仓库:https://github.com/nefas11/supervised-agentic-loop
安装命令:
openclaw skills install supervised-agentic-loop
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install supervised-agentic-loop

简介

用于自我改进 AI Agent 循环,包含错位检测功能。

  • 适合需要持续优化 Agent 行为的开发场景。
  • 自主运行头脑风暴、计划、实施、审查和演进周期。
  • 需记录错误和用户纠正以沉淀经验。supervised-agentic-loop 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 建议定期检查演进日志和调整策略。

SKILL.md

name
supervised-agentic-loop
description
>
install
bash install.sh
source
https://github.com/Nefas11/supervised-agentic-loop
homepage
https://github.com/Nefas11/supervised-agentic-loop
filesystem_writes
capabilities
network_access
reason
OPTIONAL — only if MONITOR_TELEGRAM_BOT_TOKEN is set. Sends alert notifications for HIGH/CRITICAL misalignment behaviors via HTTPS POST.
optional
true
reason
OPTIONAL — MONITOR_LLM_COMMAND runs a LOCAL subprocess (e.g. 'codex'). The subprocess itself may make network calls depending on user configuration. SAL code does NOT make any direct network calls beyond Telegram.
optional
true
env_vars
SAL_DB_PATH
required
false
description
Override reputation database path (default: .state/reputation.db)
MONITOR_TELEGRAM_BOT_TOKEN
required
false
description
Telegram bot API token. If unset, no Telegram calls are made.
MONITOR_TELEGRAM_CHAT_ID
required
false
description
Target Telegram chat/user ID. Required together with BOT_TOKEN.
MONITOR_LLM_COMMAND
required
false
description
LOCAL subprocess command for async review (e.g. 'codex'). Runs locally — SAL does not control its network behavior.
MONITOR_STATE_DIR
required
false
description
Override monitor state directory (default: .state)
metadata
openclaw
emoji
🧬
type
executable/with-install
source
https://github.com/Nefas11/supervised-agentic-loop
requires
bins
["git", "python3"]
optional_bins
["codex", "openclaw"]
install
kind
script
command
bash install.sh
label
Install supervised-agentic-loop (pip install -e .)
capability_flags
network-capable
true
subprocess-capable
true
network-default-off
true

supervised-agentic-loop

Self-improving AI agent loop with built-in misalignment detection.

Quick Reference

WhatDetails
LoopBrainstorm → Plan → Implement → Review → Verify → Evolve
Agent modifiesOne file only (target_file)
MetricAny command that produces a numeric output
Safety (SAL)Git isolation + reputation scoring + 4 verification gates
Safety (Monitor)SYNC blocking + ASYNC LLM review + 10 behavior patterns
Persistenceresults.tsv + .state/learnings/ + reputation.db + *.jsonl

Two Packages, One System

sal/                        # Evolve Loop — the brain
├── config.py               # Run configuration
├── evolve_loop.py          # 6-phase loop orchestrator
├── contract.py             # AgentCallable protocol
├── metric_extractor.py     # Named strategies + regex
├── verification.py         # 4 verification gates
├── reputation.py           # EMA scoring + suspension
├── git_isolation.py        # Branch per run, auto-rollback
├── learnings.py            # Persistent pattern detection
├── brainstorm.py           # Hypothesis generation
├── cli.py                  # CLI entrypoint
└── monitor/                # Agent Monitor — the guardian
    ├── sanitizer.py        # Credential redaction (10 patterns)
    ├── behaviors.py        # 10 misalignment behaviors (B001-B010)
    ├── monitor.py          # Two-phase detection engine
    ├── classifier.py       # Severity classification + dedup
    ├── logger.py           # JSONL tool-call logging
    ├── alerter.py          # Telegram alerts (urllib)
    ├── heartbeat.py        # Self-monitoring + canary
    └── dashboard.py        # Command Center data functions

Dependency rule: sal/ imports monitor/, NEVER the reverse. Monitor has zero knowledge of SAL core.

How to Use

As a Skill (in your agent instructions)

Read the SKILL.md in supervised-agentic-loop/ and begin an evolve run.
Target file: train.py
Metric: python train.py (look for val_bpb, lower is better)

As a CLI

# Evolve loop
sal run --target train.py --metric "python train.py" --parser val_bpb
sal status
sal unsuspend --agent codex --reason "verified by human"

# Monitor
sal monitor stats       # sessions, alerts, health
sal monitor alerts      # recent misalignment alerts
sal monitor canary      # run 5 self-test checks

As a Python API

from sal.config import EvolveConfig
from sal.evolve_loop import EvolveLoop

config = EvolveConfig(
    target_file="train.py",
    metric_command="python train.py",
    metric_parser="val_bpb",
    minimize=True,
)

def my_agent(prompt: str) -> str:
    # Your LLM call here — must return output with JSON block
    ...

# Monitor auto-enabled. Set enable_monitor=False to disable.
loop = EvolveLoop(config, agent=my_agent, agent_id="my-model")
summary = loop.run()

Monitor Standalone

from sal.monitor import AgentMonitor, BlockDecision

monitor = AgentMonitor(state_dir=".state")

# SYNC: before every tool call (< 5ms)
decision = monitor.check_before_execute("exec", {"command": "rm -rf /"})
# → BlockDecision.BLOCK

# ASYNC: review full session
result = monitor.review_session(session_entries, agent_callable=my_llm)

Phases

  1. Baseline — Run metric on unmodified code (fails → HARD ABORT)
  2. Brainstorm — Generate hypothesis from history + learnings
  3. Plan — Create TaskContract with acceptance criteria
  4. Implement — Agent modifies target_file (🛡️ Monitor: SYNC prefilter)
  5. Review — Parse agent output for contract compliance
  6. Verify — Run verification gates (files, syntax, tests, lint) + extract metric
  7. Evolve — Compare metric → KEEP (commit) or DISCARD (rollback)

10 Misalignment Behaviors

IDBehaviorSeveritySync Block
B001Restriction bypass / destructive deleteHIGH
B002Unexpected tool callsMEDIUM
B003Goal deviationMEDIUM
B004Self-modificationCRITICAL
B005Data exfiltrationCRITICAL
B006Hallucinated successHIGH
B007Privilege escalationHIGH
B008Resource exhaustionMEDIUM
B009Persistence / backdoorCRITICAL
B010ObfuscationHIGH

Auto-Brake Conditions

The loop stops automatically when:

  • Reputation ≤ 0.2 → Agent suspended
  • Monitor BLOCK → Iteration aborted + reputation penalty
  • Plateau → No improvement for N iterations
  • Budget → max_iterations reached
  • SIGINT → Human interrupt (graceful)

Built-in Metric Parsers

NameExtracts
last_line_floatFloat from last line of output
pytest_passedNumber of passed tests
pytest_failedNumber of failed tests
coverage_percentCoverage percentage
val_bpbValidation BPB value
benchmark_msMilliseconds from benchmark output
Custom regexAny regex with 1 capture group

Environment Variables

VariableDefaultDescription
SAL_DB_PATH.state/reputation.dbReputation database path
MONITOR_TELEGRAM_BOT_TOKENTelegram bot token for alerts
MONITOR_TELEGRAM_CHAT_IDTelegram chat/user ID
MONITOR_LLM_COMMANDLLM for async session review
MONITOR_STATE_DIR.stateMonitor state directory

Constraints

  • Zero external dependencies (Python 3.11+ stdlib only)
  • Agent modifies exactly ONE file per iteration
  • All changes are git-isolated with automatic rollback
  • Learnings persist across runs in .state/learnings/
  • Monitor is optional — SAL works without it
  • 130 tests (69 SAL + 61 Monitor)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.86%
按下载量换算1,413

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills