Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
notification, system, utility, cross-platform, node-notifier-cli, notify, toast, alert
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
基于 Node.js 的上下文感知跨平台系统通知插件,直接调用系统原生通知工具,提供零依赖的高性能通知体验。
| 操作系统 | 通知实现 | 状态 | 命令 |
|---|---|---|---|
| macOS | osascript | ✅ 原生 | osascript -e |
| Linux | notify-send | ✅ 原生 | notify-send |
| Windows | PowerShell | ✅ 原生 | powershell.exe |
# 在 Claude Code 中运行
# 安装marketplace
## 从Github安装marketplace
/plugin marketplace add startvibe/startvibe-cc-marketplace
## 或从Gitee安装marketplace(国内无法访问Github可以使用此源)
/plugin marketplace add https://gitee.com/startvibe/startvibe-cc-marketplace.git
# 安装通知插件
/plugin install notify@startvibe-cc-marketplace
# 启用通知插件
/plugin enable notify@startvibe-cc-marketplace
# 验证安装
/plugin list
安装后,插件将自动工作:
Stop 事件:
标题: Claude 响应完成
消息: my-awesome-project - Claude 已完成您的请求处理
Notification 事件:
标题: Claude 需要注意
消息: my-awesome-project - Claude 需要您的权限来使用 Bash
插件会自动从 Claude Code Hook 输入中提取以下信息:
session_id - Claude 会话唯一标识符cwd - 当前工作目录(用于提取项目名称)hook_event_name - Hook 事件类型(Stop、Notification 等)message - Notification 事件的原始消息内容// 项目名称提取
const projectName = cwd.split(/[\\/]/).pop() || 'Unknown';
// 事件类型识别
if (hook_event_name === 'Stop') {
title = 'Claude 响应完成';
message = `${projectName} - Claude 已完成您的请求处理`;
} else if (hook_event_name === 'Notification') {
title = 'Claude 需要注意';
message = `${projectName} - ${message || 'Claude 需要您的确认或输入'}`;
}
插件使用 config/notify-config.json 配置文件来管理通知内容:
{
"version": "2.0.0",
"events": {
"Stop": {
"enabled": true,
"title": "Claude 响应完成",
"messageTemplate": "{{projectName}} - Claude 已完成您的请求处理",
"sound": true,
"includeProjectInfo": true
},
"Notification": {
"enabled": true,
"title": "Claude 需要注意",
"messageTemplate": "{{projectName}} - {{message}}",
"fallbackMessage": "{{projectName}} - Claude 需要您的确认或输入",
"sound": true,
"includeProjectInfo": true
}
},
"display": {
"includeSessionInfo": false,
"includePermissionMode": false,
"maxMessageLength": 200
},
"notification": {
"preferNativeWindows": true,
"preferNativeMacOS": true,
"timeout": {
"processCleanup": 6000,
"hookInput": 5000
}
}
}
{{projectName}} - 项目名称(从当前目录路径提取){{currentDir}} - 当前目录路径{{sessionId}} - 会话ID(前8位){{message}} - Notification 事件的原始消息{{eventName}} - Hook 事件名称# 测试 Stop 事件
echo '{"hook_event_name":"Stop","cwd":"/path/to/my-project","session_id":"test123"}' | node plugins/notify/scripts/notify-hook.js
# 测试 Notification 事件
echo '{"hook_event_name":"Notification","cwd":"/path/to/my-project","message":"需要权限使用 Bash","session_id":"test123"}' | node plugins/notify/scripts/notify-hook.js
测试不同平台的原生通知:
# macOS 测试
osascript -e 'display notification "测试消息" with title "测试标题"'
# Linux 测试
notify-send "测试标题" "测试消息"
# Windows 测试
powershell -Command "Add-Type -AssemblyName System.Windows.Forms; $n = New-Object System.Windows.Forms.NotifyIcon; $n.BalloonTipTitle = '测试标题'; $n.BalloonTipText = '测试消息'; $n.Visible = \$true; $n.ShowBalloonTip(3000); $n.Dispose()"
检查插件是否正确安装
/plugin list
验证系统通知功能
# macOS
osascript -e 'display notification "测试" with title "测试"'
# Linux
notify-send "测试" "测试"
# Windows
powershell -Command "Add-Type -AssemblyName System.Windows.Forms; $n = New-Object System.Windows.Forms.NotifyIcon; $n.BalloonTipTitle = '测试'; $n.BalloonTipText = '测试'; $n.Visible = \$true; $n.ShowBalloonTip(3000); $n.Dispose()"
检查系统通知权限
检查 Node.js 版本
node --version # 需要 >= 14.0.0
验证脚本语法
node -c plugins/notify/scripts/notify-hook.js
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub startvibe/startvibe-cc-marketplace --plugin notifyPlugins from other owners that cover similar ground