Repository navigation
Dev Hooks
Hatem Soliman edited this page Nov 28, 2026
·
3 revisions
Khor listens on 127.0.0.1:47823. Only programs on your Mac can reach it, and requests from web pages are refused.
Add this to ~/.claude/settings.json (merge it with any hooks you already have):
{
"hooks": {
"Stop": [{ "hooks": [{ "type": "command", "command": "curl -s -m 1 http://127.0.0.1:47823/event/done >/dev/null 2>&1 || true" }] }],
"Notification": [{ "hooks": [{ "type": "command", "command": "curl -s -m 1 http://127.0.0.1:47823/event/waiting >/dev/null 2>&1 || true" }] }]
}
}If Khor isn't running, the commands give up after one second, silently.
| Event | What happens |
|---|---|
done (or success) |
Victory sound, a fish leaps, the falcon swoops, and the error streak resets |
waiting |
The fish line up near the glass and blow bubbles |
error |
Adds one to the error streak: short memes first, then from the Nth error in a row a long meme and a sandstorm |
reset |
Clears the error streak |
snapshot |
Saves snapshot-N.jpg of each screen to ~/Library/Application Support/Khor/
|
Send one from anywhere, for example a script or another tool's hook:
curl -s http://127.0.0.1:47823/event/errorSet when the long meme starts in the menu, under Long meme. The default is 4.
Live demo · Source · Report a bug · Privacy · Terms · Changelog · MIT licence · Made by Hatem Soliman
Using it
Your data and safety
Building