Skip to content

Instantly share code, notes, and snippets.

@ph1048
Created June 29, 2026 07:58
Show Gist options
  • Select an option

  • Save ph1048/fe8f0b3ef71189b961aa724c0b601cab to your computer and use it in GitHub Desktop.

Select an option

Save ph1048/fe8f0b3ef71189b961aa724c0b601cab to your computer and use it in GitHub Desktop.
Hermes agent (Docker), Mnemosyne plugin thunk
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.
@ph1048

ph1048 commented Jul 1, 2026

Copy link
Copy Markdown
Author

pip install mnemosyne-memory[all]
pip install mnemosyne-hermes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment