You can use a Stop hook to have Claude try again when a check fails, but make sure it exits with code 2!
Exit 2 sends Claude back to retry with the hook's stderr, exit 1 is non-blocking so Claude just finishes even when the check failed
You can use a Stop hook to have Claude try again when a check fails, but make sure it exits with code 2!
Exit 2 sends Claude back to retry with the hook's stderr, exit 1 is non-blocking so Claude just finishes even when the check failed
Lydia Hallie ✨ · x.comPublished · added here
Original title: You can use a Stop hook to have Claude try again when a check fails, but make sure it exits with code 2!