How pskoett/self-improving-agent works
This OpenClaw-only skill helps an agent record learnings, errors, and feature requests across sessions. Its main runtime path is OpenClaw hook events: bootstrap adds a reminder, while new/reset commands can scan the prior transcript and append redacted, pending errors for later triage. The skill instructions and learning templates provide the broader capture and promotion practices. The README identifies the skill entry point and hook; handler excerpts support the event and error-sweep flow. Other skill-document relationships are not shown in the supplied excerpts.
Main entry points: handler.js Hook runtime · handler.ts Hook TypeScript · ERRORS.md Errors log
Components 9
Skill guidance
- Skill instructions
self-improving-agent/SKILL.md
OpenClaw hook
- Hook runtime
self-improving-agent/hooks/openclaw/handler.js - Hook TypeScript
self-improving-agent/hooks/openclaw/handler.ts - Session transcript
Learning records
- Learning templates
self-improving-agent/assets - Learnings log
self-improving-agent/assets/LEARNINGS.md - Errors log
self-improving-agent/assets/ERRORS.md - Feature requests
self-improving-agent/assets/FEATURE_REQUESTS.md
Other components
- OpenClaw
Connections 10
- OpenClaw → Hook runtime: dispatches events
README.md - Hook runtime → Session transcript: scans transcript
self-improving-agent/hooks/openclaw/handler.js - Hook runtime → Errors log: appends pending errors
self-improving-agent/hooks/openclaw/handler.js - Hook runtime → Errors log: counts pending entries
self-improving-agent/hooks/openclaw/handler.js - Hook runtime → OpenClaw: injects reminder
self-improving-agent/hooks/openclaw/handler.js - OpenClaw → Hook TypeScript: dispatches events
self-improving-agent/hooks/openclaw/handler.ts - Hook TypeScript → Session transcript: scans transcript
self-improving-agent/hooks/openclaw/handler.ts - Hook TypeScript → Errors log: appends pending errors
self-improving-agent/hooks/openclaw/handler.ts - Hook TypeScript → Errors log: counts pending entries
self-improving-agent/hooks/openclaw/handler.ts - Hook TypeScript → OpenClaw: injects reminder
self-improving-agent/hooks/openclaw/handler.ts