Skip to main content

Managing Copilot Memory for an organization or enterprise

Manage Copilot Memory settings and stored memories for an organization or enterprise.

Who can use this feature?

Enterprise, organization, or repository administrators.

Enterprises and organizations with a Copilot Enterprise or Copilot Business plan.

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

  1. Navigate to your enterprise. For example, from the Enterprises page on GitHub.com.
  2. At the top of the page, click AI controls.
  3. In the sidebar, click Copilot.
  4. 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.

  1. In the upper-right corner of GitHub, click your profile picture, then click Organizations.

  2. Select an organization by clicking on it.

  3. Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of the tabs in an organization's profile. The "Settings" tab is outlined in dark orange.

  4. In the sidebar, under "Code, planning, and automation", click Copilot, then click Policies.

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

  6. 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.

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

  3. In the "Code & automation" section of the sidebar, click Copilot, then click Memory.

  4. 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.

  1. On GitHub, navigate to the main page of the organization.

  2. Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of the tabs in an organization's profile. The "Settings" tab is outlined in dark orange.

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

  4. 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.

  1. On GitHub, navigate to the main page of the organization.

  2. Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of the tabs in an organization's profile. The "Settings" tab is outlined in dark orange.

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

  4. 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.

  1. Navigate to your enterprise. For example, from the Enterprises page on GitHub.com.

  2. At the top of the page, click Billing and licensing.

  3. In the "Billing and licensing" sidebar, click Licensing.

  4. In the "Copilot" section, click Manage.

  5. 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.

  1. Navigate to your enterprise. For example, from the Enterprises page on GitHub.com.

  2. At the top of the page, click Billing and licensing.

  3. In the "Billing and licensing" sidebar, click Licensing.

  4. In the "Copilot" section, click Manage.

  5. 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.

Further reading