Skip to content
Development
Hook

Hooks

What memesh runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
memesh
162 skills7 hooks
Install
> /plugin marketplace add PCIRCLE-AI/memesh-llm-memory
> /plugin install memesh@pcircle-memesh

Ships with memesh. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • MatchesEdit|Write${CLAUDE_PLUGIN_ROOT}/scripts/hooks/pre-edit-recall.js
  • MatchesBash${CLAUDE_PLUGIN_ROOT}/scripts/hooks/guard-check.js

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • Matches*${CLAUDE_PLUGIN_ROOT}/scripts/hooks/session-start.js
  • Matchesstartup|resume${CLAUDE_PLUGIN_ROOT}/dist/host-runtime/codex-session.js

SessionEnd

  • Matches*${CLAUDE_PLUGIN_ROOT}/dist/host-runtime/codex-session.js

PostToolUse

  • MatchesBash${CLAUDE_PLUGIN_ROOT}/scripts/hooks/post-commit.js
  • MatchesExitPlanMode|AskUserQuestion${CLAUDE_PLUGIN_ROOT}/scripts/hooks/decision-nudge.js

Stop

  • Matches*${CLAUDE_PLUGIN_ROOT}/scripts/hooks/session-summary.js

PreCompact

  • Matches*${CLAUDE_PLUGIN_ROOT}/scripts/hooks/pre-compact.js

UserPromptSubmit

Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.

  • Matches*${CLAUDE_PLUGIN_ROOT}/scripts/hooks/user-prompt-intent.js
Read hooks/hooks.json
Ships withmemesh

local collaboration layer for AI coding agents

Get the whole plugin
Stats
16
Stars
3
Forks
Active
Maintenance
TypeScript
Language
MIT
License
19m ago
Last commit
6mo ago
Created

Repo: PCIRCLE-AI/memesh-llm-memory