Skip to content
Development
Skill

/memem-mine

Opt in to memem's event-triggered mining. New sessions are mined automatically via the Stop hook.

From plugin
memem
326 skills4 hooks

Claude Code

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

SKILL.md

memem-mine.SKILL.md
name: memem-mine
description: Opt in to memem's event-triggered mining. New sessions are mined automatically via the Stop hook.
allowed-tools: [Bash]

Opt in to memem mining. In v2.1.0+ mining is event-triggered: it fires on every Claude Code Stop event when the opt-in marker exists. There is no daemon to start.

1. Create the opt-in marker:

mkdir -p ~/.memem && touch ~/.memem/.miner-opted-in

2. Tell the user:

  • Mining is now active — every Stop event spawns a detached `mine_delta` subprocess that extracts memories from new turns since the last invocation
  • Hook overhead is ~50ms; the Haiku call runs in background
  • Run `/memem-status` to check Stop-hook registration, opt-in marker, and last mine run
  • Safety net: SessionStart fires a stale-session sweep for any JSONLs > 10 min old not yet in `~/.memem/.mined_sessions` (catches sessions where Stop never fired)
  • To opt out: `rm ~/.memem/.miner-opted-in` (no daemon to stop — the hook just no-ops)

For backfilling pre-existing sessions, use `/memem-mine-history`.

@tt-wang
Ships withmemem

Persistent, self-evolving memory for Claude Code. Stop re-explaining your project every session. <!-- The Glama badge URL below intentionally uses the legacy cortex-plugin slug.

Stars on GitHub

Momentum

stars in total
32
Star history of TT-Wang/memem on GitHub, a chart by star-history.com

Other skills on memem.

memem-doctor

memem-doctor

Run a preflight health check on memem — Python version, mcp dep, claude CLI, vault writability, capabilities. Use when the user…

@tt-wang@tt-wangInstall Skill
memem-status

memem-status

Show detailed memem memory system status — memory count, projects, search DB, miner health.

@tt-wang@tt-wangInstall Skill
memem-welcome

memem-welcome

Re-show the full memem welcome screen regardless of whether the user has seen it before. Use when the user wants to see the…

@tt-wang@tt-wangInstall Skill
memem

memem

Show memem status for returning users, or the full welcome for brand-new users. Use when the user wants to check memem or learn…

@tt-wang@tt-wangInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about memem-mine.

Which coding agents can use memem-mine?
memem-mine installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.