Hooks
What loopsmith runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.
$ npx -y skills add swapnil-agrim/loopsmith --agent claude-codeShips with loopsmith. Installing the plugin gets these hooks.
What fires, and when
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.
- Runs sdlc_gate.sh".
PostToolUse
- Runs research_capture.py".
PreToolUse
- Runs plan_gate.sh".
Stop
- Runs completion_gate.sh".
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.
- Runs session_start.sh".
Where it lives
- hooks/_py.shGitHub
- hooks/completion_gate.shGitHub
- hooks/decision_gate.pyGitHub
- hooks/plan_gate.shGitHub
- hooks/research_capture.pyGitHub
- hooks/sdlc_gate.shGitHub
- hooks/session_start.shGitHub
Showing the source of 6 of 7 scripts. Every one is linked above.
Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.
Guardrails + an overnight autopilot for your AI coding agent — one that plans before it codes, won't ship work that fights your strategy, and gets sharper every run.

