Skip to content
Development
Hook

Hooks

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

Install
$ npx -y skills add swapnil-agrim/loopsmith --agent claude-code

Ships 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".
Read hooks/hooks.json

Where it lives

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.

Ships withloopsmith

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.

Get the whole plugin, auto-invoked
Stats
6
Stars
0
Views
1
Forks
Active
Maintenance
Python
Language
MIT
License
7m ago
Last commit
1mo ago
Created

Repo: swapnil-agrim/loopsmith