In a nutshell
Copilot Memory is a mechanism for Code Review / Cloud Agent / CLI to remember and reuse knowledge learned in a repository.
No more repeating the same preamble every time โ the more you use it, the smarter Copilot becomes.
Scope and mechanics
Scope
- ๐ฆ Per repository โ memories are tied to a repository and used only within it
- ๐ฅ Shared across users โ available in Copilot sessions for all users who have access to the repository
- ๐ Cross-feature โ knowledge learned by Cloud Agent is available to Code Review, and vice versa
How it works
- ๐ Each memory carries code citations that are verified against the current codebase when the memory is used
- โณ Auto-deleted after 28 days โ refreshed and extended whenever the memory is used
Why it matters
No more repeating the same explanation in every prompt โ the more you use it, the deeper Copilotโs understanding of the repository grows.
Where to configure it
| Scope | Settings path | What you can do |
|---|---|---|
| Repository | Repo โ Settings โ Code and automation โ Copilot โ Memory | View the list of saved memories and delete individual entries |
| Organization | Org โ Settings โ Code, planning, and automation โ Copilot โ Policies โ Copilot Memory | Enable / Disable for the entire org |
| Enterprise | Enterprise โ AI controls โ Copilot โ Copilot Memory | Enabled / Disabled / Let orgs decide for all orgs |
๐ Official guide: Managing and curating Copilot Memory