NEW: Claude Code Security — research preview

Copilot Memory

Persistent user preferences and repository knowledge that follow you across sessions and projects

NEWRead time: 5 min

title: "Copilot Memory" description: "Persistent user preferences and repository knowledge that follow you across sessions and projects" section: "Copilot" readTime: "5 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 learns them and applies them automatically.

Copilot Memory with user-level preferences is in early access for Copilot Pro and Pro+ users (May 2026). Repository-level memory is available more broadly.


Two Memory Scopes

User-level preferences

Preferences tied to you, not a specific repository. They follow you across all your repos and Copilot agents.

Examples of what Copilot remembers at the user level:

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

Repository-level knowledge

Facts tied to a specific repository. Stored once, applied whenever anyone with the appropriate access works in that repo.

Examples:

  • Build and test commands
  • Deployment procedures
  • Architectural decisions
  • Team coding conventions

How It Works

Copilot captures preferences in two ways:

  1. Stated preferences — you tell it directly: "Always use conventional commits format" or "I prefer functional components over class components"
  2. Inferred preferences — Copilot notices patterns in how you work and saves them

Over time, Copilot adapts to your style and delivers results that fit how you work without you repeating yourself.


Manage Your Memories

Review and delete your user-level preferences at:

github.com/settings/copilot/memory

You can:

  • See everything Copilot has remembered about you
  • Delete individual memories
  • Clear all user memories

Enable Copilot Memory

  1. Go to github.com/settings/copilot
  2. Find the Copilot Memory toggle
  3. Turn it on

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 UIPlain markdown files
How it learnsStated + inferredFrom corrections in sessions
AccessAny Copilot surfaceClaude 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.


  • Customization — Custom instructions and agents
  • Agents — How agents use memory during sessions
  • Copilot App — Sessions that carry memory context from GitHub