All integration guidesCopilot

Local memory for GitHub Copilot in VS Code

A read-only plugin that lets GitHub Copilot in VS Code recall local Heartwood memories and their sources over MCP. Install from GitHub; no account needed.

What it is

The Heartwood Agent Plugin is a small, evaluation-only package for GitHub Copilot in VS Code. It bundles one recall skill and a local MCP server with three tools: recall, explain_recall and health. Copilot can recall memories from a Heartwood store on your machine and cite the memory IDs and sources it used. It cannot write, edit or erase memories, and it captures nothing automatically.

It is separate from GitHub’s own Copilot Memory feature, and it is not made or endorsed by GitHub.

Before you start

• A compatible Copilot client. GitHub Copilot in VS Code is the one this guide covers. • Python 3.11 or newer. • uv, with uvx on the client’s executable search path.

The first launch downloads Heartwood 0.2.10 and its dependencies from PyPI, and Heartwood may download its pinned retrieval models. You need no hosted Heartwood account and no API key.

1 · Install in VS Code

Clone the public repository and read plugin.json, mcp.json and skills/heartwood-recall/SKILL.md in plugins/agent-plugin before you enable anything: a plugin trusts its bundled MCP server. If you want to try the synthetic example below, seed the store first. Then add this to your user settings.json, with the absolute path to your clone. chat.pluginLocations is an Experimental VS Code setting. On Windows, write the path with forward slashes, such as "C:/src/heartwood-memory/plugins/agent-plugin".

json
{
  "chat.plugins.enabled": true,
  "chat.pluginLocations": {
    "/absolute/path/to/heartwood-memory/plugins/agent-plugin": true
  }
}

2 · Check what Copilot can see

Restart VS Code if it does not discover the plugin. In Chat: Open Customizations, check Plugins and Skills. In MCP: List Servers, open the Heartwood server. Its tool list should be exactly recall, explain_recall and health.

3 · Try one synthetic recall

Run this once, before the plugin first starts its server, with the absolute path to ~/.heartwood/agent-plugin/heartwood.db. It writes one made-up decision into a new evaluation store, and it refuses to touch a store that already exists. Never point it at a real or customer database.

bash
uvx --from heartwood-memory==0.2.10 python - /absolute/home/.heartwood/agent-plugin/heartwood.db <<'PY'
import sys
from pathlib import Path
from heartwood import Heartwood

path = Path(sys.argv[1])
if path.exists():
    raise SystemExit("Use a new evaluation store; this example will not modify an existing one.")
path.parent.mkdir(parents=True, exist_ok=True)
db = Heartwood(path=path, tenant="tenant:agent-plugin")
try:
    result = db.remember(
        "Project Juniper uses a blue release badge. This is a synthetic evaluation decision.",
        subject="project:juniper", created_by="agent:copilot",
        source={"uri": "demo://juniper/release-decision"},
    )
    print(result)
finally:
    db.close()
PY

4 · Recall it, then explain it

Enable the plugin and call health. Then call recall with the cue “Project Juniper release badge”, the subject project:juniper and k = 5. The answer should contain the synthetic decision with its provenance: its author, source and signature check. Pass the returned recall ID to explain_recall to see why it ranked.

json
{"cue": "Project Juniper release badge", "subject": "project:juniper", "k": 5}

Where the store lives

The plugin keeps its store at ~/.heartwood/agent-plugin/heartwood.db (under your home folder on Windows too), in tenant:agent-plugin, as the principal agent:copilot with internal clearance. Every compatible client you configure shares that file; other developers do not. A fresh store is empty, so recall returns nothing until you or an operator import records. Uninstalling the plugin leaves the folder in place. Keep the database and its key files private and together, and never commit them.

Permissions

“Read-only” describes the memory tools Copilot gets. Starting the server and recalling can still create database and key files and write audit records and recall traces. The server runs with your user’s permissions; the plugin is not a sandbox or a security certification. The explicit tool allowlist is what keeps remember, memory, forget, evaluate_egress and assess_faithfulness out of reach. The skill can propose a memory update for you to approve, but it cannot make one.

What has been checked, and what has not

On macOS, VS Code discovered the three tools, and a separate MCP session ran health, recall and explain_recall against the configured server. Model-driven Copilot chat and skill use, Copilot CLI, the GitHub Copilot app, Windows, several clients at once and enterprise rollout have not been verified. The plugin is not listed in awesome-copilot: that submission is staged, not sent, so install it from your clone as above.

License and plans

The plugin and the core are source-available under BUSL-1.1, not OSI open source. Evaluating them is free. For hosted recall, Team and Professional are on the pricing page at /pricing.

Questions

Can GitHub Copilot use Heartwood Memory?

Yes, through a read-only, evaluation-only plugin for GitHub Copilot in VS Code. It bundles a recall skill and a local MCP server with three tools: recall, explain_recall and health. It cannot write or erase memories, and it captures nothing automatically. On macOS, VS Code discovered the three tools and a separate MCP session ran them; model-driven chat, Copilot CLI, the Copilot app and Windows have not been verified.

Is this GitHub’s Copilot Memory?

No. Copilot Memory is GitHub’s own feature. The Heartwood plugin is a separate, local store that Copilot reads through MCP, and it is not made or endorsed by GitHub.

Do I need a Heartwood account or API key?

No. The plugin runs the published Heartwood package on your machine through uvx. Hosted recall is a separate, paid option on /pricing.

Adapted from plugins/agent-plugin/README.md in the source-available core.