[Feature] Optional server-backed long-term memory via Hindsight (continuing #769) #1435
benfrank241
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Add optional, server-backed long-term memory to Prime Agent via Hindsight, shipped as a self-contained example extension (not a core dependency). It's fully opt-in: without the env config it's a no-op, so it changes nothing for users who don't want it.
This continues the discussion from the now-closed issue #769 / PR #771, moved here per the new contribution guidelines.
Motivation
Prime Agent's Continual Harness keeps memories local to the session by default. For users who run the agent across many sessions (or machines) it's useful to have durable memory that persists and is shared — recalling relevant context at the start of a turn and retaining transcripts at the end. This is the same pattern already used for Hermes Agent and Omnigent integrations.
Proposed approach
A single example extension that wires Prime Agent's own hooks to a memory backend over REST — no new runtime dependencies, no MCP required:
before_agent_start→ recall relevant memories and inject them as contextagent_end→ retain the turn transcriptsession_shutdown→ flush/attributionIt's gated entirely on env config (endpoint + key). If unset, the hooks return immediately.
Status of the implementation
The code already exists and was verified end-to-end (before it was swept up in the queue purge):
--dist, headless-p) with an OpenAI provider against a local memory server — recall + retain round-trip confirmednpm checkgreenHappy to keep it maintained against
mainand adapt it however you'd prefer (docs-only example,examples/entry, or a skill).Questions for maintainers
examples/, a skill, or elsewhere?before_agent_start/agent_end/session_shutdownhooks the ones you'd recommend for this, or is there a newer/preferred extension surface?Glad to do the work whenever it makes sense on your side.
All reactions