Continue
Long-term memory for the Continue.dev coding assistant, powered by Hindsight. Recall relevant project memory directly into chat, and optionally let the agent recall and retain automatically in agent mode.
How It Works
Continue has no hook that runs before a message is sent, but it supports two native extension points that hindsight-continue uses:
- HTTP context provider (precise recall): type
@hindsight <query>(or a bare@hindsight) in Continue chat and relevant memory is recalled and injected into the model's context at query time. The package ships a small adapter server that implements Continue's HTTP context-provider contract ({query, fullInput, options, workspacePath}→ context items) on top of Hindsight recall. - MCP server + rules (automatic): point Continue's agent mode at the Hindsight MCP server for
retain/recall/reflecttools, with a rules file that instructs the agent to recall at the start of every task and retain durable facts.
Memory is scoped per bank — use one bank per project so context from one codebase doesn't leak into another.
Setup
pip install hindsight-continue
Run the adapter, pointing it at your Hindsight instance and bank:
export HINDSIGHT_API_KEY=hsk_...
export HINDSIGHT_CONTINUE_BANK_ID=my-project
hindsight-continue # serves on 127.0.0.1:8123
Then register it in Continue's config.yaml:
context:
- provider: http
params:
url: "http://127.0.0.1:8123/"
title: hindsight
displayTitle: Hindsight
description: Recall long-term memory from Hindsight
Use a Hindsight Cloud key, or point at a self-hosted server with HINDSIGHT_API_URL=http://localhost:8888.
Automatic recall (optional)
For hands-off recall and retain in agent mode, wire the Hindsight MCP server into Continue and add a "recall first" rule. See the examples/.continue/ assets in the integration directory.
Limitation
Continue has no pre-prompt hook, so memory cannot be injected fully passively on every message. The @hindsight provider gives precise, query-time recall on demand; the MCP + rules setup gives automatic recall in agent mode, subject to the agent following the rule.