Roo Code integration for Hindsight - persistent long-term memory for Roo Code via MCP
Project description
hindsight-roo-code
Persistent long-term memory for Roo Code via Hindsight.
Run the installer once and every Roo Code session automatically recalls past context before tasks and retains learnings after.
What It Does
- Before each task — Roo Code recalls relevant memories from Hindsight and includes them as context
- During a task — agents can store important decisions and discoveries immediately via
retain - After each task — agents summarize and retain what was accomplished for future sessions
Prerequisites
✨ Recommended: Hindsight Cloud — sign up free, get an API key, and skip the self-hosting setup entirely.
Self-hosting alternative — run Hindsight locally:
pip install hindsight-all
export HINDSIGHT_API_LLM_API_KEY=your-openai-key
hindsight-api # starts on http://localhost:8888
Installation
pip install hindsight-roo-code
Then, from your project directory:
hindsight-roo-code install
Or with a custom API URL:
hindsight-roo-code install --api-url https://my-hindsight.example.com
Install globally (applies to all projects):
hindsight-roo-code install --global
This writes two files:
.roo/mcp.json— registers the Hindsight MCP server with Roo Code.roo/rules/hindsight-memory.md— rules injected into every system prompt
How It Works
New task starts
└─ Roo Code rules instruct agent to call recall
└─ Relevant memories injected into context
Agent working…
└─ retain stores decisions/discoveries immediately
Task ends
└─ Roo Code rules instruct agent to call retain with summary
└─ Summary stored for future sessions
Hindsight exposes recall and retain as MCP tools via its built-in /mcp endpoint. The rules file in .roo/rules/ tells Roo Code when to call them.
Configuration
The installer writes to .roo/mcp.json:
{
"mcpServers": {
"hindsight": {
"type": "streamable-http",
"url": "http://localhost:8888/mcp",
"timeout": 30,
"alwaysAllow": ["recall", "retain"]
}
}
}
To change the API URL after installation, edit .roo/mcp.json directly or re-run the installer:
hindsight-roo-code install --api-url https://new-url.example.com
Verifying Setup
- Start Hindsight (
hindsight-apior Hindsight Cloud) - Open Roo Code in your project
- Check Settings → MCP Servers —
hindsightshould show as connected - Start a task — you should see
recallcalled automatically
Development
uv sync
uv run pytest tests/ -v
Project details
Release history Release notifications | RSS feed
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_roo_code-0.1.0.tar.gz.
File metadata
- Download URL: hindsight_roo_code-0.1.0.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a2d5473637e9dc9b43dc9e80552452908257f9d0c0dddb8ed0d1a0830c0f104
|
|
| MD5 |
5662052e11e44143cb349afa62cebba0
|
|
| BLAKE2b-256 |
4dd57e156d7e12da857d6728008d929360a6eafddea6b91321f2fe4afaee69e7
|
Provenance
The following attestation bundles were made for hindsight_roo_code-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_roo_code-0.1.0.tar.gz -
Subject digest:
3a2d5473637e9dc9b43dc9e80552452908257f9d0c0dddb8ed0d1a0830c0f104 - Sigstore transparency entry: 1756298698
- Sigstore integration time:
-
Permalink:
vectorize-io/hindsight@7c2d1848ec93f8ddf0899943620b9ec4ea84cc2e -
Branch / Tag:
refs/tags/integrations/roo-code/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@7c2d1848ec93f8ddf0899943620b9ec4ea84cc2e -
Trigger Event:
push
-
Statement type:
File details
Details for the file hindsight_roo_code-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hindsight_roo_code-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33fb0cc22b318d8732888df42aea1b2bac33df3244df8b7140f7407c7c423c27
|
|
| MD5 |
27dca7c9a7f676976d422d36446a581d
|
|
| BLAKE2b-256 |
5b4d5de1db4cf506c517c66918447cca416d5493c5358ffdf3dac6c7c2a34ae3
|
Provenance
The following attestation bundles were made for hindsight_roo_code-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_roo_code-0.1.0-py3-none-any.whl -
Subject digest:
33fb0cc22b318d8732888df42aea1b2bac33df3244df8b7140f7407c7c423c27 - Sigstore transparency entry: 1756298731
- Sigstore integration time:
-
Permalink:
vectorize-io/hindsight@7c2d1848ec93f8ddf0899943620b9ec4ea84cc2e -
Branch / Tag:
refs/tags/integrations/roo-code/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@7c2d1848ec93f8ddf0899943620b9ec4ea84cc2e -
Trigger Event:
push
-
Statement type: