In short.
This GitHub guide introduces developers and team administrators to Copilot Memory, a GitHub Copilot feature that stores repository facts and personal preferences for reuse. The feature's usefulness depends on permissions, settings and Copilot's judgment about which memories to apply. It distinguishes shared repository facts from personal preferences, explains how memories move between supported Copilot surfaces, and documents creation, deletion, retention and billing controls. Important catches include administrator ownership of preferences on managed plans, additional token usage, and the absence of personal preferences in code review and Agentic Autofix. The page provides no measured evidence of improvements in accuracy or productivity.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected documentation page at the exact supplied API address, including its tables and notices. Linked management, pricing, import, integration, custom-instruction and SDK pages are excluded. Account-specific availability, configuration, memory creation, retrieval, deletion, expiry, safeguard effectiveness and billing behavior have not been verified through execution.
The overview
identity
About GitHub Copilot Memory is GitHub documentation explaining a feature of its coding assistant. The resource is a guide, rather than a standalone tool or installable memory component.
Copilot Memory retains repository facts, such as build commands and architectural conventions, and personal preferences, such as how a developer wants changes explained. These two memory types have different scopes, owners and controls.
assessment
The guide is useful for deciding whether Copilot Memory suits recurring work in established repositories. Its strongest contribution is explaining boundaries that are easy to overlook: who can create memories, where preferences apply, how administrators control access and why a disappearing memory may still be stored.
The practical benefit is plausible reuse of context that developers would otherwise repeat. The page does not establish how often memories improve results, prevent mistakes or reduce work. Treat those outcomes as unmeasured.
users
Developers returning to the same codebase can use the guide to understand how Copilot might retain project conventions. Developers working across repositories can learn which personal preferences may follow them. Team administrators get information about shared access, ownership, policy controls and retention.
Beginners should focus on the difference between a fact shared with eligible repository collaborators and a preference attached to their own interactions. Experienced developers should examine client differences, billing-entity boundaries and the limits of using memory for mandatory engineering rules.
capabilities
Repository memories can capture coding conventions, architecture, build and test commands, and project rules. Personal memories can capture clearly stated, non-sensitive preferences, approval requirements and reusable workflows.
Memories captured through one supported Copilot surface can be used by another. The page discusses the Copilot app, CLI, cloud agent, code review, Agentic Autofix, GitHub Mobile, Slack, Teams and a Visual Studio Code setting. Code review and Agentic Autofix use repository facts but never stored personal preferences.
Repository facts stay with their original repository and are not copied when it is forked. Personal preferences can still apply in the fork where supported and permitted.
Using it
requirements
Copilot Memory requires a supported paid Copilot plan and a compatible client. Personal settings, applicable enterprise or organization policies, repository settings and any local client setting must allow the relevant memory type.
Using repository facts requires repository access. Creating new facts requires push permission. Viewing or deleting facts in repository settings requires write access and eligibility to use repository memories; personal preferences do not need to be enabled for those management operations.
On Business and Enterprise plans, personal preferences remain disabled until an administrator enables the relevant policy. Repository-memory access has separate controls and is allowed by default unless restricted. People with multiple Copilot licenses must select a default billing entity before new memories can be stored.
mechanism
Copilot identifies durable information during work and decides whether to save it as a repository fact or a personal preference. Repository facts have citations that Copilot is instructed to check against the current branch. Preference relevance also depends on Copilot's judgment.
An automatic voting mechanism reinforces validated memories and reduces the use of outdated ones. Upvoted memories are more likely to enter future model context. Settings omit citations, vote counts and expiry timestamps, so users cannot inspect all of this information there.
The default expiry period is 90 days without reinforcement. An upvote resets expiry; retrieval alone does not. Administrators can set repository-fact retention between 7 and 180 days, with the lower applicable organization or enterprise value taking precedence. Personal preferences retain the 90-day default. Existing repository facts adopt changed retention settings when next reinforced.
setup
Choose the desired scope in personal Copilot settings: personal preferences, repository facts, both or neither. This choice cannot override administrator restrictions and does not change collaborators' choices. Organization-triggered work does not use a personal scope preference.
Interactive Copilot CLI sessions have their local setting on by default and follow GitHub settings. /memory show checks the local setting. /memory off disables both types for interactive sessions and persists on that machine; /memory on clears that local opt-out. Programmatic sessions require --enable-memory for each run. Visual Studio Code has a separate local setting that defaults to off.
To encourage a memory, state a durable fact or preference and explicitly identify whether it applies personally or to everyone in the repository. Individual memories cannot be directly created or edited through GitHub settings, although they can be reviewed and deleted with the necessary permissions. The page also describes bulk import through Copilot CLI, but the linked import procedure is outside this resource.
example
Illustrative scenario, not an observed run: a repository already uses Vitest, and a developer tells Copilot to remember that this is the unit-test framework for all contributors. Separately, the developer asks Copilot to remember a personal preference for an explanation before changes are applied.
If saved, the test-framework fact belongs to that repository, while the explanation preference can apply across repositories on supported surfaces. A later Copilot code review could use the repository fact, but it would not apply the stored personal preference. Saving and following either memory are not guaranteed.
Assessment & evidence
limitations
Copilot may omit a memory or judge its relevance incorrectly. Facts can originate from pull requests closed without merging, and citation checks do not guarantee detection of outdated information. A memory hidden from the settings list may remain stored until expiry; explicit deletion is the documented way to remove an unwanted memory.
The Copilot app's project Memory setting is separate from the shared facts and personal preferences described here. Changing project memory does not change Copilot Memory. Availability in the app also depends on the account, with no app setting that makes the feature available.
Detected secrets are rejected, and recognized model-control tokens can be rejected. Avoiding confidential information, sensitive personal information and temporary instructions also relies on instructions given to Copilot. Detection effectiveness is not quantified.
In Copilot CLI, only the root agent can store or vote on memories; authorized subagents can read them. The SDK can enable memory for sessions but provides no APIs to list, edit or delete memories.
reasoning
The documented design suggests a good fit for accumulating useful background context during repeated work. Automatic creation and expiry can reduce manual upkeep, while shared repository facts can make discoveries available across supported Copilot interactions.
A practical implication is that memory should not be the sole place for mandatory rules. Retrieval is selective, validation depends on model judgment and some surfaces ignore personal preferences entirely. The guide recommends custom instructions for important requirements and reviewing Copilot's work.
alternatives
The guide presents custom instructions as a complementary approach. People write and maintain them, and their contents are visible in repository files or personal settings. They are better suited to stating important requirements explicitly, although they also do not guarantee compliance.
The Copilot app's separate project Memory feature stores preferences for a project across tasks. It has a different scope from shared repository facts and personal preferences across repositories. The page provides no comparative evidence about third-party memory tools.
evidence
The evidence is GitHub's complete About GitHub Copilot Memory documentation page at [https://docs.github.com/api/article/body?pathname=/en/copilot/concepts/prompting-and-context/copilot-memory]. It supports the descriptions of memory types, permissions, client behavior, retention, ownership and token usage.
This is first-party descriptive documentation. It supplies no benchmark results or execution evidence establishing reliability, productivity gains, deletion behavior or billing outcomes. Actual operation has not been assessed through execution.
Access & freshness
costs
Access requires a paid Copilot plan. Memories included in model context count toward token usage and can affect the AI credits consumed by an interaction. The effect depends on the model and the number of tokens.
Subscription prices, typical memory size, additional tokens per interaction and monetary charges are not established by this page. Its linked pricing page is outside scope, so a numerical cost estimate is unknown.
rights
Repository facts belong to the repository and are shared with eligible users who have read access. Personal preferences are stored in user settings and can appear in shared agent sessions. When a memory comes from something a person said, their words are recorded as its citation.
On Business and Enterprise plans, personal preferences are owned by the organization or enterprise providing the active license. Administrators can view, export and delete them. Sessions retrieve preferences belonging to the user's current active billing entity, so switching that entity can change which preferences are available.
The page does not establish a redistribution license for the documentation or an implementation package, nor does it explain ownership of generated code. Those rights remain unknown from this resource.
freshness
The documentation was captured on 15 November 2026 at 00:52:55.447 UTC. The supplied page does not state a publication date, last-update date or feature version.
Its availability and default settings describe the captured documentation, rather than confirmed behavior for every account or client release. Subsequent changes and account-specific availability are unknown.
actions
Before adopting the feature, check which memory types your account, repository and client permit. On a managed plan, establish who owns personal preferences and can export them. If you hold multiple licenses, confirm the default billing entity.
Start with clearly scoped, non-sensitive facts and preferences. Review stored entries, explicitly delete unwanted memories and keep important requirements in maintained custom instructions. Check the relevant plan and model pricing before estimating ongoing cost.
