Mnemosyne maintenance

From AtlasOmnia/hermes-custom-pack · View interactive version

Mnemosyne maintenance is an AI agent skill from the GitHub repository AtlasOmnia/hermes-custom-pack. mnemosyne-maintenance — Upgrade, troubleshoot, and maintain Mnemosyne memory provider — version mismatches, slow/hung consolidation, missing embeddings, import shadowing.

How to use this skill

Skill file

Mnemosyne Maintenance

Use when: upgrading Mnemosyne, diagnosing slow/hung consolidation (mnemosyne_sleep), fixing missing embeddings, or troubleshooting import/version mismatches.

Triggers

Core troubleshooting (in order)

  1. Run diagnostics:
  1. Check for local dev shadowing:

python -c "import mnemosyne, inspect; print(mnemosyne.file)"

If it prints ~/mnemosyne/..., that's the problem.

  1. Fix shadowing (if present):

mv ~/mnemosyne ~/mnemosyne-local

plutil -replace "EnvironmentVariables.PYTHONPATH" -string "~/.hermes/hermes-agent/venv/lib/python3.11/site-packages" ~/Library/LaunchAgents/ai.hermes.gateway.plist

launchctl stop ai.hermes.gateway && launchctl start ai.hermes.gateway

  1. Remove stale plugin symlinks:

~/.hermes/plugins/mnemosyne -> ~/mnemosyne/hermes_memory_provider

Modern Mnemosyne (3.8+) includes Hermes integration in the package; this symlink is unnecessary and can break imports.

rm ~/.hermes/plugins/mnemosyne

  1. Upgrade Mnemosyne + deps:

pip install --upgrade "mnemosyne-memory[embeddings]" sqlite-vec

pip uninstall -y mnemosyne-memory && pip install --upgrade "mnemosyne-memory[embeddings]" sqlite-vec

  1. Restart gateway after changes:
  1. Verify:

python -c "import mnemosyne; print(mnemosyne.version, mnemosyne.file)"

Confirm it loads from site-packages and shows expected version.

mnemosyne_sleep (dry_run=true)

Embeddings

Enable embeddings (step-by-step)

  1. Add env var (use Python to avoid overwriting):

import os

path = os.path.expanduser('~/.hermes/.env')

with open(path, 'a') as f:

f.write('MNEMOSYNE_VEC_TYPE=fastembed\n')

"

  1. Restart gateway:
  1. Run auto-fix diagnostics (ensures deps and vec indexes are healthy):
  1. Plan reindex (dry run first):

Confirms model, dimensions, and memory counts before writing.

  1. Execute reindex to vectorize existing memories:

This can take several minutes on large DBs; it is safe and non-blocking for Hermes runtime.

  1. Verify:

Pitfalls

python -c "import mnemosyne; print(mnemosyne.version, mnemosyne.file)"

If it prints ~/mnemosyne/... instead of site-packages, your diagnosis is using the wrong package.

Hard-learned rules (from live sessions)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.