Skip to content
Skills Library
AI & agents · Review & audit

copilot-memory

/copilot-memory

Use when you need to understand, review, or curate GitHub Copilot's repository-level memory — the persistent facts Copilot reuses across CLI, cloud agent, and code review for the same repository

Licence
MIT
Last repository change
25.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when you need to understand, review, or curate GitHub Copilot's repository-level memory — the persistent facts Copilot reuses across CLI, cloud agent, and code review for the same repository

Original author description

Use when you need to understand, review, or curate GitHub Copilot's repository-level memory — the persistent facts Copilot reuses across CLI, cloud agent, and code review for the same repository

How it works

  1. Why This is Copilot-Exclusive
  2. When to Use
  3. When NOT to Use
  4. What Copilot Memory Does
  5. Workflow
  6. Copilot Memory vs Local Session History
  7. Common Rationalizations
  8. Red Flags
  9. Team Considerations
  10. Verification
Original SKILL.md headings · 142 lines, 899 words
SKILL.md preview
---
name: copilot-memory
description: Use when you need to understand, review, or curate GitHub Copilot's repository-level memory — the persistent facts Copilot reuses across CLI, cloud agent, and code review for the same repository
metadata:
  category: copilot-exclusive
  agent_type: general-purpose
  copilot_feature: "Copilot Memory, repository-scoped memory, cloud agent, code review, Copilot CLI"
---

# Copilot Memory

Copilot Memory is GitHub Copilot's repository-level memory layer. It lets Copilot learn durable
facts about a codebase over time and reuse them across Copilot CLI, Copilot cloud agent, and
Copilot code review.

## Why This is Copilot-Exclusive

This is not the same thing as session history:

- **`cross-session-memory`** is your local CLI session history and artifacts
- **Copilot Memory** is repository-scoped memory that Copilot validates and reuses across products

Copilot Memory is unique because it spans multiple Copilot surfaces for the same repository and is
managed through GitHub's Copilot settings and repository controls.

## When to Use

- When Copilot keeps rediscovering the same repository conventions from scratch
- When you want to review or delete stale memories for a repository
- When a stable project pattern should be reinforced through durable, validated repository context
- When you need to distinguish repository memory from local session history

## When NOT to Use

| Instead of copilot-memory | Use |
|---------------------------|-----|
| You need to recover what happened in earlier CLI sessions | `cross-session-memory` |
| You want to promote a lesson into repo docs or instructions manually | `knowledge-curator` |
| You need one-session scratch state or todos | `session-management` |

## What Copilot Memory Does

Copilot Memory stores repository-specific facts that Copilot infers while working in the repo.

Important properties:

- repository-scoped, not personal chat memory
- validated against current code citations before reuse
- shared across Copilot CLI, Copilot cloud agent, and Copilot code review for the repository
- automatically deleted after 28 days unless refreshed by later validated use

## Workflow

### 1. Confirm memory is enabled

Copilot Memory availability depends on plan and policy:

- Copilot Pro / Pro+ users have it enabled by default
- organizations and enterprises can enable or disable it centrally

Before relying on it, verify the feature is enabled for the user or organization.

### 2. Treat memory as validated repository knowledge

Copilot does not blindly trust old memories. It checks the cited code locations against the current
codebase before using a memory.

That means:

- stable patterns are good candidates for memory reuse
- stale or contradicted patterns should not be relied on
- durable project rules should still live in repo docs and instructions

### 3. Review and curate memories on GitHub

Repository owners can review stored memories on GitHub and delete ones that are wrong, outdated, or
misleading.

Use this when:

- Copilot keeps repeating a bad assumption
- a repository convention changed
- a temporary migration pattern should not keep influencing future work

### 4. Reinforce good memory with stable source material

If you want Copilot to keep learning the right things:

- keep repository instructions accurate
- keep ADRs and reference docs current
- let Copilot work against canonical code paths, not temporary experiments

Copilot Memory works best when the repository already has reliable evidence to cite.

### 5. Keep secrets and temporary states out of memory candidates

Do not rely on Copilot Memory for:

- secrets, tokens, or credentials
- temporary migration states
- experiments that are not meant to become standard practice

Those belong in secure systems, ephemeral notes, or not in Copilot context at all.

## Copilot Memory vs Local Session History

| Concern | Copilot Memory | Cross-session session history |
|---------|----------------|-------------------------------|
| Scope | Repository-wide Copilot memory | Local CLI session history |
| Shared by | CLI, cloud agent, code review | Your local Copilot CLI sessions |
| Storage model | GitHub-managed repository memory | Local session data and `session_store` |
| Retention | 28 days unless refreshed | Local historical session record |
| Best use | Stable repository patterns | Recovering past work and artifacts |

## Common Rationalizations

| Rationalization | Reality |
|----------------|---------|
| "If Copilot learned it once, the docs no longer matter." | Durable repo docs still matter because memory is validated against the codebase and can expire. |
| "Memory and session history are basically the same." | They solve different problems and live at different layers. |
| "Any repeated pattern should become memory." | Temporary or incorrect patterns should be reviewed or deleted, not reinforced. |

## Red Flags

- Copilot repeats a repository rule that no longer matches the current codebase
- Team members assume session history and repository memory are interchangeable
- Temporary migration artifacts are being treated as durable project conventions
- Owners never review memories even after major refactors or policy changes

## Team Considerations

- Admins control availability under **Repository Settings > Copilot > Memory**
- Memory is repository-scoped, not user-scoped — all Copilot surfaces for the same repo share the
  same memory layer
- To seed shared patterns explicitly, keep authoritative conventions in repo docs and instructions;
  Copilot learns from those as the canonical source

## Verification

- [ ] The team can explain the difference between Copilot Memory and local session history
- [ ] Stable conventions still live in instructions or repo docs, not only in memory
- [ ] Incorrect or stale memories are reviewed and deleted on GitHub when needed
- [ ] Sensitive or temporary information is not being treated as a memory candidate

## See Also

- [`cross-session-memory`](../cross-session-memory/SKILL.md) — recover prior CLI session context
- [`knowledge-curator`](../knowledge-curator/SKILL.md) — decide what belongs in durable project guidance
- [`context-prime`](../context-prime/SKILL.md) — load durable repository context at session start

Versions

The database has no other skills named copilot-memory.

Database snapshot: 13.11.2026 · package version 7e1e16bae679 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 96github-copilot-upgrader
    Use this to update the Github Copilot CLI/SDK
  • 100install-agents
    Use when the user wants to install or update the agents of this repository into Claude Code, Codex, Gemini CLI or Copilot CLI (user-level or in one project).
  • 100code-mate-github-copilot
    Run GitHub Copilot CLI non-interactively for coding tasks. Use when the user asks to delegate work to Copilot.
  • 100gh-copilot-cli
    Use when working with GitHub Copilot CLI (`copilot`) — headless and interactive modes, permission flags, AGENTS.md and `.github/copilot-instructions.md`, MCP servers, custom agents, plugins, OAuth device-flow auth, and the bridge to VS Code Copilot Chat. Covers…
  • 100convert-to-copilot
    This skill should be used when converting a Claude Code agent (+ its launch command + its skills) into a single GitHub Copilot agent (.github/agents/*.agent.md) with supporting context files under .copilot_utils/{agent_name}/. Load when someone says 'convert to copilot', 'make…
  • 100okhp3-github-skill-foundry
    Design, author, evaluate, and install-plan a task-focused GitHub Copilot Agent Skill. Use when creating a repository or personal GitHub Copilot SKILL.md for coding, review, maintenance, or repository workflows. Do not use for Cowork, SharePoint, Copilot Studio, or general agent instructions.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.