๐ฆ ClawHub
Agent Self-Evolve
by @zhanghengyi1986-afk
Self-evolution system for OpenClaw agents. Enables continuous learning through mistake tracking, experience distillation, skill improvement queues, and autom...
๐ก Examples
1. Initialize Evolution Files
Run the setup script to create the file structure:
bash /scripts/setup-evolution.sh
This creates:
memory/
evolution-log.md # Chronicle of every evolution event
evolution-metrics.json # Statistics tracker
mistakes-learned.md # Mistake โ lesson database
skill-improvements.md # Queued improvements for skills/code
testing-knowledge.md # Domain knowledge base (rename per your domain)
2. Set Up Cron Jobs
Create two cron jobs for automated evolution:
Daily evolution (recommended: late evening, e.g. 23:00):
Schedule: cron "0 23 * * *" (your timezone)
Payload: agentTurn
Message: see references/daily-evolution-prompt.md
Weekly deep evolution (recommended: weekend morning, e.g. Sunday 10:00):
Schedule: cron "0 10 * * 0" (your timezone)
Payload: agentTurn
Message: see references/weekly-evolution-prompt.md
3. Add Real-Time Hooks to AGENTS.md
Add the following section to your AGENTS.md (adapt to your role):
```markdown
๐ Tips & Best Practices
mistakes-learned.md before similar tasks to avoid repeating errorsTERMINAL
clawhub install agent-self-evolve