Understand Continual Learning Memory Scopes
mainThe hook uses a two-tier memory system to persist knowledge across sessions:
- Global Scope: Stored in
~/.copilot/learnings.db. This contains tool patterns and cross-project insights that follow you across different repositories. - Local Scope: Stored in
.copilot-memory/learnings.db. This contains repository conventions and project-specific mistakes. Local memory only activates when working inside a git repository.
Both databases are automatically created on the first run.