hindsight-copilot
Long-term memory for GitHub Copilot in VS Code, powered by Hindsight.
hindsight-copilot init wires the Hindsight MCP server into VS Code's
.vscode/mcp.json and adds a recall/retain rule to .github/copilot-instructions.md.
Copilot's agent mode then has recall / retain / reflect tools and — guided
by the rule — 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 in
.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.
Install
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
of touching the file — or run hindsight-copilot init --print-only anytime.
Commands
| Command | Description |
|---|---|
hindsight-copilot init |
Add the MCP server + recall/retain rule |
hindsight-copilot status |
Show whether the server + rule are configured |
hindsight-copilot uninstall |
Remove the server + rule |
Configuration
| Setting | Env var | Default |
|---|---|---|
| API URL | HINDSIGHT_API_URL |
https://api.hindsight.vectorize.io |
| API token | HINDSIGHT_API_TOKEN |
(none; required for Cloud) |
| Bank id | HINDSIGHT_COPILOT_BANK_ID |
copilot |
Development
uv sync
uv run pytest tests -v -m 'not requires_real_llm' # deterministic suite
uv run pytest tests -v -m requires_real_llm # gated MCP-endpoint check
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hindsight_copilot-0.1.0.tar.gz.
File metadata
- Download URL: hindsight_copilot-0.1.0.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3708c1193390e3753eacd96378d0bc2ddda71b522b79c2975b463609a125bed
|
|
| MD5 |
f55832d6bf542665d0eea5eabccaa4dd
|
|
| BLAKE2b-256 |
04bec2606a4feb4aed485da52be1070ce47b4fb46551718756e519bedf69f326
|
Provenance
The following attestation bundles were made for hindsight_copilot-0.1.0.tar.gz:
Publisher:
release-integration.yml on vectorize-io/hindsight
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hindsight_copilot-0.1.0.tar.gz -
Subject digest:
f3708c1193390e3753eacd96378d0bc2ddda71b522b79c2975b463609a125bed - Sigstore transparency entry: 2421098241
- Sigstore integration time:
-
Permalink:
vectorize-io/hindsight@1758d8510baae944faef88dd0d171cbabfdaba9e -
Branch / Tag:
refs/tags/integrations/github-copilot/v0.1.0 - Owner: https://github.com/vectorize-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-integration.yml@1758d8510baae944faef88dd0d171cbabfdaba9e -
Trigger Event:
push
-
Statement type:
File details
Details for the file hindsight_copilot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hindsight_copilot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a66aa22086da1a931c826cba5fed409c969e9602bdcec9bd56d2efd1aa199898
|
|
| MD5 |
7738a243b44d82f9641a7614b6f1eed7
|
|
| BLAKE2b-256 |
921401f69d5571b20b822c4bbbf6c4b8ea7215542b4acdf5f40de88620ca5139
|
Provenance
The following attestation bundles were made for hindsight_copilot-0.1.0-py3-none-any.whl:
Publisher:
release-integration.yml on vectorize-io/hindsight
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hindsight_copilot-0.1.0-py3-none-any.whl -
Subject digest:
a66aa22086da1a931c826cba5fed409c969e9602bdcec9bd56d2efd1aa199898 - Sigstore transparency entry: 2421099073
- Sigstore integration time:
-
Permalink:
vectorize-io/hindsight@1758d8510baae944faef88dd0d171cbabfdaba9e -
Branch / Tag:
refs/tags/integrations/github-copilot/v0.1.0 - Owner: https://github.com/vectorize-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-integration.yml@1758d8510baae944faef88dd0d171cbabfdaba9e -
Trigger Event:
push
-
Statement type: