メモ
This feature is currently in public preview and is subject to change.
Copilot Memory allows Copilot to learn about your codebase, helping Copilot coding agent, Copilot code review, and Copilot CLI to work more effectively in a repository.
For more information, see About agentic memory for GitHub Copilot.
Enabling Copilot Memory
Copilot Memory is turned off by default and must be enabled for users in either the enterprise, organization, or personal settings.
Users who receive Copilot from an organization must have Copilot Memory enabled in the organization or enterprise settings.
メモ
If a user is assigned a Copilot subscription by more than one organization, the most restrictive setting applies—that is, Copilot Memory will not be used unless all of those organizations have enabled this feature.
Users who receive Copilot from an individual subscription to Copilot Pro or Copilot Pro+ must have Copilot Memory enabled in their personal Copilot settings.
Enabling Copilot Memory for an enterprise
Enterprise owners can define an enablement policy for the whole enterprise, or delegate the decision to individual organization owners.
-
In the top-right corner of GitHub, click your profile picture.
-
Depending on your environment, click Enterprise, or click Enterprises then click the enterprise you want to view.
-
At the top of the page, click AI controls.
-
In the sidebar, click Copilot.
-
Under "Features", scroll down to the Copilot Memory setting and select a policy from the dropdown.
- Let organizations decide devolves the decision of whether to enable Copilot Memory to organization owners.
- Enabled everywhere enables Copilot Memory for all members of organizations in this enterprise who have a Copilot license.
- Disabled everywhere disables Copilot Memory and prevents it being enabled by organizations in this enterprise.
Enabling Copilot Memory for an organization
Organization owners can enable or disable Copilot Memory for all members of the organization with a Copilot license.
If the organization belongs to an enterprise, the ability for organization owners to enable or disable Copilot Memory may be controlled by the enterprise-level policy.
-
In the upper-right corner of GitHub, click your profile picture, then click Organizations.
-
Next to the organization, click Settings.
-
In the sidebar, under "Code, planning, and automation", click Copilot, then click Policies.
-
Under "Features", scroll down to the setting for Copilot Memory.
-
Click the dropdown button and select Enabled.
Copilot Memory is enabled for all members of the organization who have a Copilot license.
Enabling Copilot Memory for an individual user
If you have an individual Copilot subscription, from a Copilot Pro or Copilot Pro+ plan, you can enable Copilot Memory in your personal Copilot settings on GitHub.
Once enabled, Copilot Memory will be used in any repository in which you use Copilot coding agent, Copilot code review, or Copilot CLI.
- In the upper-right corner of any page on GitHub, click your profile picture, then click Copilot settings.
- Under "Features", scroll down to the setting for Copilot Memory.
- Click the dropdown button and select Enabled.
Viewing and deleting memories
As an owner of a repository in which Copilot Memory is in use, you can review the currently stored memories. If you think any are inappropriate, misleading, or incorrect you can delete them.
Viewing Copilot's memories for a repository
-
On GitHub, navigate to the main page of the repository.
-
Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the "Code & automation" section of the sidebar, click Copilot then Memory.
A list of stored memories is displayed in chronological order, with the most recently stored memory at the top of the list.

Deleting a memory
You can delete a memory if you don't want it to be used by Copilot. It's worth noting, however, that Copilot validates memories before they are used, which ensures that a memory is only used if the code that caused it to be generated still exists in the codebase.
-
View the memories for a repository.
-
Click the trashcan icon to the right of a memory you want to delete.
Alternatively, use the checkboxes to select multiple memories, then click Delete.
メモ
Memories are automatically deleted after 28 days to avoid stale information adversely affecting agentic decision making.