Skip to content

Cross-platform desktop notifications for Claude Code/Codex/Gemini - Get alerts when tasks complete

License

Notifications You must be signed in to change notification settings

mylee04/code-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code-Notify

Official downloads: https://github.com/mylee04/code-notify/releases

Homebrew: brew install mylee04/tools/code-notify

Desktop notifications for AI coding tools - get alerts when tasks complete or input is needed.

Multi-tool support All tools enabled

Version License: MIT macOS Linux Windows

Features

  • Multi-tool support - Claude Code, OpenAI Codex, Google Gemini CLI
  • Works everywhere - Terminal, VSCode, Cursor, or any editor
  • Cross-platform - macOS, Linux, Windows
  • Native notifications - Uses system notification APIs
  • Voice announcements - Hear when tasks complete (macOS, Windows)
  • Tool-specific messages - "Claude completed the task", "Codex completed the task"
  • Project-specific settings - Different configs per project
  • Quick aliases - cn and cnp for fast access

Installation

For Humans

macOS (Homebrew)

brew tap mylee04/tools
brew install code-notify
cn on

Linux / WSL

curl -sSL https://raw.githubusercontent.com/mylee04/code-notify/main/scripts/install.sh | bash

Windows

irm https://raw.githubusercontent.com/mylee04/code-notify/main/scripts/install-windows.ps1 | iex

For LLM Agents

Paste this to your AI agent (Claude Code, Cursor, etc.):

Install code-notify by following:
https://raw.githubusercontent.com/mylee04/code-notify/main/docs/installation.md

Or fetch directly:

curl -s https://raw.githubusercontent.com/mylee04/code-notify/main/docs/installation.md

Usage

cn help output

Command Description
cn on Enable notifications for all detected tools
cn on claude Enable for Claude Code only
cn on codex Enable for Codex only
cn on gemini Enable for Gemini CLI only
cn off Disable notifications
cn test Send test notification
cn status Show current status
cn voice on Enable voice (macOS, Windows)
cn voice on claude Enable voice for Claude only
cnp on Enable for current project only

How It Works

Code-Notify uses the hook systems built into AI coding tools:

  • Claude Code: ~/.claude/settings.json
  • Codex: ~/.codex/config.toml
  • Gemini CLI: ~/.gemini/settings.json

When enabled, it adds hooks that call the notification script when tasks complete:

{
  "hooks": {
    "Stop": [{ "matcher": "", "hooks": [{ "type": "command", "command": "notify.sh stop claude" }] }],
    "Notification": [{ "matcher": "", "hooks": [{ "type": "command", "command": "notify.sh notification claude" }] }]
  }
}

Troubleshooting

Command not found?

exec $SHELL   # Reload shell

No notifications?

cn status     # Check if enabled
cn test       # Test notification
brew install terminal-notifier  # Better notifications (macOS)

Project Structure

code-notify/
├── bin/           # Main executable
├── lib/           # Library code
├── scripts/       # Install scripts
├── docs/          # Documentation
└── assets/        # Images

Links

License

MIT License - see LICENSE