Repository navigation
Dev Hooks
Hatem Soliman edited this page Nov 28, 2026
·
3 revisions
Khor listens on 127.0.0.1:47017, only on this Mac. The helper ~/.khor/bin/khor-event <name> sends it an event.
./hooks/install-hooks.shIt backs up each file, then adds:
| Source | Event | Effect |
|---|---|---|
Claude Code Stop hook |
claude-done |
Sound and a gold burst over the Burj |
Claude Code Notification hook |
claude-waiting |
Sound, fish gather at the glass |
| zsh, a command fails | error |
Errors 1 to 3: a short sound |
| zsh, 4th failure in a row and after | error |
Sounds escalate (streak-4 to streak-7) and a storm builds |
| zsh, a command succeeds | success |
Clears the streak, with a relief sound and fireworks if it was 4 or more |
Ctrl-C (exit code 130) never counts as an error. Change where escalation starts with errorStreakStart in Settings.

cp hooks/git-post-commit /path/to/repo/.git/hooks/post-commitEach commit sends the flamingos on a lap.
Any name made of letters, numbers and dashes works:
~/.khor/bin/khor-event deploy-doneIt plays deploy-done.mp3 from your sounds folder. See Sounds.
Remove the two Khor entries from ~/.claude/settings.json.
Delete the block between # >>> khor >>> and # <<< khor <<< in ~/.zshrc.
Backups end in .bak-khor.
Live demo · Source · Report a bug · Privacy · Terms · Changelog · MIT licence · Made by Hatem Soliman
Using it
Your data and safety
Building