Skip to content
Back to skills

Mem0

ASecurity

Search, write, and inspect the shared Hermes mem0 qdrant memory store.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 26, 2026
ai-agentspythonbashdocker

Works with

  • claude code
  • cli

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add jleechanorg/jleechan-skills --skill mem0 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mem0?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mem0
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jleechanorg-mem0/badge)](https://www.skillsdirectory.com/skills/jleechanorg-mem0)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mem0
description: Search, write, and inspect the shared Hermes mem0 qdrant memory store.
---

# mem0 — Hermes Shared Memory

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`.

## Quick reference

```bash
# 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.py`
> Config: reads `~/.hermes/config.yaml` (override with `HERMES_CONFIG_PATH`), looking for
> `plugins.entries.hermes-mem0.config.oss`. That block is OPTIONAL — if absent, the script
> falls back to working defaults (ollama `nomic-embed-text` embedder + `gemma2:2b` LLM,
> qdrant `127.0.0.1:6333`, collection `hermes_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>`

## Store status

- **Collection:** `hermes_mem0`
- **Host:** `127.0.0.1:6333` (qdrant docker, Hermes-managed storage)
- **Embedder:** `~/.hermes/config.yaml` (`hermes-mem0` plugin `oss` block) or fallback default `nomic-embed-text`
- **LLM for extraction:** `~/.hermes/config.yaml` (`hermes-mem0` plugin `oss` block) or fallback default `gemma2:2b`

## Ingestion (backfill)

The 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):
```bash
cd ~/.hermes
python3 scripts/mem0_extract_facts.py --since 525960
```

Run incremental (last 65 min, for cron):
```bash
cd ~/.hermes
python3 scripts/mem0_extract_facts.py --since 65
```

Check state:
```bash
cat ~/.hermes/memory/extraction-state.json | python3 -m json.tool | head -20
```

## Current ingestion status

Use `python3 ~/.hermes/scripts/mem0_shared_client.py stats` for live status.

## When to use this skill

Use `/mem0` when the user asks to:
- Search memory for past decisions, branch names, bead IDs, preferences
- Add a new fact that should persist across agent sessions
- Check ingestion status or trigger a backfill
- Debug why an agent doesn't remember something

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.