Created
June 29, 2026 07:58
-
-
Save ph1048/fe8f0b3ef71189b961aa724c0b601cab to your computer and use it in GitHub Desktop.
Hermes agent (Docker), Mnemosyne plugin thunk
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
| from __future__ import annotations | |
| import sys as _sys | |
| _SITE = "/opt/data/mnemosyne/env/lib/python3.13/site-packages" | |
| if _SITE not in _sys.path: | |
| _sys.path.insert(0, _SITE) | |
| from mnemosyne_hermes import * # noqa: F401,F403 | |
| # Re-export explicitly so the memory subsystem can find register() | |
| from mnemosyne_hermes import register # noqa: F401 | |
| # The memory subsystem's _is_memory_provider_dir() does a text scan of | |
| # this file for the strings "register_memory_provider" or "MemoryProvider". | |
| # Without them, the directory is skipped as a non-memory plugin. | |
| # The actual register_memory_provider function is provided by mnemosyne_hermes | |
| # via the import * above, and is called by register() with a _ProviderCollector | |
| # context that has the register_memory_provider method. |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pip install mnemosyne-memory[all]
pip install mnemosyne-hermes