From claude-commands
Searches, writes, and inspects the shared Hermes mem0 Qdrant memory store shared by Claude, Codex, and Hermes agents. Useful for recalling past decisions, adding persistent facts, and debugging agent memory.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-commands:mem0The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Query and write to the shared mem0 qdrant store (`hermes_mem0`, 127.0.0.1:6333).
Query and write to the shared mem0 qdrant store (hermes_mem0, 127.0.0.1:6333).
All agents (Claude, Codex, Hermes) share this store under user_id=$USER.
# Search
python3 ~/.hermes/scripts/mem0_shared_client.py search "<query>"
# Add a fact (with LLM extraction)
python3 ~/.hermes/scripts/mem0_shared_client.py add "<text>"
# Add verbatim (no LLM, guaranteed write)
python3 ~/.hermes/scripts/mem0_shared_client.py add "<text>" --no-infer
# Stats
python3 ~/.hermes/scripts/mem0_shared_client.py stats
Script path:
~/.hermes/scripts/mem0_shared_client.pyConfig: reads~/.hermes/config.yaml(override withHERMES_CONFIG_PATH), looking forplugins.entries.hermes-mem0.config.oss. That block is OPTIONAL — if absent, the script falls back to working defaults (ollamanomic-embed-textembedder +gemma2:2bLLM, qdrant127.0.0.1:6333, collectionhermes_mem0). There is NO~/.hermes/hermes.json; do not chase it as a missing file. Also callable from any repo worktree:python3 scripts/mem0_shared_client.py <cmd>
hermes_mem0127.0.0.1:6333 (qdrant docker, Hermes-managed storage)~/.hermes/config.yaml (hermes-mem0 plugin oss block) or fallback default nomic-embed-text~/.hermes/config.yaml (hermes-mem0 plugin oss block) or fallback default gemma2:2bThe extractor at scripts/mem0_extract_facts.py scans three sources:
| Source | Path | Agent ID |
|---|---|---|
| Hermes | ~/.hermes/ | hermes |
| Claude Code | ~/.claude/projects/ | claude |
| Codex | ~/.codex/sessions/ | codex |
Run a backfill (last 1 year = 525960 minutes):
cd ~/.hermes
python3 scripts/mem0_extract_facts.py --since 525960
Run incremental (last 65 min, for cron):
cd ~/.hermes
python3 scripts/mem0_extract_facts.py --since 65
Check state:
cat ~/.hermes/memory/extraction-state.json | python3 -m json.tool | head -20
Use python3 ~/.hermes/scripts/mem0_shared_client.py stats for live status.
Use /mem0 when the user asks to:
npx claudepluginhub jleechanorg/claude-commands --plugin claude-commandsCross-host durable memory for AI agents using the ling-mem CLI. Maintains a three-tier model of who the user is across sessions and hosts (Claude Code, Codex, OpenClaw).
Manages total-recall memory system: search, store, forget memories, inspect tiers, run eval, and configure. Automatically activates on memory-related queries.
Search, query, view stats, and manage Claude's persistent memory in a portable .claude/mind.mv2 file using Node.js scripts. Recalls discoveries, decisions, and solutions.