Skip to content

CCNotify provides desktop notifications for Claude Code, alerting you when Claude needs your input or completes tasks.

Notifications You must be signed in to change notification settings

ismailytics/CCNotify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Notification Screenshot

CCNotify

CCNotify provides desktop notifications for Claude Code, alerting you when Claude needs your input or completes tasks.

Features

  • 🔔 Get notified when Claude requires your input or completes a task.
  • 🔗 Click to jump back when notifications are clicked, automatically taking you to the corresponding project in VS Code.
  • ⏱️ Task Duration: Displays started time, and how long the task took to complete

Note: Currently compatible with macOS only.

Installation Guide

1. Install CCNotify

# Create the directory if it doesn't exist
mkdir -p ~/.claude/ccnotify

# soft link ccnotify.py to the directory
ln -f ccnotify.py ~/.claude/ccnotify/

chmod a+x ~/.claude/ccnotify/ccnotify.py

# run this script, should print: ok
~/.claude/ccnotify/ccnotify.py

ok

2. Install terminal-notifier

ccnotify uses terminal-notifier for macOS notifications. Install it using Homebrew:

brew install terminal-notifier

For alternative installation methods and more information, visit: https://github.com/julienXX/terminal-notifier

3. Configure Claude Hooks

Add the following hooks to your Claude configuration to enable ccnotify:

~/.claude/settings.json

  "hooks": {
  "UserPromptSubmit": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "~/.claude/ccnotify/ccnotify.py UserPromptSubmit"
        }
      ]
    }
  ],
  "Stop": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "~/.claude/ccnotify/ccnotify.py Stop"
        }
      ]
    }
  ],
  "Notification": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "~/.claude/ccnotify/ccnotify.py Notification"
        }
      ]
    }
  ]
}

Try It Out

To verify the notification system works, start a new Claude Code session and run:

after 1 second, echo 'hello'

You should see a macOS notification appear.

How It Works

ccnotify tracks Claude sessions and provides notifications at key moments:

  • When you submit a prompt: Records the start time and project context
  • When Claude completes: Calculates duration and sends a completion notification
  • When Claude waits for input: Immediately alerts you that input is needed

All activity is logged to ~/.claude/ccnotify/ccnotify.log and session data is stored in ~/.claude/ccnotify/ccnotify.db locally. No data is uploaded or shared externally.

Uninstall

Edit ~/.claude/settings.json and remove all hook commands related to ccnotify.

Remove all files with a single command:

rm -rf ~/.claude/ccnotify

About

CCNotify provides desktop notifications for Claude Code, alerting you when Claude needs your input or completes tasks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%