continual-learning

Solid

Guide for implementing continual learning in AI coding agents — hooks, memory scoping, reflection patterns. Use when setting up learning infrastructure for agents.

Code & Development 2,541 stars 295 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Continual Learning for AI Coding Agents Your agent forgets everything between sessions. Continual learning fixes that. ## The Loop ``` Experience → Capture → Reflect → Persist → Apply ↑ │ └───────────────────────────────────────┘ ``` ## Quick Start Install the hook (one step): ```bash cp -r hooks/continual-learning .github/hooks/ ``` Auto-initializes on first session. No config needed. ## Two-Tier Memory **Global** (`~/.copilot/learnings.db`) — follows you across all projects: - Tool patterns (which tools fail, which work) - Cross-project conventions - General coding preferences **Local** (`.copilot-memory/learnings.db`) — stays with this repo: - Project-specific conventions - Common mistakes for this codebase - Team preferences ## How Learnings Get Stored ### Automatic (via hooks) The hook observes tool outcomes and detects failure patterns: ``` Session 1: bash tool fails 4 times → learning stored: "bash frequently fails" Session 2: hook surfaces that learning at start → agent adjusts approach ``` ### Agent-native (via store_memory / SQL) The agent can write learnings directly: ```sql INSERT INTO learnings (scope, category, content, source) VALUES ('local', 'convention', 'This project uses Result<T> not exceptions', 'user_correction'); ``` Categories: `pattern`, `mistake`, `preference`, `tool_insight` ### Manual (memory files) For human-readable, version-controlled knowledge: ```markdown # .copilot-memory/conven...

Details

Author
microsoft
Repository
microsoft/skills
Created
4 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category