NEW: Claude Code Security — research preview →

Copilot Memory

Persistent user preferences and repository knowledge that Copilot carries across sessions

NEWRead time: 4 min

title: "Copilot Memory" description: "Persistent user preferences and repository knowledge that Copilot carries across sessions" section: "Copilot" readTime: "4 min" badge: "NEW"

Copilot Memory

Copilot Memory lets GitHub Copilot remember things about you and your repositories across sessions. Instead of re-explaining your preferences every time, Copilot stores them and applies them automatically.

On individual plans Copilot Memory is on by default. On organization- and enterprise-managed plans an administrator must first enable the policy, after which users can opt out. Business and Enterprise administrators can export or delete user-level preferences.


Two Memory Scopes

User-level preferences

Preferences tied to you, stated or implied by your working style. They apply only to your interactions, across repositories.

Examples:

  • Your preferred commit message style
  • How you like pull requests structured
  • Preferred test framework or naming conventions
  • Whether you prefer verbose or terse explanations

Repository-level facts

Facts tied to a specific repository, such as coding conventions, architecture decisions, and build commands. Any user with Copilot Memory access to that repository benefits, but the facts apply only within it. Repository owners can review and delete them.


How It Works

Copilot captures preferences from what you state directly ("Always use conventional commits format") and from patterns it notices in how you work.

Memories are validated before use:

  • Repository facts are linked to supporting code, and Copilot checks those citations against the current branch
  • User preferences are linked to citations (which may include your own words), and Copilot judges whether each still applies
  • Facts drawn from pull requests closed without merging are used only if the current codebase still supports them

A stored fact or preference that goes unused is deleted after 28 days. Successful validation and use can reset the timer.


Where It Is Used

  • Copilot cloud agent
  • Copilot code review (repository-level facts only)
  • Copilot CLI (repository-level facts plus the initiating user's preferences)
  • Agentic autofix

Facts captured by one surface can be used by the others.


Manage Copilot Memory

Memory is turned on per user, not per repository. Manage it from your personal Copilot settings on GitHub.com (see Managing Copilot Memory in the docs). If you hold multiple Copilot licenses, choose a default billing entity so user-level preferences can be generated.


Copilot Memory vs Claude Code Auto Memory

Both tools have persistent memory systems, but they work differently:

Copilot MemoryClaude Code Auto Memory
ScopesUser + repositoryRepository (per git root)
StorageGitHub cloudLocal machine
Syncs across devicesYesNo
User editableVia GitHub settings and repo owner reviewPlain markdown files
ExpiryUnused facts deleted after 28 daysPersist until you remove them
Used byCloud agent, code review, CLI, autofixClaude Code only

Copilot Memory travels with you across devices and Copilot experiences. Claude Code auto memory stays on your machine but is fully transparent: plain markdown you can read and edit directly.