| Crates.io | ccn |
| lib.rs | ccn |
| version | 0.1.1 |
| created_at | 2025-07-10 06:40:27.999987+00 |
| updated_at | 2025-07-10 06:48:26.281717+00 |
| description | Claude Code Notifier - Send macOS notifications with editor jump functionality for Claude Code hooks |
| homepage | https://github.com/naoto0822/ccn |
| repository | https://github.com/naoto0822/ccn |
| max_upload_size | |
| id | 1745962 |
| size | 24,458 |
⚠️ Experimental - This tool is in early development and may have bugs or breaking changes.
Claude Code Notifier is a command-line tool that integrates with Claude Code hooks to send macOS notifications with editor jump functionality.
Platform Support: macOS only
Editor Support: VS Code and Cursor only
brew install terminal-notifier
cargo install ccn
The tool is designed to be used as a Claude Code hook that receives JSON input via stdin:
echo '{"session_id":"123","transcript_path":"/path","hook_event_name":"Stop"}' | ccn
-t, --editor-type <EDITOR_TYPE>: Specify editor type (vscode or cursor). Default: vscode# Use with Cursor
echo '{"session_id":"123","transcript_path":"/path","hook_event_name":"Notification","message":"Hello"}' | ccn -t cursor
# Use with VS Code (default)
echo '{"session_id":"123","transcript_path":"/path","hook_event_name":"Stop"}' | ccn
The tool handles different hook event types:
"Notification": Shows the provided message or event name"Stop": Shows "Completed"Configure Claude Code hooks in your settings to use ccn:
{
"hooks": {
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "ccn -t cursor"
}
]
}
],
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "ccn -t cursor"
}
]
}
]
}
}