Skip to main content
Hindsight is State-of-the-Art on Memory for AI Agents | Read the paper β†’
πŸ€–
Using a coding agent? Run this to install the Hindsight docs skill:
npx skills add https://github.com/vectorize-io/hindsight --skill hindsight-docs

GitHub Copilot

Long-term memory for GitHub Copilot in VS Code, powered by Hindsight. One command connects Copilot's agent mode to the Hindsight MCP server and adds a recall/retain rule β€” so Copilot recalls relevant memory at the start of a task and retains durable facts as it works.

How It Works​

VS Code Copilot supports two things this integration uses:

  • MCP servers via .vscode/mcp.json (agent mode), including HTTP servers with headers β€” so the Hindsight MCP endpoint connects directly:

    {
    "servers":{
    "hindsight":{
    "type":"http",
    "url":"https://api.hindsight.vectorize.io/mcp/my-project/",
    "headers":{"Authorization":"Bearer hsk_..."}
    }
    }
    }
  • .github/copilot-instructions.md, which Copilot applies to every chat in the workspace β€” that's where the recall/retain rule lives.

Setup​

pip install hindsight-copilot
cd your-project
hindsight-copilot init --api-token YOUR_HINDSIGHT_API_KEY --bank-id my-project

init merges the servers entry into ./.vscode/mcp.json and writes the rule into ./.github/copilot-instructions.md. Reload VS Code, open Copilot Chat in agent mode, and start the hindsight MCP server from the chat's tools menu.

Use a Hindsight Cloud key, or a self-hosted server with --api-url http://localhost:8888 (no token needed for an open local server). If mcp.json has comments, init prints the snippet to paste instead β€” or run hindsight-copilot init --print-only anytime.

Commands​

CommandDescription
hindsight-copilot initAdd the MCP server + recall/retain rule
hindsight-copilot statusShow whether the server + rule are configured
hindsight-copilot uninstallRemove the server + rule

See the package README for full configuration options.

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /