Install
openclaw skills install active-self-improvementActive self-improvement loop that reads learnings, errors, batch outputs, and memory — detects patterns — and UPDATES skills/protocols/behavior automatically. Use when the agent should get smarter without being prompted. Different from passive logging — this ACTS on what it learns. Triggers after Recorder at end of sessions, after batch processing, after project milestones, on explicit "improve" or "what have we learned" prompts, or on a weekly cron schedule.
openclaw skills install active-self-improvementReads 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)
| Source | What It Contains |
|---|---|
.learnings/ERRORS.md | What broke and how it was fixed |
.learnings/LEARNINGS.md | Corrections, insights, knowledge gaps, batch outcomes |
workspace/OUTSTANDING.md | Ranked ideas and opportunities |
memory/permanent/*.md | Current knowledge state |
workspace/DELEGATION_PLAN.md | Atom timing data (if delegation was used) |
Detect:
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 Type | Action | Target File |
|---|---|---|
| Repeated error | Add prevention rule | relevant skill's ## Learned section |
| Repeated correction | Update behavior guideline | SOUL.md or AGENTS.md |
| Emerging thesis | Write thesis + next steps | OUTSTANDING.md |
| Stale knowledge | Update the fact | memory/permanent/*.md |
| Unused win | Create ticket or reminder | NEXT_TICKET.md or cron |
OUTSTANDING.md and wait for approval.--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.
After SCAN, for each error in ERRORS.md:
Context column valuewebdev-sop)## Learned:
## Learned
- [date] [error summary] → [fix]. Source: .learnings/ERRORS.md#L[N]
Pattern-Key: hash(error+fix) to prevent duplicatesSkills self-heal: every failure improves the relevant skill.
After delegation plan completes:
.learnings/LEARNINGS.md