Note
This feature is currently in public preview and is subject to change.
Copilot Memory lets Copilot learn about your codebase and your personal preferences, helping Copilot agents work more effectively. For more information, see About GitHub Copilot Memory.
Enabling Copilot Memory
For enterprise- and organization-managed Copilot subscriptions, Copilot Memory is off by default and must be enabled in the enterprise or organization settings.
Once Copilot Memory is enabled, the feature is on for users by default. Copilot Memory will be used in any repository in which users use supported Copilot features, and it will save both repository-level facts and user-level preferences. Individual users can opt out of Copilot Memory in their account settings.
Note
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.
Enabling Copilot Memory for an enterprise
- Navigate to your enterprise. For example, from the Enterprises page on GitHub.com.
- 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.
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.
-
Select an organization by clicking on it.
-
Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then 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.
Managing repository-level facts
As an administrator of a repository in which Copilot Memory is in use, you can review the currently stored repository-level facts. If you think any are inappropriate, misleading, or incorrect, you can delete them.
-
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 click Memory.
-
You will see a list of repository-level facts, which you can delete as needed.
Managing user-level preferences for an organization
As an administrator, you can export or delete all user-level preferences that were generated with your organization as the active billing entity. For more information on the ownership model, see About GitHub Copilot Memory.
Exporting user-level preferences
You can export user-level preferences in JSONL format. You can do this for everyone at once or for individual users.
-
On GitHub, navigate to the main page of the organization.
-
Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the sidebar, under "Code, planning, and automation", click Copilot, then click Access.
-
From here, you can export preferences for everyone or for an individual user.
- For an individual user: Next to the user's name, click , then click Export Copilot memories.
- For everyone: Click the Get usage report dropdown, then click Download user memories.
Existing exports are reused for a two-hour window, so if someone else has requested a bulk export or an export for the same user within the last two hours, you may find the results are slightly out of date. Exports are limited to 10 per hour.
Deleting user-level preferences
You can delete user-level preferences in bulk or for individual users.
-
On GitHub, navigate to the main page of the organization.
-
Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the sidebar, under "Code, planning, and automation", click Copilot, then click Access.
-
From here, you can delete preferences for everyone or for an individual user.
- For an individual user: Next to the user's name, click , then click Delete Copilot memories.
- For everyone: Click the Get usage report dropdown, then click Delete user memories.
Managing user-level preferences for an enterprise
As an administrator, you can export or delete all user-level preferences that were generated with your enterprise as the active billing entity. For more information on the ownership model, see About GitHub Copilot Memory.
Exporting user-level preferences
You can export user-level preferences in JSONL format. You can do this for everyone at once or for individual users.
-
Navigate to your enterprise. For example, from the Enterprises page on GitHub.com.
-
At the top of the page, click Billing and licensing.
-
In the "Billing and licensing" sidebar, click Licensing.
-
In the "Copilot" section, click Manage.
-
From here, you can export preferences for everyone or for an individual user.
- For an individual user: Next to the user's name, click , then click Export Copilot memories.
- For everyone: Click the Get usage report dropdown, then click Download user memories.
Existing exports are reused for a two-hour window, so if someone else has requested a bulk export or an export for the same user within the last two hours, you may find the results are slightly out of date. Exports are limited to 10 per hour.
Deleting user-level preferences
You can delete user-level preferences in bulk or for individual users.
-
Navigate to your enterprise. For example, from the Enterprises page on GitHub.com.
-
At the top of the page, click Billing and licensing.
-
In the "Billing and licensing" sidebar, click Licensing.
-
In the "Copilot" section, click Manage.
-
From here, you can delete preferences for everyone or for an individual user.
- For an individual user: Next to the user's name, click , then click Delete Copilot memories.
- For everyone: Click the Get usage report dropdown, then click Delete user memories.
Auditing Copilot Memory
Events appear in your organization or enterprise's audit log when an administrator exports or deletes memories, and when a user opts out of Copilot Memory. See Reviewing audit logs for GitHub Copilot.