Summary
Built Grace’s self-improvement CI/CD layer by adapting two proven patterns: the ClawHubpskoett/self-improving-agent skill (.learnings/ directory + hooks) and the existing 5-repo archive system. The result is a 4-tier promotion pipeline where errors are captured automatically, learnings accumulate over sessions, and mature patterns get promoted to permanent agent behaviour.
What changed operationally
Three Claude Code hooks now fire automatically on every Grace session:InstructionsLoaded injects recent learnings as context, PostToolUseFailure captures Bash errors to .learnings/ERRORS.md, and SessionEnd logs session summaries to .learnings/LEARNINGS.md. Grace is now registered in the archive system via .archive-manifest.yaml, enabling learnings to route to atlas and findings to so1-content.
The PROMOTE trigger word lets AJ explicitly control when learnings get promoted from raw capture to permanent agent files — respecting the ADHD-friendly gating workflow rather than running autonomous cron jobs.
Business impact
- Grace now gets smarter with every session — errors accumulate, patterns emerge, and AJ decides which ones become permanent behaviour
- The archive system grows from 5 repos to 6 (grace now participates)
- Self-improvement is auditable —
.learnings/is git-tracked, promotions are documented - Zero-effort capture — hooks fire without AJ doing anything different