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.0.tar.gz (93.9 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.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hindsight_continue-0.1.0.tar.gz
  • Upload date:
  • Size: 93.9 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.0.tar.gz
Algorithm Hash digest
SHA256 64481d6157811004582ffdf105a8bfac2b1bb0bc4552cd92066f1b7aa014df31
MD5 fcafb48e04db598a2eff641db9fb1766
BLAKE2b-256 66e650dab8ae81efe07a1c0674f1745fc494a8c85b921499e7da1cd7f7c2c430

See more details on using hashes here.

Provenance

The following attestation bundles were made for hindsight_continue-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hindsight_continue-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce4b93b65098ee05e5ace58d89e62168a2391986a9a8574b6ffb951d4e38941b
MD5 7b9c0aab5b3c852523d544c08d43fd32
BLAKE2b-256 8dc4bf935f8fa55bae526b33c89f80750cc475db10e4b9ac1807d53578e64ce1

See more details on using hashes here.

Provenance

The following attestation bundles were made for hindsight_continue-0.1.0-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