⌨️Stop Hook
Also known as Stop event, stop_hook_active
The event when Claude finishes, where a hook can make it keep going.
Think of it like
It is like a coach who says one more lap before you can sit down.
Example
Lucy's Stop hook runs the tests. If any fail, it blocks the stop and tells Claude to fix them first.
Why it matters
It turns done into done and checked. Claude cannot end a turn with red tests.
Definition
Example code
json
{
"decision": "block",
"reason": "Tests are failing. Run npm test and fix them before you stop."
}Common mistake
Key takeaways
- 1When Claude finishes. Not on interrupt.
- 2Block with a reason. Claude goes on.
- 3Watch for loops. stop_hook_active.