npx claudepluginhub kmio11/cc-notificationWindows desktop notifications for Claude Code via PowerShell toast notifications
A PowerShell-based plugin that displays Claude Code notifications as Windows desktop toasts.
Integrates with Claude Code's Notification, Stop, and PermissionRequest hook events to provide native Windows notifications with click-to-focus support.
scripts/toast-notification.ps1 - PowerShell script that displays Windows notifications with fallback chainscripts/focus-handler.ps1 - Protocol handler that focuses the terminal window on notification clickscripts/register-protocol.ps1 - One-time setup to register the claude-notify:// protocolscripts/launch-hidden.vbs - VBScript wrapper to launch the focus handler without a visible window.claude-plugin/plugin.json - Claude Code plugin manifesthooks/hooks.json - Hook definitions for Notification, Stop, and PermissionRequest eventsInstall as a plugin using the Claude Code CLI:
# Add this repo as a marketplace
claude plugin marketplace add kmio11/cc-notification
# Install the plugin
claude plugin install cc-notification
The plugin automatically registers Notification, Stop, and PermissionRequest hooks — no manual configuration needed.
If you prefer manual setup, add to your Claude Code settings file (~/.claude/settings.json):
{
"hooks": {
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "powershell.exe -ExecutionPolicy Bypass -File \"/path/to/scripts/toast-notification.ps1\""
}
]
}
],
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "powershell.exe -ExecutionPolicy Bypass -File \"/path/to/scripts/toast-notification.ps1\""
}
]
}
]
}
}
Refer to the Claude Code hooks documentation for more details.
To make notifications clickable (clicking brings your terminal to the foreground), run the protocol registration script once after installation:
# If installed as a plugin, find the plugin path first:
# Default: ~/.claude/plugins/marketplaces/<marketplace>/plugins/cc-notification/scripts/
powershell.exe -ExecutionPolicy Bypass -File "path/to/scripts/register-protocol.ps1"
This registers a claude-notify:// protocol handler in your user registry (no admin required). The first time you click a notification, Windows may ask you to confirm the handler — check "Always" to skip the prompt in the future.
If the protocol is not registered, notifications still work normally — they just won't be clickable.
Input Priority: JsonInput → Stdin → Default Override Rule: Title/Message parameters force override regardless of input source
# Default notification (lowest priority)
powershell.exe -File "/path/to/toast-notification.ps1"
# Manual JSON input (highest priority)
powershell.exe -File "/path/to/toast-notification.ps1" -JsonInput '{"title":"Test","message":"JSON test"}'
# Stdin input (Claude Code hook simulation)
echo '{"hook_event_name":"Notification","message":"Hook message"}' | powershell.exe -File "/path/to/toast-notification.ps1"
# Force override examples
# Override Stop hook message
echo '{"hook_event_name":"Stop","stop_hook_active":false}' | powershell.exe -File "/path/to/toast-notification.ps1" -Message "Custom Complete Message"
# Override title only (keep parsed message)
echo '{"hook_event_name":"Notification","title":"Original","message":"Keep this"}' | powershell.exe -File "/path/to/toast-notification.ps1" -Title "My App"
The script uses a robust fallback chain to ensure reliable notification delivery:
cc-notification AppIDWhen the protocol handler is registered:
claude-notify://focus?pid=<terminal-pid> protocol URISetForegroundWindow7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.