VVitkilabs

Anvil is an alpha testing release. It may have bugs. If something here doesn't match what you see, tell us.

Anvil docs · GitHub Copilot memory

Does GitHub Copilot remember anything?

Partly. GitHub Copilot can read custom instruction files, such as .github/copilot-instructions.md, which are added to requests made in a repository. Copilot Memory, in public preview, keeps facts about a repository and your preferences, and deletes any memory that goes unused for 28 days. To give Copilot a memory that stays on your own machine, encrypted, and that Claude Code and Codex share too, connect the free Vitkilabs Anvil app to Copilot in VS Code, Visual Studio or the Copilot CLI.

What Copilot keeps on its own

Instruction files, and Copilot Memory.

If your work lives on GitHub, both are worth using. Anvil adds a memory that belongs to you rather than to one repository: encrypted on your computer, kept until you delete it, and shared with Claude Code and Codex if you connect them too.

Set it up

Five steps.

  1. Install Anvil. Get it from the download page: macOS (Apple silicon), Windows 10 or 11, or Linux (.deb, .rpm or AppImage). On a Mac, Homebrew is easiest:
    brew install --cask vitkilabs/anvil/vitkilabs-anvil
  2. Create your vault. Open Anvil. Pick a passphrase and save the recovery PDF somewhere outside the Anvil folder. Your memories and keys are encrypted with it.
  3. Connect Copilot. Anvil doesn't find Copilot on its own, so name it. Add --dry-run to see the changes first:
    anvil connect --client copilot
  4. Pick how Anvil thinks. Use your Claude or ChatGPT sign-in, add an API key, or point it at a local model.
  5. Turn the tools on. In VS Code, reload the window, then turn on anvil in the tools picker in Copilot Chat. In Visual Studio, turn on Anvil's tools in Copilot's agent mode. In the Copilot CLI, start a new session.
What Anvil changes

One settings file per Copilot app.

Anvil adds only its own anvil server entry, and backs up each file as <file>.anvil-bak before its first edit.

WhereFile
VS Code, macOS~/Library/Application Support/Code/User/mcp.json
VS Code, Windows%APPDATA%\Code\User\mcp.json
VS Code, Linux~/.config/Code/User/mcp.json
Copilot CLI and the GitHub Copilot app~/.copilot/mcp-config.json, plus an anvil:begin / anvil:end block in ~/.copilot/copilot-instructions.md. Only if that folder already exists, which it does once you've used either.
Visual Studio (Windows)%USERPROFILE%\.mcp.json, only if Visual Studio is installed.
How recall works

Copilot uses Anvil's memory tools.

Copilot gets Anvil's memory tools through MCP. In the Copilot CLI and the GitHub Copilot app, Anvil also adds standing instructions that ask Copilot to check its memory and save lasting facts. In VS Code and Visual Studio, Copilot uses the tools once you've turned them on. Either way, Copilot decides when to use them: it can skip a memory check or not save something, and Anvil can't change that. If you want something recalled for sure, ask it to check Anvil.

What gets saved is what you'd otherwise re-explain: decisions and why, constraints, fixes that worked, preferences. Anvil keeps facts and the links between them, flags a new fact that clashes with an old one, and shows where each memory came from. Nothing expires on a timer unless you set one.

What it can't reach

Copilot on your computer only.

Your memory stays in an encrypted database on your computer, and your AI keys and sign-ins are never sent to Vitkilabs. After each Anvil update, run anvil connect --refresh.

Questions

Short answers.

Does GitHub Copilot remember anything between sessions?

It can. Copilot reads custom instruction files that you write, and Copilot Memory, in public preview, keeps facts about a repository and your preferences. GitHub deletes a memory that goes unused for 28 days.

How do I give Copilot a memory that stays on my machine?

Install the free Anvil app, create your vault and run anvil connect --client copilot. In VS Code, reload the window and turn on anvil in Copilot Chat's tools picker. Anvil's memory is stored encrypted on your computer.

Which Copilot apps can use Anvil?

GitHub Copilot in VS Code, in Visual Studio on Windows, the Copilot CLI and the GitHub Copilot app. Microsoft Copilot, the app built into Windows, and Copilot on github.com can't reach your computer, so they can't use Anvil.

Do Anvil's memories expire?

Not on a timer, unless you set one. You can set memories to expire after a set time, or delete them for good.

Can Copilot and Claude Code share a memory?

Yes. Connect both to Anvil, and they read and write the same memory on your computer. Codex and the ChatGPT desktop app can share it too.

Sources

Where the facts about other products come from.

Each was checked on its maker's own site on 18 October 2026. Products change: if one of these no longer matches, tell us and we'll correct it.

  1. GitHub Docs: Copilot Memory (public preview, surfaces that use it, 28-day expiry, default state by plan).
  2. GitHub Docs: Adding repository custom instructions for GitHub Copilot (instruction file names, added to requests automatically).
More questions

Related pages.