Back to Hooks
ClaudePluginHub

Community directory for discovering and installing Claude Code plugins.

Product

  • Browse Plugins
  • Marketplaces
  • Pricing
  • About
  • Contact

Resources

  • Learning Center
  • Claude Code Docs
  • Plugin Guide
  • Plugin Reference
  • Plugin Marketplaces

Community

  • Browse on GitHub
  • Get Support

Legal

  • Terms of Service
  • Privacy Policy
  • Admin Panel

© 2025 ClaudePluginHub

Community Maintained · Not affiliated with Anthropic

ClaudePluginHub
ClaudePluginHub
ToolsLearn
Search everything...
Event Hooks

mem0

6 events · 7 hooks

From mem0
Install
1
Run in your terminal
$
npx claudepluginhub mem0ai/mem0 --plugin mem0
Risk Indicators
Modifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "Stop": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/on_stop.sh",
          "timeout": 10
        }
      ]
    }
  ],
  "PreCompact": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/on_pre_compact.sh",
          "statusMessage": "Preparing pre-compaction summary..."
        },
        {
          "type": "command",
          "command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/on_pre_compact.py",
          "timeout": 30,
          "statusMessage": "Saving session state to mem0..."
        }
      ]
    }
  ],
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/block_memory_write.sh"
        }
      ],
      "matcher": "Write|Edit"
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/on_session_start.sh",
          "statusMessage": "Loading mem0 context..."
        }
      ],
      "matcher": "startup|resume|compact"
    }
  ],
  "TaskCompleted": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/on_task_completed.sh",
          "timeout": 10
        }
      ]
    }
  ],
  "UserPromptSubmit": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/on_user_prompt.sh",
          "timeout": 5,
          "statusMessage": "Searching mem0 memories..."
        }
      ]
    }
  ]
}
Summary
"Manages session memory with mem0: loads/searches/saves state on start/prompt/task events, blocks memory writes during Write/Edit tools. Runs shell scripts and Python."
Similar Hooks
everything-claude-code

7 events · 32 hooks

134.7k
superpowers

1 event · 1 hook

132.6k
oh-my-claudecode

11 events · 20 hooks

22.4k
Stats
Parent Repo Stars51821
Parent Repo Forks5802
Last CommitMar 25, 2026
Actions
View SourceView PluginView on GitHubView README
Stats
Parent Repo Stars51821
Parent Repo Forks5802
Last CommitMar 25, 2026
Actions
View SourceView PluginView on GitHubView README