Claude Code hooks for macOS notifications.
python setup.pyThis will:
- Install
pyobjc-framework-Cocoafor fast native notifications - Add notification hooks to
~/.claude/settings.json
Hooks are added for: permission prompts, idle prompts, and elicitation dialogs.
The script uses PyObjC's NSUserNotificationCenter for fast notifications (~1-5ms). If PyObjC is not available, it falls back to osascript (~100-200ms).
If auto-install fails, you can install manually:
pip install pyobjc-framework-Cocoa