In short.
This GitHub guide is for developers who want Copilot to remember repository facts or personal preferences, but saving a memory does not guarantee future use. It explains how to request memories through supported Copilot interfaces and import prepared records through the CLI. Practical constraints include account availability, repository write access, partial import failures and deletion through settings. Prices, supported product versions and actual storage or recall performance are unknown from this page.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete supplied page at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/use-copilot-agents/copilot-memory/create-memories], including storage and usage caveats, scope rules, CLI approvals, import validation and conflicts, sharing, expiration and deletion. Linked pages about Memory, custom instructions, individual interfaces and administration are excluded. No commands or Copilot interactions were executed; actual storage, import, recall and deletion behavior remains unverified.
The overview
identity
Manually creating memories for GitHub Copilot is a GitHub Docs how-to about explicitly adding information to Copilot Memory. A repository fact describes something relevant to collaborators in a repository; a user preference describes how an individual wants Copilot to work across projects.
The source is the complete documentation page at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/use-copilot-agents/copilot-memory/create-memories].
assessment
The guide is useful for developers who repeatedly explain repository conventions or collaboration preferences to Copilot. Its strongest practical detail is the combination of scope guidance and import failure handling.
Memory is an uncertain way to carry instructions forward: Copilot decides whether to store a prompted memory, and a stored memory may go unused. The page recommends custom instructions when instructions need to be supplied consistently; it does not establish guaranteed compliance.
users
Individual developers can use the prompting guidance to express preferences such as requesting approval before publishing changes. Repository contributors with write access can record shared conventions, such as where migrations belong or which files are generated.
Developers preparing several memories at once can use the CLI import instructions. Beginners receive concrete prompt examples, while experienced developers receive a versioned record format, conflict options and guidance for recovering from partial imports.
capabilities
When Memory is enabled and available to the account, the page describes requesting memories through Copilot CLI, Copilot cloud agent, GitHub Copilot app and Visual Studio Code. Copilot can also create memories automatically during tasks and reinforce a matching memory instead of creating a duplicate.
Copilot CLI supports importing prepared memories from a JSONL file, with one memory object per line. In CLI sessions, only the root agent can store or vote on memories; subagents can use relevant memories.
Using it
requirements
Copilot Memory must be available for the account and enabled for the intended use. Creating a repository-level fact requires write access and Memory enabled in that repository. Exact subscription eligibility and minimum application or CLI versions are not specified.
Each import record requires type, version, scope, subject, fact, reason and citations. The documented format uses type memory and version 1. Repository records identify the GitHub.com host, repository owner and repository name. Authentication, policy, repository permissions, scope validation and secret scanning still apply to imports.
mechanism
For prompted memories, Copilot decides whether to store the information and which scope applies. Scope depends on whom the information concerns. State explicitly whether a fact applies to everyone in the repository or a preference applies to you across projects. The page says Copilot asks for clarification when scope is unclear.
The optional externalId import field identifies records in results and detects repeated IDs within the input file. It does not become a permanent memory identifier. Repository-level facts are shared with collaborators who can use Copilot Memory in that repository.
Memories expire when they are not reinforced within the default or configured retention period. The page does not specify the duration. Asking Copilot to forget something can downvote it, but immediate deletion requires personal or repository settings.
setup
For an individual memory, provide a precise fact or preference and its intended scope in an available Copilot interface. A pull-request comment must begin with @copilot to trigger the cloud agent. GitHub.com settings do not support creating or editing an individual memory.
For bulk imports, prepare one versioned memory object per JSONL line. First use copilot memories import PATH-TO-FILE --dry-run to validate the file format. This does not check account permission to store the records. Then use copilot memories import PATH-TO-FILE to submit them.
Interactive CLI sessions may request approval for storing or rating memories, depending on permission settings. Running the import command itself approves submission of its records; the CLI does not request separate approval for every imported memory.
example
The guide's generated-code example asks Copilot to remember that api/openapi.gen.go is generated and edits belong in openapi.yaml. An adapted prompt is: "Remember for this repository: api/openapi.gen.go is generated; make API definition changes in openapi.yaml."
For a personal preference, explicitly name the cross-project scope: "Across all my projects, remember to ask for approval before publishing changes." These are illustrative requests; successful storage and later recall are not established.
For machine-readable import results, the documented command is copilot memories import PATH-TO-FILE --output json. Adding --on-conflict skip requests skipping conflicting records.
Assessment & evidence
limitations
Prompting does not guarantee storage, and storage does not guarantee use. Words such as always or going forward do not establish scope. Copilot cannot immediately delete a memory in response to a prompt.
Imports can partially succeed. By default, a repeated externalId within the file or a conflict with an existing memory produces an error for that record. Retrying the entire file can create duplicates, so the page directs readers to retry only failed records.
Actual recall accuracy, storage success, permission enforcement and compatibility with particular installed versions have not been assessed.
reasoning
The documentation supports using Memory to carry repository context and personal preferences between tasks. Its explicit storage and recall caveats mean a requested memory cannot be treated as proof that Copilot will follow that guidance later.
For bulk adoption, the practical decision is whether the team can prepare scoped, cited records and inspect individual import results. File validation alone leaves permission to store those records unknown, and an import command can leave a mixture of successful and failed records.
alternatives
The page recommends custom instructions for consistently supplying instructions. The linked custom-instructions documentation is outside this page, so its setup, supported scope and limitations are not assessed.
Within Memory, automatic capture may be sufficient for routine repository facts and preferences. Explicit prompts suit particular additions, while CLI import supports prepared collections. The evidence does not compare these approaches with other vendors' memory features.
evidence
The evidence is the complete GitHub Docs page, including examples, important notices, import commands and deletion guidance. Its source address is [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/use-copilot-agents/copilot-memory/create-memories]. The supplied source revision is sha256:30e5c5ff1120fedb3b15fd98db88e5dd34a519e907f0a4dd791eb275a6803924.
The page establishes documented behavior and procedures. No Copilot sessions, commands or imports were executed, and no storage, recall or deletion outcomes were independently verified.
Access & freshness
costs
The page states no subscription prices, Memory charges, import fees or usage allowances. The required plan and total cost of accessing these capabilities are unknown from the supplied evidence.
rights
The supplied page does not state a documentation licence or redistribution grant. Broader ownership, privacy and data-use terms for stored memories are not established here.
The page explicitly says repository facts are shared with collaborators who can use Memory in that repository. Interactive CLI approval prompts show whether a proposed memory is personal or shared.
freshness
The supplied page was captured on 15 November 2026 at 14:58:50.615 UTC. It does not state a publication date, last-update date or required Copilot product version. Changes after that capture are unknown.
Version 1 appears in the example memory objects and describes the import record format. It does not establish a CLI or application release version.
actions
Confirm that Memory is available and enabled for the intended account and repository. Write a precise fact or preference with explicit scope, and use custom instructions when guidance needs to be supplied consistently.
Before a bulk import, validate the JSONL format and confirm the intended sharing scope. Inspect every record's result after submission and retry only failed records. Remember that dry-run validation does not establish permission to store memories.
Use personal or repository settings when immediate deletion is required. A request for Copilot to forget a memory does not remove it from the store.
