feat(eliza): Hindsight long-term memory integration for elizaOS#2385
Draft
benfrank241 wants to merge 1 commit into
Draft
feat(eliza): Hindsight long-term memory integration for elizaOS#2385benfrank241 wants to merge 1 commit into
benfrank241 wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_MEMORYprovider — recalls relevant memories and injects them into the prompt before each model call.HINDSIGHT_RETAINevaluator — retains conversation messages after each turn (fire-and-forget, so no added latency; agent replies optional).Memory bank defaults to the message
entityIdfor 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 npmlatest(published a few days ago), not the2.0.x-betaon the repo'smain. The two have incompatible Evaluator APIs; 1.7.2's handler-basedEvaluatoris the right seam and is whatnpm installactually gives users today. Verified against the published.d.ts, notmain. Will need a revisit when Eliza 2.0 becomes stablelatest.What's included
createHindsightPlugin(+createHindsightProvider/createHindsightEvaluator).@elizaos/coretypes with a mock Hindsight client.build-eliza-integration+detect-changespath filter.VALID_INTEGRATIONS(release script) +INTEGRATIONS(changelog generator) entries.integrations.json) + page (docs-integrations/eliza.md) + official elizaOS icon.Verification
tscclean · 12/12 tests · build ·lint.sh·check-integrations.mjs— all green.🤖 Generated with Claude Code