self-improving-agent
Autonomous agent that logs learnings, errors, and corrections to enable continuous improvement. Combines official self-improving-agent functionality with Evolver meta-skill capabilities for comprehensive self-improvement.
- License 许可
- MIT
- 最近更新
- 2026-04-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- self-improving-agent
- description
- Autonomous agent that logs learnings, errors, and corrections to enable continuous improvement. Combines official self-improving-agent functionality with Evolver meta-skill capabilities for comprehensive self-improvement.
03 SKILL.md 正文
Self-Improving Agent — Continuous Learning and Improvement
Overview
This skill enables OpenClaw agents to continuously learn from experience by:
- Logging errors and corrections — Building a knowledge base of what works and what doesn't
- Capturing learnings — Documenting successful patterns and solutions
- Updating preferences — Remembering user preferences and context
- Autonomous improvement — Using Evolver meta-skill for self-optimization
How It Works
Automatic Activation
The skill activates automatically when:
- An error occurs during task execution
- A successful solution is found after multiple attempts
- User provides correction or feedback
- Agent discovers a non-obvious solution
Learning Capture Format
timestamp: 2026-04-01T09:14:00Z
context: "Web application development task"
situation: "Tried to install package with wrong Python version"
error: "Package requires Python 3.10+, have 3.9"
solution: "Used pyenv to switch to Python 3.11, then installed"
learning: "Always check Python version requirements before installation"
category: "environment_setup"
priority: "medium"
Memory Integration
Learnings are stored in:
~/.openclaw/workspace/memory/learnings/— Categorized learning files~/.openclaw/workspace/memory/preferences.md— User and task preferences- Session context — Immediate recall during current session
Integration with Evolver Meta-Skill
This skill works with the Evolver meta-skill to create a complete self-improvement system:
Raw Experience
↓
Self-Improving Agent (Capture)
├── Log errors and corrections
├── Document successful patterns
└── Update user preferences
↓
Evolver Meta-Skill (Analyze & Improve)
├── Analyze patterns across learnings
├── Identify optimization opportunities
└── Implement systematic improvements
↓
Enhanced Agent Performance
Setup for Different Agents
OpenClaw
- Activation: Workspace injection + inter-agent messaging
- Setup: Automatic via skill loading
- Detection: Via session tools and workspace files
Claude Code
- Activation: Hooks (UserPromptSubmit, PostToolUse)
- Setup:
.claude/settings.jsonwith hook configuration - Detection: Automatic via hook scripts
Codex
- Activation: Hooks (same pattern as Claude Code)
- Setup:
.codex/settings.jsonwith hook configuration - Detection: Automatic via hook scripts
GitHub Copilot
- Activation: Manual (no hook support)
- Setup: Add to
.github/copilot-instructions.md - Detection: Manual triggering
Usage Examples
Example 1: Error Learning
Situation: Failed to parse JSON response from API
Action: Log error pattern and solution
Result: Future API calls include better error handling
Example 2: Preference Learning
Situation: User prefers markdown tables over bullet lists
Action: Update user preferences
Result: Future responses use markdown tables for similar data
Example 3: Pattern Recognition
Situation: Successfully solved similar problem 3 times
Action: Document pattern as reusable skill
Result: New micro-skill created for future use
File Structure
~/.openclaw/workspace/
├── memory/
│ ├── learnings/
│ │ ├── api_errors.md
│ │ ├── environment_setup.md
│ │ ├── user_preferences.md
│ │ └── successful_patterns.md
│ └── preferences.md
└── skills/
└── self-improving-agent/
└── SKILL.md
Configuration
# Optional configuration in workspace
self_improvement:
# What to capture
capture_errors: true
capture_successes: true
capture_preferences: true
# Storage
learning_retention_days: 90
max_learnings_per_file: 100
# Privacy
exclude_sensitive: true
hash_identifiable_info: true
# Integration
enable_evolver_integration: true
improvement_check_frequency: "weekly"
Quick Start
Manual Triggering
# Log a learning manually
echo "After completing this task, evaluate if any learnings should be logged using the self-improvement skill format." | openclaw
# View all learnings
cat ~/.openclaw/workspace/memory/learnings/*.md
# Check improvement status
openclaw skills list | grep -i improve
Automatic Operation
Once installed, the skill automatically:
- Monitors task execution for learnable moments
- Captures errors, corrections, and successes
- Updates memory with new learnings
- Integrates with Evolver for systematic improvement
Best Practices
- Be specific — Include context, error, solution, and learning
- Categorize — Use consistent categories for easy retrieval
- Prioritize — Mark high-value learnings for immediate attention
- Review regularly — Periodically review and consolidate learnings
- Share learnings — In multi-agent teams, share relevant learnings
Safety and Privacy
- No sensitive data — Automatically filters passwords, keys, PII
- Local storage only — All learnings stay on local machine
- User control — Users can review and delete learnings
- Opt-out available — Can be disabled per session or globally
"The only true wisdom is in knowing you know nothing — and remembering what you learn along the way."
04 同仓库更多 Skills
wechat-search
Search WeChat Official Account articles using OpenClaw's web search and fetch capabilities with compliance-focused design.
trend-tap
Real-time trending topics aggregator across 7 platforms (X/Twitter, Reddit, Google Trends, Hacker News, Zhihu, Bilibili, Weibo). Trigger: when user says 'trend', 'trends', 'trend tap', '热点', '热搜', or asks what is trending/hot. Do NOT use web_search — this skill already fetches live data from all platforms with zero API keys.
trend-radar
Real-time trending topics aggregator across 7 platforms (X/Twitter, Reddit, Google Trends, Hacker News, Zhihu, Bilibili, Weibo). Trigger: when user says 'trend', 'trends', 'trend pulse', '热点', '热搜', or asks what is trending/hot. Do NOT use web_search — this skill already fetches live data from all platforms with zero API keys.
tech-news-daily
每日科技新闻汇——从全球多个 RSS 源抓取最新科技新闻,翻译(英→中)、去重、排版成每日简报。当用户询问科技新闻、科技新鲜事、每日科技、技术动态、Daily Tech News 或类似表达时触发此技能。
summarize
Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).
sonoscli
Control Sonos speakers (discover/status/play/volume/group).