Skip to main content

Continue.dev integration for Hindsight - persistent long-term memory via an HTTP context provider

Project description

hindsight-continue

Continue.dev integration for Hindsight — persistent long-term memory for your coding assistant.

Continue has no plugin hook that runs before a message is sent, but it does support two native extension points that this integration uses:

  1. HTTP context provider — type @hindsight <query> (or a bare @hindsight) in chat and relevant memory is recalled and injected into the model's context at query time. This package ships a tiny adapter server that implements Continue's HTTP context-provider contract on top of Hindsight recall.
  2. MCP server + rules (optional) — wire the Hindsight MCP server into Continue's agent mode for retain/recall/reflect tools, with a rules file that tells the agent to recall automatically.

Prerequisites

Installation

pip install hindsight-continue

Quick start (HTTP context provider)

1. Run the adapter, pointing it at your Hindsight instance and bank:

export HINDSIGHT_API_KEY=hsk_...            # omit for a local self-hosted server
export HINDSIGHT_API_URL=http://localhost:8888   # defaults to Hindsight Cloud
export HINDSIGHT_CONTINUE_BANK_ID=my-project

hindsight-continue            # serves on 127.0.0.1:8123

2. Register it in Continue's config.yaml (~/.continue/config.yaml or a workspace .continue block):

context:
  - provider: http
    params:
      url: "http://127.0.0.1:8123/"
      title: hindsight
      displayTitle: Hindsight
      description: Recall long-term memory from Hindsight

3. Use it. In Continue chat, type @hindsight (optionally followed by what you want to recall) and the matching memories are added to the model's context.

The adapter receives Continue's request ({query, fullInput, options, workspacePath}), recalls from Hindsight, and returns context items shaped {name, description, content} — exactly what Continue expects.

Per-request bank override

The configured HINDSIGHT_CONTINUE_BANK_ID is the default. A request may target a different bank by sending options.bankId:

context:
  - provider: http
    params:
      url: "http://127.0.0.1:8123/"
      options:
        bankId: another-bank

Optional: automatic recall via MCP + rules

For hands-off recall/retain in agent mode, point Continue at the Hindsight MCP server and add a rule telling the agent to call it. Example assets are in examples/.continue/:

Configuration

Env var Description Default
HINDSIGHT_API_KEY Hindsight API key (none; required for Cloud)
HINDSIGHT_API_URL Hindsight API URL https://api.hindsight.vectorize.io
HINDSIGHT_CONTINUE_BANK_ID Default memory bank to recall against (none)
HINDSIGHT_CONTINUE_HOST Adapter bind host 127.0.0.1
HINDSIGHT_CONTINUE_PORT Adapter listen port 8123

These can also be set programmatically via configure(...). See hindsight-continue --help for CLI flags.

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 live E2E (needs a Hindsight server)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hindsight_continue-0.1.1.tar.gz (94.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hindsight_continue-0.1.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file hindsight_continue-0.1.1.tar.gz.

File metadata

  • Download URL: hindsight_continue-0.1.1.tar.gz
  • Upload date:
  • Size: 94.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hindsight_continue-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b15f5b0add5eee215578b569432f55e60d827a5e5228682ce090e70c75b91825
MD5 235344cc93b159849f08b14a0b5de58d
BLAKE2b-256 2e5e309a368b26b85b4e5f28b181477faa62cd073c1a8e835f5376192d7db360

See more details on using hashes here.

Provenance

The following attestation bundles were made for hindsight_continue-0.1.1.tar.gz:

Publisher: release-integration.yml on vectorize-io/hindsight

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hindsight_continue-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hindsight_continue-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a351eb431874887c206160f31b67f49b3cd55e8e9cdb8811b0df6ec2808de718
MD5 9ff9ab6aec741a36c4ac372868ccbe9f
BLAKE2b-256 d8380bf6c92a4d17b15ab47bc5a6d43a3ff5e9a1c0f4974c7e86ce69c4f22279

See more details on using hashes here.

Provenance

The following attestation bundles were made for hindsight_continue-0.1.1-py3-none-any.whl:

Publisher: release-integration.yml on vectorize-io/hindsight

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page