Claude Code Notification

by nkyy

Not rated
GitHub

About

Sends notifications from Claude Code with customizable sounds and cross-platform support.

Details

Author
nkyy
Categories
Communication, Other, AI, Productivity

Method 1: One-Command Setup (Recommended)

cd /path/to/ccnotify && npm run setup-hooks
git clone <this-repository> cd ccnotify npm install && npm run build

- Restart Claude Codeif it's currently running

All Claude Code notifications will now automatically have enhanced sounds and styling. No additional configuration needed!

The notification hook automatically detects and enhances all Claude Code notifications:

- ✅Success/Completion→ Glass sound (macOS)
- 🚨Errors/Failures→ Basso sound (macOS)
- ⚠️Warnings/Attention→ Sosumi sound (macOS)
- 💡Info/Updates→ Blow sound (macOS)
- ⏳Progress/Ongoing→ Tink sound (macOS)

# Building a project npm run build # → Automatic success notification with Glass sound when complete # → Automatic error notification with Basso sound if failed # Running tests npm test # → Automatic progress notification with Tink sound while running # → Automatic completion notification when finished # Git operations git push origin main # → Automatic notifications for each step with appropriate sounds

Edit the hook script athooks/notification-hook.jsto customize sound mappings:

// Example: Add custom sound rules const customSoundRules = ](https://github.com/nkygit/cat-ccnotify-hook)[ { pattern: /deployment/i, sound: 'Ping' }, { pattern: /security/i, sound: 'Funk' }, { pattern: /backup/i, sound: 'Purr' } ];
# Check if hook is properly installed cat ~/.config/claude-code/settings.json | grep -A 10 "hooks" # Verify hook script is executable ls -la hooks/notification-hook.js # Re-run setup if needed npm run setup-hooks
# Test system sound (macOS) afplay /System/Library/Sounds/Glass.aiff # Check notification permissions in System Preferences

Claude Code OperationsEnhanced Notifications

# File operations "Create a new React component" → ✅ "Component created successfully" + Glass sound # Build processes "Run the build process" → ⏳ "Build in progress..." + Tink sound → ✅ "Build completed successfully" + Glass sound # Error scenarios "Fix the TypeScript errors" → 🚨 "3 type errors found" + Basso sound # Git operations "Commit these changes" → ✅ "Changes committed successfully" + Glass sound
npm run dev # Development mode with auto-reload npm run build # Production build npm start # Start production server

- macOS: Full native support withosascriptand system sounds
- Windows/Linux: Cross-platform support vianode-notifierpackage

- Type-safe TypeScript implementation
- MCP (Model Context Protocol) compliant
- Automatic platform-specific implementation switching
- Extensible notification type system

The notification hook intercepts Claude Code's notification system and enhances it:
- Interception: Hook receives all notification calls from Claude Code
- Analysis: Analyzes notification content using pattern matching
- Enhancement: Adds appropriate sounds and styling based on content
- Native Integration: Uses platform-specific notification APIs

~/.config/claude-code/settings.json # Claude Code configuration hooks/notification-hook.js # Main hook script dist/index.js # Built MCP server (optional) scripts/setup-hooks.js # Automated setup script

- macOS: Full native support withosascriptand system sounds
- Windows/Linux: Cross-platform support vianode-notifierpackage

For advanced users who want manual notification control, the MCP server is still available:

{ "mcpServers": { "ccnotify": { "command": "node", "args": ["/absolute/path/to/ccnotify/dist/index.js"] } } }

Bug reports and feature requests are welcome! Please open anissue.

A bridge server connecting Claude Desktop with the chakoshi moderation API for content safety.

Connect Restream MCP to Claude or ChatGPT to create, schedule, manage, and analyze live streams across 30+ platforms.

Let Claude book a real restaurant table for you - an AI voice agent places the actual phone call, even to restaurants that only take reservations by phone.

Secure audio transcription meets AI. Connect Alice recordings to Claude, ChatGPT, Gemini, and more.

An MCP server to interact with OpenAI's ChatGPT API for conversational AI and text generation.

Local-first MCP server that puts your own LINE and Telegram chats behind one data layer — a daemon on your machine logs in with your own account, stores messages to JSONL + SQLite/FTS5, and exposes them to MCP clients like Claude Code. Not an npx one-liner: you clone the repo and run the daemon yourself.

An AI-powered email intelligence platform that integrates with Gmail and OpenAI. It can be run as a CLI tool or deployed on AWS Lambda for enhanced capabilities.

Integrate with Google's Gemini AI models for various tasks.

An intelligent, LLM-powered email assistant using the Nylas v3 API.

A chat assistant that integrates an MCP client with an LLM and other external MCP servers.

Sends notifications from Claude Code with customizable sounds and cross-platform support.

⚠️ DEPRECATED: This project has been superseded bycat-ccnotify-hook. Please use the new standalone package for better performance and easier installation.

Enhanced Claude Code experience with automatic desktop notifications and contextual sounds for all events. No manual notification calls needed - works automatically with all Claude Code operations!

- 🔔Automatic Notifications: Intercepts ALL Claude Code notifications and enhances them
- 🎵Contextual Sounds: Different sounds for success, error, warning, and other event types
- 🚀Zero Configuration: Automatic detection and enhancement of notification types
- 📋Smart Sound Mapping: Intelligent analysis of notification content for appropriate sounds
- 🖱️Native System Integration: Uses macOS/Windows/Linux native notification systems

Method 1: One-Command Setup (Recommended)

cd /path/to/ccnotify && npm run setup-hooks
git clone <this-repository> cd ccnotify npm install && npm run build

- Restart Claude Codeif it's currently running

All Claude Code notifications will now automatically have enhanced sounds and styling. No additional configuration needed!

The notification hook automatically detects and enhances all Claude Code notifications:

- ✅Success/Completion→ Glass sound (macOS)
- 🚨Errors/Failures→ Basso sound (macOS)
- ⚠️Warnings/Attention→ Sosumi sound (macOS)
- 💡Info/Updates→ Blow sound (macOS)
- ⏳Progress/Ongoing→ Tink sound (macOS)

# Building a project npm run build # → Automatic success notification with Glass sound when complete # → Automatic error notification with Basso sound if failed # Running tests npm test # → Automatic progress notification with Tink sound while running # → Automatic completion notification when finished # Git operations git push origin main # → Automatic notifications for each step with appropriate sounds

Edit the hook script athooks/notification-hook.jsto customize sound mappings:

// Example: Add custom sound rules const customSoundRules = [ { pattern: /deployment/i, sound: 'Ping' }, { pattern: /security/i, sound: 'Funk' }, { pattern: /backup/i, sound: 'Purr' } ];
# Check if hook is properly installed cat ~/.config/claude-code/settings.json | grep -A 10 "hooks" # Verify hook script is executable ls -la hooks/notification-hook.js # Re-run setup if needed npm run setup-hooks
# Test system sound (macOS) afplay /System/Library/Sounds/Glass.aiff # Check notification permissions in System Preferences

Claude Code OperationsEnhanced Notifications

# File operations "Create a new React component" → ✅ "Component created successfully" + Glass sound # Build processes "Run the build process" → ⏳ "Build in progress..." + Tink sound → ✅ "Build completed successfully" + Glass sound # Error scenarios "Fix the TypeScript errors" → 🚨 "3 type errors found" + Basso sound # Git operations "Commit these changes" → ✅ "Changes committed successfully" + Glass sound
npm run dev # Development mode with auto-reload npm run build # Production build npm start # Start production server

- macOS: Full native support withosascriptand system sounds
- Windows/Linux: Cross-platform support vianode-notifierpackage

- Type-safe TypeScript implementation
- MCP (Model Context Protocol) compliant
- Automatic platform-specific implementation switching
- Extensible notification type system

The notification hook intercepts Claude Code's notification system and enhances it:
- Interception: Hook receives all notification calls from Claude Code
- Analysis: Analyzes notification content using pattern matching
- Enhancement: Adds appropriate sounds and styling based on content
- Native Integration: Uses platform-specific notification APIs

~/.config/claude-code/settings.json # Claude Code configuration hooks/notification-hook.js # Main hook script dist/index.js # Built MCP server (optional) scripts/setup-hooks.js # Automated setup script

- macOS: Full native support withosascriptand system sounds
- Windows/Linux: Cross-platform support vianode-notifierpackage

For advanced users who want manual notification control, the MCP server is still available:

{ "mcpServers": { "ccnotify": { "command": "node", "args": ["/absolute/path/to/ccnotify/dist/index.js"] } } }

Bug reports and feature requests are welcome! Please open anissue.

A bridge server connecting Claude Desktop with the chakoshi moderation API for content safety.

Connect Restream MCP to Claude or ChatGPT to create, schedule, manage, and analyze live streams across 30+ platforms.

Let Claude book a real restaurant table for you - an AI voice agent places the actual phone call, even to restaurants that only take reservations by phone.

Secure audio transcription meets AI. Connect Alice recordings to Claude, ChatGPT, Gemini, and more.

An MCP server to interact with OpenAI's ChatGPT API for conversational AI and text generation.

Local-first MCP server that puts your own LINE and Telegram chats behind one data layer — a daemon on your machine logs in with your own account, stores messages to JSONL + SQLite/FTS5, and exposes them to MCP clients like Claude Code. Not an npx one-liner: you clone the repo and run the daemon yourself.

An AI-powered email intelligence platform that integrates with Gmail and OpenAI. It can be run as a CLI tool or deployed on AWS Lambda for enhanced capabilities.

Integrate with Google's Gemini AI models for various tasks.

An intelligent, LLM-powered email assistant using the Nylas v3 API.

A chat assistant that integrates an MCP client with an LLM and other external MCP servers.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.