← 返回
未分类 中文

Active Self-Improvement

Active self-improvement loop that reads learnings, errors, batch outputs, and memory — detects patterns — and UPDATES skills/protocols/behavior automatically...
主动自我改进循环,读取学习、错误、批量输出和记忆,检测模式,自动更新技能/协议/行为。
dodge1218
未分类 clawhub v1.3.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 861
下载
💾 0
安装
1
版本
#latest

概述

Auto-Improve

Reads logs, detects patterns, rewrites the playbook. Not passive logging — this ACTS on what it learns.

SCAN (read logs) ──► PROPOSE (specific edits) ──► APPLY (low-risk auto, high-risk flag)

Input Sources

SourceWhat It Contains
-------------------------
.learnings/ERRORS.mdWhat broke and how it was fixed
.learnings/LEARNINGS.mdCorrections, insights, knowledge gaps, batch outcomes
workspace/OUTSTANDING.mdRanked ideas and opportunities
memory/permanent/*.mdCurrent knowledge state
workspace/DELEGATION_PLAN.mdAtom timing data (if delegation was used)

Step 1: SCAN

Detect:

  • Repeated errors — same mistake 3+ times → needs a prevention rule
  • Repeated corrections — user keeps fixing the same thing → behavior change needed
  • Emerging patterns — 3+ items connecting → thesis forming
  • Stale knowledge — facts in permanent memory contradicted by recent sessions
  • Unused wins — high-value items that haven't been acted on

Step 2: PROPOSE

For each detected pattern:

PROPOSAL: [short title]
EVIDENCE: [file#line references]
CHANGE: [exact edit — old text → new text]
RISK: [low/medium/high]
REVERSIBLE: [yes/no]
Pattern-Key: [hash(error+fix) for dedup]
Pattern TypeActionTarget File
----------------------------------
Repeated errorAdd prevention rulerelevant skill's ## Learned section
Repeated correctionUpdate behavior guidelineSOUL.md or AGENTS.md
Emerging thesisWrite thesis + next stepsOUTSTANDING.md
Stale knowledgeUpdate the factmemory/permanent/*.md
Unused winCreate ticket or reminderNEXT_TICKET.md or cron

Step 3: APPLY

  • Low risk + reversible: Apply immediately. Log the change.
  • Medium risk: Apply but notify user on next interaction.
  • High risk: Write to OUTSTANDING.md and wait for approval.
  • Dry-run mode (--dry-run): Propose all changes but apply none. Output a report.

Use 3-occurrence threshold before proposing pattern-based changes. Track recurrence with Pattern-Key and Recurrence-Count.

Error→Skill Feedback Loop

After SCAN, for each error in ERRORS.md:

  1. Extract the Context column value
  2. Match against skill names (fuzzy: "SiteBlitz CSS" → webdev-sop)
  3. If match found and skill doesn't already have the fix in ## Learned:

```markdown

## Learned

  • [date] [error summary] → [fix]. Source: .learnings/ERRORS.md#L[N]

```

  1. Use Pattern-Key: hash(error+fix) to prevent duplicates

Skills self-heal: every failure improves the relevant skill.

Delegation Feedback

After delegation plan completes:

  1. Read atom timing data from DELEGATION_PLAN.md
  2. Atom actual time > 2× estimated → flag estimation drift
  3. Atom model upgraded (flash→sonnet) → update routing suggestion in MODEL_ROUTING_PROTOCOL.md
  4. Append summary to .learnings/LEARNINGS.md

版本历史

共 1 个版本

  • v1.3.0 当前
    2026-05-03 03:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Task Extractor

dodge1218
从单条用户消息中提取、追踪并核实多个任务的完成情况。适用于消息包含3个或以上可操作项或混合多个不相关内容的情况。
★ 0 📥 427

Rate Limit Guard

dodge1218
防止429重试循环和令牌浪费。在昂贵的API调用前或触发速率限制后使用。强制执行预检、退避和上下文收缩。
★ 0 📥 465

Auto Improve

dodge1218
Self-improvement loop that reads learnings, errors, and memory — detects patterns — and updates skills/protocols automat
★ 0 📥 429