cctoast
v0.8.0
Published
Native OS notifications for Claude Code events
Downloads
84
Maintainers
Readme
cctoast
Native OS notifications for Claude Code events. Get notified when tasks complete, questions arise, subagents finish, or errors occur.
Supports macOS, Windows, Linux, and WSL.
Install
npm install -g cctoastSetup
cctoast installThis automatically adds hooks to ~/.claude/settings.json. Existing hooks are preserved.
To remove hooks:
cctoast uninstallAdd the following hooks to your ~/.claude/settings.json:
{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "npx cctoast notify --event stop",
"timeout": 10
}
]
}
],
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "npx cctoast notify --event notification",
"timeout": 10
}
]
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "npx cctoast notify --event subagentStop",
"timeout": 10
}
]
}
],
"PostToolUseFailure": [
{
"hooks": [
{
"type": "command",
"command": "npx cctoast notify --event postToolUseFailure",
"timeout": 10
}
]
}
]
}
}If you already have hooks in your settings.json, merge the entries above into the existing
hooksobject.
Events
| Event | When |
|---|---|
| stop | Claude finishes a task |
| notification | Claude has a question or needs input |
| subagentStop | A subagent completes |
| postToolUseFailure | A tool (Bash, Edit, etc.) fails |
Configuration
Settings are stored at ~/.cctoast/config.json.
View current config
cctoast config --showChange language
# Korean
cctoast config --language ko
# English (default)
cctoast config --language enToggle sound
cctoast config --sound off
cctoast config --sound onToggle events
cctoast config --event stop off
cctoast config --event notification onDefault config
{
"version": 1,
"events": {
"stop": true,
"notification": true,
"subagentStop": false,
"postToolUseFailure": false
},
"sound": true,
"language": "en"
}Test
Send a test notification to verify your installation:
cctoast testPlatform Support
| Platform | Notification Method |
|---|---|
| macOS | Notification Center (via node-notifier) |
| Windows | Toast Notification (via node-notifier) |
| Linux | notify-send (via node-notifier) |
| WSL | Windows Toast via powershell.exe (falls back to beep) |
License
MIT
