Development
Hook
Hooks
What memory-loop 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 yucai0302/memory-loop > /plugin install memory-loop@memory-loop
Ships with memory-loop. 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.
- Matches
*bash "${CLAUDE_PLUGIN_ROOT}/scripts/session-start.sh"
Stop
- Matches
*bash "${CLAUDE_PLUGIN_ROOT}/scripts/check-compress.sh"
Ships withmemory-loop
Persistent project-scoped memory for Claude Code. Auto-loads on session start, structured by schema, hot/cold layered.
Get the whole plugin

