Mnemosyne Maintenanceのロゴ

Mnemosyne Maintenance

コミュニティ
AtlasOmnia
mnemosyne-maintenance

mnemosyne-maintenance — Upgrade, troubleshoot, and maintain Mnemosyne memory provider — version mismatches, slow/hung consolidation, missing embeddings, import shadowing.

概要

公開者AtlasOmnia
リポジトリdonna-starter
スキル名mnemosyne-maintenance
スター
131
フォーク
9
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    AtlasOmniaがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Mnemosyne Maintenance」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/AtlasOmnia/donna-starter/tree/main/skills/hermes/mnemosyne-maintenance
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AtlasOmnia/donna-starter.git /tmp/donna-starter
mkdir -p .claude/skills
cp -r /tmp/donna-starter/skills/hermes/mnemosyne-maintenance .claude/skills/mnemosyne-maintenance
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでMnemosyne Maintenanceを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にMnemosyne Maintenanceを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Mnemosyne Maintenanceは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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)

  1. Run diagnostics:
  • mnemosyne_diagnose
  • Look for: missing fastembed, sqlite_vec, ctransformers; embeddings_available status; mnemosyne_version
  1. 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.
  1. 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
  1. 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
  1. 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
  1. Restart gateway after changes:
  • launchctl stop ai.hermes.gateway && launchctl start ai.hermes.gateway
  1. 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)

  1. 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') "
  1. Restart gateway:
  • launchctl stop ai.hermes.gateway && launchctl start ai.hermes.gateway
  1. Run auto-fix diagnostics (ensures deps and vec indexes are healthy):
  • ~/.hermes/hermes-agent/venv/bin/mnemosyne diagnose --fix
  1. Plan reindex (dry run first):
  • ~/.hermes/hermes-agent/venv/bin/mnemosyne reindex --dry-run Confirms model, dimensions, and memory counts before writing.
  1. 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.
  1. 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.

よくある質問

AIスキル「Mnemosyne Maintenance」では何ができますか?

mnemosyne-maintenance — Upgrade, troubleshoot, and maintain Mnemosyne memory provider — version mismatches, slow/hung consolidation, missing embeddings, import shadowing.

TypingMindでMnemosyne Maintenanceを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Mnemosyne Maintenanceはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにMnemosyne Maintenanceをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/AtlasOmnia/donna-starter/tree/main/skills/hermes/mnemosyne-maintenanceを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Mnemosyne Maintenanceを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Mnemosyne Maintenanceで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもMnemosyne Maintenanceを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Mnemosyne Maintenance」は無料ですか?

はい。AtlasOmniaがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇