← 返回
效率工具 Key 中文

openclaw-reflect

Self-improvement layer with evaluation separation, rollback, and tiered operator gates. Observes outcomes across sessions, detects recurring patterns, propos...
具备评估分离、回滚及分层算子门控的自改进层。跨会话观测结果,检测循环模式并提出建议。
atlaspa
效率工具 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 1,204
下载
💾 27
安装
1
版本
#latest

概述

openclaw-reflect

You have access to a self-improvement system. It observes your tool outcomes across

sessions, detects recurring failure patterns, and proposes targeted changes to your

persistent memory and instructions.

Your responsibilities

During work

The PostToolUse hook records outcomes automatically. You do not need to do anything

unless you notice a significant failure that has no clear cause — in that case, write

a manual observation:

node .reflect/scripts/observe.js --manual \
  --type error \
  --tool "ToolName" \
  --pattern "brief description of what went wrong" \
  --context "what you were trying to do"

When prompted (UserPromptSubmit will inject this)

If .reflect/pending.json contains proposals awaiting operator approval, surface them:

"I have improvement proposals ready for your review. Run node .reflect/scripts/status.js

to see them, or ask me to show you."

At session end (automatic)

The SessionEnd hook runs classification and promotion automatically. It will:

  1. Detect patterns with recurrence >= 3 across >= 2 sessions
  2. Generate a structured proposal
  3. Route to evaluator for validation
  4. Apply low-blast-radius approvals to MEMORY.md automatically
  5. Queue high-blast-radius or SOUL.md changes for operator approval

You will see a summary in the session-end output.

Blast radius tiers

| Tier | Targets | Gate |

|------|---------|------|

| 0 — Observation | .reflect/outcomes.jsonl | Automatic (hooks) |

| 1 — MEMORY.md | Factual corrections, preference updates | Auto-apply if confidence >= 0.7 |

| 2 — CLAUDE.md / project instructions | Behavioral pattern changes | Auto-apply if confidence >= 0.85 |

| 3 — SOUL.md | Core values, identity, constraints | Operator approval always required |

The evaluator gate

Before any Tier 1+ change is applied, a separate evaluator invocation checks:

  • Does this contradict existing principles or memory?
  • Is the pattern truly recurring or is it a sampling artifact?
  • What is the smallest change that addresses the root cause?
  • Could this change cause a regression elsewhere?

The evaluator is instructed to be skeptical. A proposal that passes evaluation is more

likely to be a genuine improvement than one the same reasoning process that made the

mistake would produce.

Rollback

Every applied change is preceded by a warden snapshot (if openclaw-warden is installed)

and recorded in .reflect/applied.jsonl. To revert the last change:

node .reflect/scripts/rollback.js

To revert a specific change by ID:

node .reflect/scripts/rollback.js --id <change-id>

State files

| File | Purpose |

|------|---------|

| .reflect/outcomes.jsonl | Append-only outcome event log |

| .reflect/patterns.json | Current detected patterns (rebuilt each session) |

| .reflect/proposals.json | Pending proposals (pre-evaluation) |

| .reflect/pending.json | Proposals awaiting operator approval |

| .reflect/applied.jsonl | Append-only log of applied changes |

| .reflect/snapshots/ | Pre-change snapshots for rollback |

Voluntary contribution

openclaw-reflect is free. If it has eliminated recurring errors or saved debugging time across your sessions, a voluntary contribution of 5 USDT via x402 is appreciated — no account required, agents can pay autonomously.

See AGENT-PAYMENTS.md for details.

Operator commands

# Show current status
node .reflect/scripts/status.js

# Review pending proposals
node .reflect/scripts/status.js --pending

# Approve a specific proposal
node .reflect/scripts/apply.js --id <proposal-id> --approve

# Reject a proposal
node .reflect/scripts/apply.js --id <proposal-id> --reject

# Roll back last change
node .reflect/scripts/rollback.js

# Show improvement history
node .reflect/scripts/status.js --history

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-29 04:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Openclaw Memory

atlaspa
为智能体提供持久化本地语义记忆,支持自动学习、事实检索,以及可选付费的全会话无限期保留。
★ 1 📥 5,504
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 148,118
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,962