feat(memory): add native MemPalace memory provider plugin#24283
Closed
kjames2001 wants to merge 1 commit into
Closed
feat(memory): add native MemPalace memory provider plugin#24283kjames2001 wants to merge 1 commit into
kjames2001 wants to merge 1 commit into
Conversation
Introduce plugins/memory/mempalace/ — a native MemoryProvider that replaces the MCP bridge with direct Python API calls for lower latency and richer integration. Features: - Semantic search over the palace graph (L0 closets + L1 memories) - Knowledge Graph queries and updates (add/invalidate facts) - Automatic diary journaling at session end (AAAK format) - Turn archiving into the palace via background threads - Background prefetch that pre-warms recall for the next turn - Per-session turn counter with periodic diary checkpoints (every 25 turns) - 5 tools exposed to the model: mempalace_search, mempalace_kg_query, mempalace_kg_add, mempalace_diary_read, mempalace_diary_write - Crash-safe diary writes: flat file always saved first, ChromaDB ingest is best-effort (non-fatal on failure) Built for MemPalace v3.3.4. Backed by ChromaDB + Knowledge Graph.
Collaborator
|
Thanks for the contribution! Per the updated CONTRIBUTING.md, new memory providers are no longer accepted as in-tree additions to
Closing this in line with that policy. The path forward is to publish it as a standalone plugin so users can install it directly without touching the Hermes source tree. Once it's published, a small docs PR adding it to the Community plugins section of the README is welcome. Sorry for the bump — appreciate the time you put into this. |
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
Add a native MemPalace memory provider plugin (
plugins/memory/mempalace/) for Hermes Agent.What this does
Replaces the MCP bridge approach with direct Python API calls to MemPalace v3.3.4, providing:
mempalace_search,mempalace_kg_query,mempalace_kg_add,mempalace_diary_read,mempalace_diary_writeFiles
plugins/memory/mempalace/__init__.pyMemPalaceMemoryProviderimplementation (~740 lines)plugins/memory/mempalace/plugin.yamlplugins/memory/mempalace/README.mdConfiguration
Requirements
Related