Skip to content
Back to skills

Memem Mine History

ASecurity

Mine ALL existing Claude Code sessions, including history from before memem was installed.

  • 32 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
developmentpythongobashapi

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add TT-Wang/memem --skill memem-mine-history --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memem Mine History?

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

Security grade badge for Memem Mine History
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tt-wang-memem-mine-history/badge)](https://www.skillsdirectory.com/skills/tt-wang-memem-mine-history)

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: memem-mine-history
description: Mine ALL existing Claude Code sessions, including history from before memem was installed.
allowed-tools: [Bash]
---

Mine all historical Claude Code sessions for knowledge. This includes sessions from before memem was installed — by default only new sessions are mined. This also opts the user into the ongoing miner daemon, so new sessions are mined automatically going forward.

1. Show how many sessions exist:
```bash
find ~/.claude/projects/ -name "*.jsonl" ! -path "*/subagents/*" -size +5k | wc -l
```

2. Tell the user approximately how long it will take (~3-5 seconds per session, plus Haiku API costs).

3. Confirm with the user before starting — this can take hours for large histories and makes many API calls.

4. Record the opt-in, start mining history in the background, and start the ongoing miner daemon:
```bash
mkdir -p ~/.memem && touch ~/.memem/.miner-opted-in
nohup PYTHONPATH="${CLAUDE_PLUGIN_ROOT}" python3 -m memem.server --mine-all > ~/.memem/mine-all.log 2>&1 &
echo "History mining started in background (PID $!)"
bash "${CLAUDE_PLUGIN_ROOT}/memem/miner-wrapper.sh" start
```

5. Tell the user:
- History mining is running in the background (log at `~/.memem/mine-all.log`)
- The ongoing miner daemon is now running — new sessions will be mined automatically too
- They can continue working normally
- New memories will appear as they're extracted
- Run `/memem-status` to check progress
- To stop everything: `python3 -m memem.server --miner-opt-out`

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.

Comments

Loading comments…

Newsletter

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