New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

claude-code-notify

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

claude-code-notify

Desktop notifications for Claude Code

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

Claude Code Notify

Get desktop notifications when Claude Code requests tool execution permission or completes tasks.

Notification Example

Features

  • 🔔 Simple desktop notifications for Claude Code interactions
  • 🎵 Different notification sounds (Ping for tool requests, Glass for completions)
  • 🍎 Native macOS integration

Getting Started

1. Run the Tool

No installation required! Use directly with npx:

npx claude-code-notify

This automatically downloads and runs the latest version from npm.

2. Enable Notification Permissions

  • Open System SettingsNotifications
  • Find and select Script Editor from the list
  • Ensure "Allow Notifications" is checked
  • Configure notification style (Banner or Alert)
  • Test with: osascript -e "display notification \"Test\" with title \"Test\""

3. Configure Claude Code Hook

  • In Claude Code, run the /hooks command
  • Select Notification from the list
  • Choose Add new hook
  • Enter npx claude-code-notify as the command
  • Save the configuration

This setup ensures you always use the latest version without manual installation.

The resulting configuration in ~/.claude/settings.json will look like:

{
  "hooks": {
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "npx claude-code-notify"
          }
        ]
      }
    ]
  }
}

For more details about hooks, see: https://docs.anthropic.com/en/docs/claude-code/hooks

Notification Types

The script provides simple, clear notifications:

  • Tool Execution Requests: When Claude asks for permission to execute commands

    • Sound: Ping
    • Message: "🔧 Tool execution pending"
  • Task Completion: When Claude completes a response

    • Sound: Glass
    • Message: "✅ Response completed"

Requirements

  • macOS (uses osascript for notifications)
  • Claude Code with hooks functionality
  • Bash shell

How It Works

  • Claude Code executes the notification script via hooks
  • Script finds the latest conversation file in ~/.claude/projects
  • Determines notification type based on message content
  • Displays native macOS notification with appropriate sound

License

MIT

Keywords

claude

FAQs

Package last updated on 02 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts