Skip to content
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.

From plugin
memory-loop
321 skill1 agent3 commands2 hooks
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"
Read hooks/hooks.json
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
Stats
32
Stars
3
Forks
Maintained
Maintenance
Shell
Language
3mo ago
Last commit
3mo ago
Created

Repo: yucai0302/memory-loop