Claude Code notification

cc-notifier

macOS and push notifications for Claude Code that only fire when you are away from the session.

Install

Install
brew install --cask hammerspoon
From source
git clone https://github.com/trentmcnitt/cc-notifier.git

From the README

cc-notifier πŸ””

Notifications for Claude Code that take you back to the exact window you left.

When Claude Code finishes a task or needs your permission while you're working in another window, cc-notifier shows a macOS notification. Click it and you're back in the original terminal or IDE window, even on another Space (and the same tab, in iTerm2). Away from your desk? It sends a push notification to your phone instead, which can reopen the session there.

Features

- 🎯 Click-to-focus across Spaces. Returns you to the exact window, not just the app, and to the original iTerm2 tab.
- 🧠 Only when you've looked away. Local notifications fire only if you switched windows, iTerm2 tabs, or tmux sessions. Over SSH, cc-notifier checks whether you're idle instead.
- πŸ“² Push when you're away. Optional Pushover notifications when you've been idle at your desk; the main channel over SSH.
- πŸ“± Phone handoff (optional). Tap the push notification to resume the same session in Blink Shell.
- ⚑ Never blocks Claude Code. Hooks return immediately and the work runs in the background.
- πŸͺΆ Small and dependency-free. One standard-library Python file plus a bash wrapper, tested in CI on Python 3.9 through 3.14.

How It Works

πŸ’» Desktop Mode

1. Session Start β†’ Captures your focused window ID
2. Task Completion β†’ Compares current window vs original window
3. Smart Notification:
   - πŸͺŸ Switched windows? β†’ Local notification with click-to-focus
   - πŸ—‚οΈ Switched iTerm2 tabs in same window? β†’ Local notification with tab-aware click-to-focus
   - πŸ’€ Idle at desk? β†’ Optional push notification via Pushover
4. Click Notification β†’ Hammerspoon restores your exact window across Spaces; iTerm2 sessions also restore the original tab

🌐 Remote Mode (SSH)

1. Auto-Detection β†’ Detects SSH via…
Read the full README on GitHub

Details

Language
Python
License
MIT
Last updated
28 September 2026
Topics
claude-codeclaude-code-hooksdeveloper-toolshammerspooniterm2macosnotificationspushoverpythontmux

FAQ

What is cc-notifier?

macOS and push notifications for Claude Code that only fire when you are away from the session. It is a notification for Claude Code, from trentmcnitt/cc-notifier on GitHub.

How do I install cc-notifier?

Run brew install --cask hammerspoon, then follow the setup in the README.

Is cc-notifier popular?

trentmcnitt/cc-notifier has 112 GitHub stars and 9 forks. It was last updated on 28 September 2026.

More notifications & sounds

Browse the most popular Claude Code mods, all notifications & sounds, or the skills and MCP server directories.