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.
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
- Matches
Edit|Write${CLAUDE_PLUGIN_ROOT}/scripts/hooks/pre-edit-recall.js - Matches
Bash${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 - Matches
startup|resume${CLAUDE_PLUGIN_ROOT}/dist/host-runtime/codex-session.js
SessionEnd
- Matches
*${CLAUDE_PLUGIN_ROOT}/dist/host-runtime/codex-session.js
PostToolUse
- Matches
Bash${CLAUDE_PLUGIN_ROOT}/scripts/hooks/post-commit.js - Matches
ExitPlanMode|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
Stats
16
Stars
3
Forks
Active
Maintenance
TypeScript
Language
MIT
License
19m ago
Last commit
6mo ago
Created
Repo: PCIRCLE-AI/memesh-llm-memory

