feat: Continual Learning hooks, skill, and docs site update#159
Merged
feat: Continual Learning hooks, skill, and docs site update#159
Conversation
- Add hooks/continual-learning/ with session lifecycle scripts: load-session-start.sh, track-tool-use.sh, reflect-session-end.sh - Add .github/skills/continual-learning/SKILL.md teaching the pattern - Add Hooks section to docs site with featured HookCard component - Sync skills.json (133→134 skills, add continual-learning + frontend-design-review) - Subtle link to awesome-copilot for additional hooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds continual learning infrastructure for AI coding agents — a single hook that enables agents to learn, reflect, and persist knowledge across sessions.
Inspired by the invariants in beads: one-step setup, auto-initialization, structured data with compaction.
Install
That's it. Auto-initializes on first session.
Design
Two-Tier Memory
~/.copilot/learnings.db.copilot-memory/learnings.dbSingle Script
One
learn.shhandles all lifecycle events — no multi-script complexity:sessionStart→ loads learnings from both DBspostToolUse→ tracks tool outcomes (3ms overhead)sessionEnd→ analyzes patterns, persists insights, compacts old dataCompaction
Old low-value learnings decay automatically (60-day TTL, low hit count). High-value learnings persist and rank higher. Tool logs pruned after 7 days.
Changes
🧠 Hook (
hooks/continual-learning/)learn.sh— single self-contained script, auto-inits DBs and directorieshooks.json— lifecycle event configurationREADME.md— concise docs📚 Skill (
.github/skills/continual-learning/)🌐 Docs Site
HookCard.astrocomponent