Skip to content

Instantly share code, notes, and snippets.

@cassidoo
Last active February 17, 2026 15:27
Show Gist options
  • Select an option

  • Save cassidoo/19404408f0d08249c38e51148b18a3d2 to your computer and use it in GitHub Desktop.

Select an option

Save cassidoo/19404408f0d08249c38e51148b18a3d2 to your computer and use it in GitHub Desktop.

Copilot memory script

Memory usage is opt-in while in public preview, so go to your Copilot settings to enable it.

Here we see a pull request making changes to an API and bumping the version accordingly. The Copilot code review agent is reviewing the changes for correctness, completeness, and quality. Let’s take a look at the session logs.

The code review agent noticed that the API version must remain synchronized across three parts of the codebase to prevent integration failures, and stored this learning as a memory.

A few days later a developer assigned the Copilot coding agent this issue which requires changes to the API.

The agent realizes that the API version must be bumped for its changes to take effect. The agent already knows three places it needs to bump the version because it's using the memory generated during a precious code review session. It reads the three cited code locations to verify the memory’s accuracy and then makes the needed code edits.

Copilot code review learned a key aspect of the codebase that the coding agent then applied to prevent subtle bugs and integration failures at runtime.

@thatspaige
Copy link

memory is in public preview, not private.

Also goes out today https://github.com/github/releases/issues/7742

@thatspaige
Copy link

if it's a talking head, when you say "a few days later" should it be you (a different developer) in a mustache?

@thatspaige
Copy link

can we hit this harder? maybe lead with the good news? "The agent already knows three places it needs to bump the version because it's using the memory generated during a precious code review session."

By using the memory generated during a previous code review session, the agent knows there are three places it needs to bump the version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment