mnemosyne-maintenance
Skill61 starsChanged 5 months agoMITView on GitHub
mnemosyne-maintenance — Upgrade, troubleshoot, and maintain Mnemosyne memory provider — version mismatches, slow/hung consolidation, missing embeddings, import shadowing.
- Reads credentials
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- AtlasOmnia/donna-starterword for word, first seen Aug 13, 2026
Other versions1 project uses a version of this.
Word for word · 1
- AtlasOmnia/donna-starter★ 122100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository74 other files it gives its agents.
- apple-remindersSkill
- application-security-reviewSkill
- browser-harness-authoringSkill
- claude-designSkill
- codebase-inspectionSkill
- coding-worktree-recoverySkill
- computer-useSkill
- content-styleSkill
- cross-browser-typography-qaSkill
- daily-news-digestsSkill
- daily-note-wrapupSkill
- destination-trip-planningSkill
- discord-connectSkill
- dogfoodSkill
- domestic-trip-planningSkill
- dynamic-content-extractionSkill
- evidence-based-repliesSkill
- external-model-reviewSkill
- github-authSkill
- github-code-reviewSkill
- github-issuesSkill
- github-pre-push-gatesSkill
- github-pr-workflowSkill
- github-readme-maintenanceSkill
- github-repo-managementSkill
- github-workflowsSkill
- google-workspaceSkill
- hermes-agent-skill-authoringSkill
- hermes-agentSkill
- hermes-config-editingSkill
- hermes-context-optimizationSkill
- hermes-desktop-pluginsSkill
- hermes-diagnostic-reviewSkill
- hermes-mnemosyneSkill
- hermes-nightly-self-check-decisionsSkill
- hermes-overnight-autonomySkill
- hermes-plugin-developmentSkill
- hermes-plugin-evaluationSkill
- hermes-self-evaluationSkill
- hermes-session-maintenanceSkill
- hermes-themesSkill
- hf-model-card-researchSkill
- imessageSkill
- inspecting-hermes-desktop-domSkill
- local-app-github-publishingSkill
- local-discoverySkill
- local-model-selectionSkill
- macos-app-automationSkill
- macos-storage-managementSkill
- mapsSkill
- marketing-collateral-designSkill
- marketplace-purchase-vettingSkill
- meal-trackerSkill
- messaging-gateway-troubleshootingSkill
- meta-business-postingSkill
- notes-automation-workflowsSkill
- notion-artifact-captureSkill
- notionSkill
- obsidian-memory-architectureSkill
- obsidianSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. About 0 are common, 19 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use when: upgrading Mnemosyne, diagnosing slow/hung consolidation (mnemosyne_sleep), fixing missing embeddings, or troubleshooting …
- Distinctive: line 26
Look for: missing fastembed, sqlite_vec, ctransformers.
- Distinctive: line 28
Check for local dev shadowing:
- Very specific: line 32
If it prints ~/mnemosyne/..., that's the problem.
- Very specific: line 37
Ensure PYTHONPATH prioritizes site-packages in gateway plist: plutil -replace "EnvironmentVariables.PYTHONPATH" -string …
- Distinctive: line 42
Remove stale plugin symlinks:
- Very specific: line 46
If present, remove it: rm ~/.hermes/plugins/mnemosyne
- Distinctive: line 52
If version mismatch persists (pip shows new, runtime still old):
- Distinctive: line 63
Run mnemosyne_diagnose again.
- Distinctive: line 69
If episodic_vectors=0, future operations will be slow on large DBs.
- Distinctive: line 77
Add env var (use Python to avoid overwriting):
- Distinctive: line 88
Run auto-fix diagnostics (ensures deps and vec indexes are healthy):
- Distinctive: line 104
Never trust pip show alone.
- Very specific: line 105
Do not leave a local ~/mnemosyne directory in place if you intend to use the pip-installed version.
- Distinctive: line 106
After any Mnemosyne change, restart the gateway — Hermes caches imports at startup.
- Very specific: line 109
If it prints ~/mnemosyne/...
- Distinctive: line 116
Ensure PYTHONPATH in gateway plist points to site-packages.
- Very specific: line 117
Add MNEMOSYNE_VEC_TYPE=fastembed via plutil (see "Embeddings" section).
- Very specific: line 118
Run reindex with MNEMOSYNE_DATA_DIR set explicitly.
- Distinctive: line 119
If mnemosyne_sleep runs fast and no longer hangs, the fix worked even if diagnose still says 3.0.0.
- Very specific: line 120
When using a local dev copy of Mnemosyne (e.g., ~/mnemosyne-dev), ensure its __init__.py delegates to the real package instead of shadowing …
- Distinctive: line 121
Remove sys.path.insert(0, repo_root) lines that bring in the inner mnemosyne/ subpackage.
- Distinctive: line 122
Import everything from the installed mnemosyne-memory package via "from mnemosyne import *" so Hermes gets the latest version.
- Distinctive: line 127
If mnemosyne_sleep completes quickly and no longer hangs, the fix worked — even if diagnose still reports 3.0.0 or embeddings_available=NO.
- Distinctive: line 129
When reindex fails with "Database not found" or backup errors:
- Distinctive: line 132
If all deps are installed and fastembed/sqlite_vec show OK but embeddings_available=NO:
- Distinctive: line 134
Ensure PYTHONPATH in gateway plist points to site-packages, remove stale plugin symlinks, restart gateway, then verify with a live …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mnemosyne Maintenance
Use when: upgrading Mnemosyne, diagnosing slow/hung consolidation (mnemosyne_sleep), fixing missing embeddings, or troubleshooting import/version mismatches.
Triggers
- mnemosyne_sleep hanging for >2 minutes
- Diagnose reports "fastembed not available" or "sqlite_vec not available" despite being installed
- Version mismatch: pip shows newer version than runtime
- Embeddings_available=NO when deps are present
Core troubleshooting (in order)
- Run diagnostics:
- mnemosyne_diagnose
- Look for: missing fastembed, sqlite_vec, ctransformers; embeddings_available status; mnemosyne_version
- Check for local dev shadowing:
- A local ~/mnemosyne directory will shadow the pip-installed package because Python adds ~ to sys.path on macOS.
- Confirm with: python -c "import mnemosyne, inspect; print(mnemosyne.file)" If it prints ~/mnemosyne/..., that's the problem.
- Fix shadowing (if present):
- Rename or move local dev copy: mv ~/mnemosyne ~/mnemosyne-local
- Ensure PYTHONPATH prioritizes site-packages in gateway plist: plutil -replace "EnvironmentVariables.PYTHONPATH" -string "~/.hermes/hermes-agent/venv/lib/python3.11/site-packages" ~/Library/LaunchAgents/ai.hermes.gateway.plist
- Restart gateway: launchctl stop ai.hermes.gateway && launchctl start ai.hermes.gateway
- Remove stale plugin symlinks:
- Old setups may have: ~/.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.
- If present, remove it: rm ~/.hermes/plugins/mnemosyne
- Upgrade Mnemosyne + deps:
- From venv: pip install --upgrade "mnemosyne-memory[embeddings]" sqlite-vec
- If version mismatch persists (pip shows new, runtime still old):
- Uninstall and reinstall cleanly: pip uninstall -y mnemosyne-memory && pip install --upgrade "mnemosyne-memory[embeddings]" sqlite-vec
- Restart gateway after changes:
- launchctl stop ai.hermes.gateway && launchctl start ai.hermes.gateway
- Verify:
- Run: python -c "import mnemosyne; print(mnemosyne.version, mnemosyne.file)" Confirm it loads from site-packages and shows expected version.
- Run mnemosyne_diagnose again.
- Test consolidation: mnemosyne_sleep (dry_run=true)
Embeddings
- If episodic_vectors=0, future operations will be slow on large DBs.
- Enabling embeddings requires:
- MNEMOSYNE_VEC_TYPE set to "fastembed" in .env (not just sqlite_vec)
- sqlite-vec and fastembed installed
- A migration pass to vectorize existing memories
Enable embeddings (step-by-step)
- Add env var (use Python to avoid overwriting):
- python -c " import os path = os.path.expanduser('~/.hermes/.env') with open(path, 'a') as f: f.write('MNEMOSYNE_VEC_TYPE=fastembed\n') "
- Restart gateway:
- launchctl stop ai.hermes.gateway && launchctl start ai.hermes.gateway
- Run auto-fix diagnostics (ensures deps and vec indexes are healthy):
- ~/.hermes/hermes-agent/venv/bin/mnemosyne diagnose --fix
- Plan reindex (dry run first):
- ~/.hermes/hermes-agent/venv/bin/mnemosyne reindex --dry-run Confirms model, dimensions, and memory counts before writing.
- Execute reindex to vectorize existing memories:
- ~/.hermes/hermes-agent/venv/bin/mnemosyne reindex --yes This can take several minutes on large DBs; it is safe and non-blocking for Hermes runtime.
- Verify:
- mnemosyne_diagnose → embeddings_available=OK, episodic_vectors > 0
Pitfalls
- Never trust pip show alone; always verify with import mnemosyne + file.
- Do not leave a local ~/mnemosyne directory in place if you intend to use the pip-installed version.
- After any Mnemosyne change, restart the gateway — Hermes caches imports at startup.
- mnemosyne_diagnose can lie about versions and deps when a local dev copy shadows site-packages (it reads from whatever import mnemosyne resolves to). Always confirm with: python -c "import mnemosyne; print(mnemosyne.version, mnemosyne.file)" If it prints ~/mnemosyne/... instead of site-packages, your diagnosis is using the wrong package.
- On large DBs (40K+ working memories) without embeddings, mnemosyne_sleep can hang for 30+ minutes doing brute-force FTS + LLM passes. Treat this as a hard signal to enable embeddings, not just "wait longer."
- The mnemosyne reindex command may default to ~/.mnemosyne/data/ instead of ~/.hermes/mnemosyne/data/, causing backup or DB-not-found errors. Fix by:
- Setting MNEMOSYNE_DATA_DIR=~/.hermes/mnemosyne, or
- Using --no-backup if you're confident in the DB integrity and just need to reindex.
- A stale plugin symlink at ~/.hermes/plugins/mnemosyne -> ~/mnemosyne/hermes_memory_provider will break imports on modern Mnemosyne (3.8+), which bundles Hermes integration directly. Remove it if present.
- Hermes currently bundles mnemosyne 3.0.0 internally, so even after upgrading the pip package to 3.8+, the runtime may still report 3.0.0 and refuse to fully activate embeddings. In that case:
- Ensure PYTHONPATH in gateway plist points to site-packages.
- Add MNEMOSYNE_VEC_TYPE=fastembed via plutil (see "Embeddings" section).
- Run reindex with MNEMOSYNE_DATA_DIR set explicitly.
- If mnemosyne_sleep runs fast and no longer hangs, the fix worked even if diagnose still says 3.0.0.
- When using a local dev copy of Mnemosyne (e.g., ~/mnemosyne-dev), ensure its init.py delegates to the real package instead of shadowing it:
- Remove sys.path.insert(0, repo_root) lines that bring in the inner mnemosyne/ subpackage.
- Import everything from the installed mnemosyne-memory package via "from mnemosyne import *" so Hermes gets the latest version.
Hard-learned rules (from live sessions)
- Trust behavior over version numbers:
- If mnemosyne_sleep completes quickly and no longer hangs, the fix worked — even if diagnose still reports 3.0.0 or embeddings_available=NO.
- Hermes bundles its own older mnemosyne internally; pip upgrades alone won't change what diagnose prints. What matters is whether operations are fast and non-blocking.
- When reindex fails with "Database not found" or backup errors:
- It's using ~/.mnemosyne/data/ instead of ~/.hermes/mnemosyne/data/.
- Either set MNEMOSYNE_DATA_DIR=~/.hermes/mnemosyne before running, or use --no-backup if you're confident in DB integrity.
- If all deps are installed and fastembed/sqlite_vec show OK but embeddings_available=NO:
- Likely Hermes is loading its bundled mnemosyne 3.0.0 instead of the pip-installed 3.8+.
- Ensure PYTHONPATH in gateway plist points to site-packages, remove stale plugin symlinks, restart gateway, then verify with a live mnemosyne_sleep run rather than diagnose output alone.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

