Skip to content
Agent Memory
Hook

Hooks

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

From plugin
ensue-memory
4221 skill1 agent6 hooks
Install
> /plugin marketplace add mutable-state-inc/ensue-skill
> /plugin install ensue-memory@ensue-memory-network

Ships with ensue-memory. Installing the plugin gets these hooks.

What fires, and when

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.

  • bash ${CLAUDE_PLUGIN_ROOT}/scripts/session-start.sh

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.

  • bash ${CLAUDE_PLUGIN_ROOT}/scripts/on-message.sh

PostToolUse

  • MatchesWrite|Edit|Bash|Taskbash ${CLAUDE_PLUGIN_ROOT}/scripts/post-tool-use.sh

PreCompact

  • bash ${CLAUDE_PLUGIN_ROOT}/scripts/pre-compact.sh

Stop

  • bash ${CLAUDE_PLUGIN_ROOT}/scripts/on-stop.sh

SessionEnd

  • bash ${CLAUDE_PLUGIN_ROOT}/scripts/session-end.sh
Read hooks/hooks.json
Ships withensue-memory

Get smarter alongside your AI. Your intelligence shouldn't reset every conversation. Ensue is a persistent knowledge tree that grows with you - what you learn today enriches tomorrow's reasoning.

Get the whole plugin
Stats
422
Stars
11
Forks
Quiet
Maintenance
Shell
Language
6mo ago
Last commit
8mo ago
Created

Repo: mutable-state-inc/ensue-skill