Skip to content

feat(eliza): Hindsight long-term memory integration for elizaOS#2385

Draft
benfrank241 wants to merge 1 commit into
mainfrom
integration/eliza-memory-v2
Draft

feat(eliza): Hindsight long-term memory integration for elizaOS#2385
benfrank241 wants to merge 1 commit into
mainfrom
integration/eliza-memory-v2

Conversation

@benfrank241

Copy link
Copy Markdown
Member

Summary

Adds @vectorize-io/hindsight-eliza — an elizaOS plugin that gives agents long-term memory backed by Hindsight.

Two components, both enabled by default and layered on top of elizaOS's existing memory:

  • HINDSIGHT_MEMORY provider — recalls relevant memories and injects them into the prompt before each model call.
  • HINDSIGHT_RETAIN evaluator — retains conversation messages after each turn (fire-and-forget, so no added latency; agent replies optional).

Memory bank defaults to the message entityId for per-user isolation. Both sides fail safe — a Hindsight outage never blocks the agent from responding.

API version note

Targets @elizaos/core ^1.7.2 — the current npm latest (published a few days ago), not the 2.0.x-beta on the repo's main. The two have incompatible Evaluator APIs; 1.7.2's handler-based Evaluator is the right seam and is what npm install actually gives users today. Verified against the published .d.ts, not main. Will need a revisit when Eliza 2.0 becomes stable latest.

What's included

  • Plugin package with createHindsightPlugin (+ createHindsightProvider / createHindsightEvaluator).
  • 12 vitest tests exercising the provider and evaluator against the real @elizaos/core types with a mock Hindsight client.
  • CI job build-eliza-integration + detect-changes path filter.
  • VALID_INTEGRATIONS (release script) + INTEGRATIONS (changelog generator) entries.
  • Docs gallery entry (integrations.json) + page (docs-integrations/eliza.md) + official elizaOS icon.

Verification

tsc clean · 12/12 tests · build · lint.sh · check-integrations.mjs — all green.

🤖 Generated with Claude Code

Adds @vectorize-io/hindsight-eliza, an elizaOS plugin that gives agents
long-term memory backed by Hindsight:

- HINDSIGHT_MEMORY provider recalls relevant memories into the prompt
  before each model call.
- HINDSIGHT_RETAIN evaluator retains conversation messages after each
  turn (fire-and-forget; agent replies optional).
- Bank defaults to the message entityId for per-user isolation; both
  sides fail safe so a Hindsight outage never blocks the agent.

Targets @elizaos/core ^1.7.2 (current npm latest, not the 2.x beta on
main). Includes tests, CI job, release-script + changelog-generator
entries, and docs gallery entry + page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant