Skip to content
FunCoding

Managing Copilot Memory for your personal account

Review and manage the coding conventions, preferences, and other details that Copilot has stored from your interactions.

Copilot Memory lets Copilot learn about your codebase and your personal preferences, helping Copilot agents work more effectively. For more information, see AUTOTITLE.

Your personal setting controls which types of memory Copilot can use in work you start, including agent sessions and code reviews. It does not change shared repository settings or other users' choices.

On Copilot Business and Copilot Enterprise plans, an administrator must allow user-level preferences before you can use them. Enabling the policy does not undo a choice you previously made to disable user-level preferences. For more information, see AUTOTITLE.

Settings in individual applications can further restrict Copilot Memory, but cannot override your GitHub settings or policies.

This article covers reviewing and deleting the memories that Copilot has already stored. For guidance on getting a specific fact or preference remembered in the first place, see AUTOTITLE.

Disabling or enabling Copilot Memory

The Copilot Memory setting in your personal account lets you allow user-level preferences, repository-level facts, both, or neither in work you start. Copilot code review never uses user-level preferences, but your choice controls whether it can use repository-level facts in reviews you initiate. Organization-triggered work does not use a personal scope preference.

All four options remain selectable even when a policy blocks memory use. The dropdown shows your saved preference, not which types of memory you are currently eligible to use. Applicable enterprise, organization, and repository restrictions still apply. If a policy later allows a type of memory you selected, your saved choice automatically takes effect. For repository-level controls, see AUTOTITLE.

  1. In the upper-right corner of any page on GitHub, click your profile picture, then click copilot Copilot settings.

  2. Under "Features", scroll down to the setting for Copilot Memory.

  3. Click the dropdown button and choose an option:

    • User memories allowed
    • Repository memories allowed
    • User and repository memories allowed
    • Don't use memories

Disabling memory use does not delete stored memories. Choosing Repository memories allowed disables only user-level preferences and leaves repository-level facts allowed, subject to applicable restrictions. If you want to delete your user-level preferences, review and delete them before turning them off.

Copilot Memory in GitHub Copilot CLI

In interactive sessions, the CLI's local Copilot Memory setting is on by default, so it follows your GitHub settings and policies. Use /memory off to disable both types of memory in the CLI, or /memory on to remove that local opt-out. The choice takes effect in the current session and is saved for future interactive sessions on that machine. Changing your personal setting on GitHub.com does not clear a CLI opt-out. You can also disable Copilot Memory in your Copilot CLI user settings with "memory": false. The CLI setting cannot override your personal scope choice or applicable enterprise, organization, or repository restrictions.

To check the CLI setting, enter /memory or /memory show. The command displays the client setting and a link to manage your stored memories on GitHub. An enabled status does not mean that your personal scope choice or applicable policies allow both types of memory.

In non-interactive runs, such as copilot -p "YOUR PROMPT", Copilot Memory is disabled by default, even if it is enabled for interactive sessions. Add --enable-memory to enable it for that run. This option takes precedence over a saved "memory": false setting, but your personal scope choice and account, repository, and tool-permission restrictions still apply. It does not change your saved setting.

Turning off Copilot Memory in the CLI stops further storage and retrieval, but memories already supplied to an existing conversation can remain in its context. To continue without that earlier context, turn memory off and start a new session.

Copilot Memory in Visual Studio Code

For Copilot sessions that run in its Local Agent Host, Visual Studio Code has its own Copilot Memory setting. It is off by default, even when your GitHub settings allow memory. These sessions can use repository-level facts and user-level preferences when the applicable settings allow them.

  1. Open Settings in Visual Studio Code.
  2. Search for chat.copilot.memory.enabled.
  3. Select the checkbox to enable Copilot Memory, or clear it to disable the feature in Visual Studio Code.

Enabling this setting does not override your personal scope choice or applicable policies on GitHub. To use user-level preferences on Copilot Business and Copilot Enterprise plans, an organization owner or enterprise owner must also allow them. Repository-level facts also require the separate repository access controls to allow them.

This setting does not affect VS Code's memory tool for local memory files. See Use memory with agents in VS Code in the VS Code documentation.

Copilot Memory in the GitHub Copilot app

Copilot Memory must be available for your account in the app. The app does not provide a separate toggle to make it available or a screen for managing these shared memories.

Your personal scope choice applies to both types of memory in work you start in the app. See Disabling or enabling Copilot Memory. Additional restrictions apply:

  • User-level preferences: On Copilot Business and Copilot Enterprise plans, an organization owner or enterprise owner must allow user-level preferences. See AUTOTITLE.
  • Repository-level facts: The repository's settings and applicable repository access policies must allow these. If access is blocked by a policy, ask the relevant administrator to check the repository controls.

The Memory setting in a project's settings controls a separate set of preferences that the project remembers across tasks. You can edit those preferences there, but this does not change your shared Copilot Memory facts or preferences. Use the personal or repository settings on GitHub.com to view and delete those.

Selecting a default billing entity

If you receive Copilot access through multiple enterprises or organizations, you must select a default billing entity in order to create new repository-level facts or user-level preferences with Copilot Memory. The billing entity determines which account "owns" (can manage and delete) user-level preferences that are generated for your account. Do this in your account settings.

Until you select a default, Copilot cannot create new memories for you, and will tell you to choose one.

The owner of a user-level preference is set when the preference is created by Copilot Memory and it does not change afterwards. If you later move to a different license, the preferences you have already generated stay with the organization or enterprise that owned them, and Copilot will no longer retrieve them for you. Existing repository-level facts remain associated with their repository and are not restricted to your active billing entity.

Viewing and deleting your user-level preferences

Copilot Memory stores preferences for your personal use of Copilot.

User-level preferences must be enabled for your account to view or delete them on your personal Memory page. Your personal scope choice and applicable enterprise or organization policies must allow them. If user-level preferences are disabled, the page does not let you view or delete them.

  1. In the upper-right corner of any page on GitHub, click your profile picture, then click copilot Copilot settings.
  2. In the sidebar, under copilot Copilot, click Memory.
  3. To delete a memory, click Delete memory next to it. To delete several memories at once, select their checkboxes, then click Delete.

Memories are ranked by usefulness. Memories that Copilot has learned not to use are hidden from the list, but can remain stored until they expire.

To view or delete repository-level facts, you need write access and eligibility to use repository memories, including a personal scope choice and applicable repository, organization, and enterprise settings that allow them. User-level preferences do not need to be enabled. See AUTOTITLE.

Enabling Copilot Dreaming for your personal account

Copilot Dreaming for personal memories, and for your personally owned repositories, is disabled by default. You can enable Copilot Dreaming in your personal Copilot settings.

If you get access to Copilot through an organization or enterprise, your ability to enable Copilot Dreaming may be limited by policies set by the organization or enterprise. For more information, see AUTOTITLE.

Copilot Dreaming is in public preview and is subject to change.

Enabling Copilot Dreaming for your personal memories

  1. In the upper-right corner of GitHub.com, click your profile picture, then click Settings.
  2. In the sidebar, under "Code, planning, and automation", click Copilot then click Features.
  3. Under Features, locate Copilot Memory.
  4. Make sure Copilot Memory is enabled. If Copilot Memory is disabled, the personal Copilot Dreaming setting is hidden.
  5. In the Dreaming dropdown, select Enabled.

This setting controls Copilot Dreaming for your personal memories only. It does not enable Copilot Dreaming for repositories you own. If an organization or enterprise provides your Copilot access, you can select Disabled to opt out when Copilot Dreaming is permitted. You cannot override a policy that disables Dreaming in any organization or enterprise that provides you with Copilot access, even if you also have an individual subscription.

To review the results, see AUTOTITLE.

Enabling Copilot Dreaming for a personally owned repository

These steps apply if you have an eligible individual Copilot subscription and do not receive Copilot access from an organization or enterprise. You must have administrator access to the repository. You cannot enable Copilot Dreaming for an archived repository.

Organization and enterprise policies control Copilot Dreaming for organization-owned repositories. See AUTOTITLE.

  1. On GitHub.com, open the personally owned repository where you want to enable Copilot Dreaming.

  2. Under the repository name, click Settings.

  3. In the sidebar, under "Code, planning, and automation", click Copilot, then Memory.

    Make sure Allow Copilot to store and retrieve repository facts is enabled.

  4. In the sidebar, click Dreaming.

  5. Enable Dreaming.

  6. Repeat for each of your personally owned repositories where you want to enable Copilot Dreaming.

Further reading