This guide is designed for both humans and LLM agents. If you're an AI agent, follow the automated steps below.
Code-Notify adds desktop notifications to Claude Code. You'll get alerts when:
- Tasks complete
- Claude needs your input
- Voice announcements (macOS)
Execute these commands to install code-notify:
# 1. Clone the repository
git clone https://github.com/mylee04/code-notify.git /tmp/code-notify
# 2. Run the installer
chmod +x /tmp/code-notify/scripts/install.sh
/tmp/code-notify/scripts/install.sh
# 3. Reload shell
exec $SHELL
# 4. Enable notifications
cn on
# 5. Test it works
cn test
# 6. Clean up
rm -rf /tmp/code-notifyAfter installation, confirm these work:
cn version # Should show: code-notify version X.X.X
cn status # Should show: Global notifications: ENABLED
cn test # Should trigger a desktop notificationcn voice on # Follow prompts to select a voice
cn test # Should hear + see notificationTo enable notifications for a specific project only:
cd /path/to/your/project
cnp on # Enable for this project
cnp status # VerifyIf cn command not found:
# Add to PATH
export PATH="$HOME/.local/bin:$PATH"
# Or reload shell
exec $SHELLIf notifications don't appear:
# macOS: Install terminal-notifier for better notifications
brew install terminal-notifier
# Check status
cn statusAfter installation, these files are created:
~/.code-notify/- Main installation directory~/.claude/settings.json- Hook configuration (when enabled)~/.claude/notifications/voice-enabled- Voice setting (if enabled)
# Disable notifications first
cn off
# Remove installation
rm -rf ~/.code-notify
rm -f ~/.local/bin/cn ~/.local/bin/cnp ~/.local/bin/code-notify
rm -rf ~/.claude/notificationsbrew tap mylee04/tools
brew install code-notify
cn oncurl -sSL https://raw.githubusercontent.com/mylee04/code-notify/main/scripts/install.sh | bash
exec $SHELL
cn ongit clone https://github.com/mylee04/code-notify.git
cd code-notify
./scripts/install.sh| Command | What it does |
|---|---|
cn on |
Enable notifications |
cn off |
Disable notifications |
cn test |
Send test notification |
cn status |
Check current status |
cn voice on |
Enable voice (macOS) |
cnp on |
Enable for current project only |
That's it! You'll now get notified when Claude Code completes tasks.