Development
Hook
Hooks
What loopcraft 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 hiphapis/loopcraft > /plugin install loopcraft@loopcraft
Ships with loopcraft. 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}/hooks/scripts/session-start.sh"
Stop
bash "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/stop-gate.sh"
PreCompact
bash "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/pre-compact.sh"
Ships withloopcraft
Loop engineering plugin for Claude Code — instead of steering the model with ever-longer prompts, design loops where it self-corrects from environment feedback and accumulates memory across sessions.
Get the whole plugin

