Show & tell: open-source verify-before-stop hook for Claude Code #413
ianymu
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! Sharing an open-source Stop hook in case it's complementary to what you're building.
ianymu/claude-verify-before-stop — blocks Claude Code's Stop event if files changed but no VERIFY_ACTION + VERIFIED log entry exists from the last 5 min. Catches the very common failure mode where the model says "all tests passing ✓" without actually verifying.
Built over 12 months running Claude Code on 14 parallel projects. Pure bash + python3 stdlib, MIT, ~50 lines. Lives in
.claude/hooks/verify-before-stop.shand.claude/state/stop-verify.logfor the audit trail.A few related artifacts you might find useful:
Curious if anyone here has built related guards. Drop them in a comment and I'll add to the repo with credit.
— Ian
Beta Was this translation helpful? Give feedback.
All reactions