Self-improvement layer with evaluation separation, rollback, and tiered operator gates. Observes outcomes across sessions, detects recurring patterns, propos...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install openclaw-reflect或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install openclaw-reflect⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/openclaw-reflect/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: openclaw-reflect version: 1.0.2 description: > Self-improvement layer with evaluation separation, rollback, and tiered operator gates. Observes outcomes across sessions, detects recurring patterns, proposes improvements, validates proposals through a separate evaluator invocation, and applies changes safely with snapshot/rollback capability. author: AtlasPA tags: [self-improvement, reflection, memory, safety, hooks, evaluation] hooks: - event: PostToolUse path: hooks/post-tool-use.js - event: SessionEnd path: hooks/session-end.js - event: UserPromptSubmit path: hooks/user-prompt-submit.js permissions: - read: workspace - write: .reflect/ - write: MEMORY.md - write: CLAUDE.md - propose: SOUL.md env: optional: - ANTHROPIC_API_KEY # Enables Anthropic evaluator backend (claude-haiku-4-5-20251001) - OPENAI_API_KEY # Enables OpenAI evaluator backend (gpt-4o-mini) - OLLAMA_HOST # Ollama server hostname (default: localhost) - OLLAMA_PORT # Ollama server port (default: 11434) - REFLECT_EVAL_MODEL # Force a specific Ollama model name - REFLECT_EVALUATOR # Force evaluator backend: anthropic|openai|ollama|rules ---
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.
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"
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."
The SessionEnd hook runs classification and promotion automatically. It will:
You will see a summary in the session-end output.
| 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 |
Before any Tier 1+ change is applied, a separate evaluator invocation checks:
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.
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>
| 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 |
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.
# 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
安装 openclaw-reflect 后,可以对 AI 说这些话来触发它
Help me get started with openclaw-reflect
Explains what openclaw-reflect does, walks through the setup, and runs a quick demo based on your current project
Use openclaw-reflect to self-improvement layer with evaluation separation, rollback, and ti...
Invokes openclaw-reflect with the right parameters and returns the result directly in the conversation
What can I do with openclaw-reflect in my ai agent & automation workflow?
Lists the top use cases for openclaw-reflect, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/openclaw-reflect/ 目录(个人级,所有项目可用),或 .claude/skills/openclaw-reflect/(项目级)。重启 AI 客户端后,用 /openclaw-reflect 主动调用,或让 AI 根据上下文自动发现并使用。
openclaw-reflect 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
openclaw-reflect 可免费安装使用。请查阅仓库了解许可证信息。
Self-improvement layer with evaluation separation, rollback, and tiered operator gates. Observes outcomes across sessions, detects recurring patterns, propos...
openclaw-reflect 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my ai agent & automation tasks using openclaw-reflect
Identifies repetitive steps in your workflow and sets up openclaw-reflect to handle them automatically