Auto-discovered marketplace from oreo992/claude-notification
npx claudepluginhub oreo992/claude-notificationWindows 桌面通知 - 任务完成时发送通知
macOS/Linux 桌面通知 - 任务完成时发送通知
Share bugs, ideas, or general feedback.
桌面通知插件,在以下场景自动发送通知(仅当终端在后台时触发):
支持多种通知方式:
# 1. 在 Claude Code 输入框中添加市场
/plugin marketplace add https://github.com/Oreo992/claude-notification
# 2. 安装插件(根据你的系统选择)
/plugin install windows@claude-notification # Windows
/plugin install unix@claude-notification # macOS/Linux
注意: 安装完成后需要重启 Claude Code 才能生效。
| 插件 | 平台 | 说明 |
|---|---|---|
windows | Windows 10/11 | PowerShell 实现,无需额外依赖 |
unix | macOS/Linux | macOS 使用 osascript,Linux 使用 notify-send |
如果您已经安装过此插件,请使用以下命令更新插件版本
/plugin marketplace update claude-notification
当提示更新完毕,重启Claude Code。
此插件支持自定义配置和对应的Skills。 首次使用建议运行
/notification-config
跟随Claude,完成通知插件的配置
后续你也可以使用此Skills,对通知配置进行更改,如:
AI 会自动创建配置文件 .claude/claude-notification.local.md,并询问是否要在项目的 CLAUDE.md 中添加通知功能,让 AI 能够在完成任务后主动发送通知。
这通常会在初始化时,Claude会主动询问您是否配置,如果未询问,您也可以通过
/notification-config 给你自己加上通知的功能,到全局的CLAUDE.md中
支持的通知场景:
示例:
收到的提示如下:
详细配置指南也可以查看 NOTIFICATION_SETUP.md。
打开https://xtuis.cn/,扫码关注公众号,关注后会自动获得一个Token。
然后在Claude Code 对话框中输入 /notification-config 这个是我的微信提醒的Token,帮我配置好并测试通过
随后即可收到信息,也可以赋予CC主动提醒的能力。
如图:
如果你想手动配置,在项目根目录创建 .claude/claude-notification.local.md:
---
bark_url: "https://api.day.app/your-key"
wechat_token: "your-wechat-token"
wechat_hook_enabled: true
bark_hook_enabled: true
system_notification_enabled: true
always_notify: false
---
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
bark_url | string | 空 | Bark 推送地址 |
wechat_token | string | 空 | 微信推送 Token |
wechat_hook_enabled | boolean | true | 是否启用微信 Hook 自动触发(需先配置 token) |
bark_hook_enabled | boolean | true | 是否启用 Bark Hook 自动触发(需先配置 url) |
system_notification_enabled | boolean | true | 是否启用系统通知 |
always_notify | boolean | false | 设为 true 则始终通知,即使终端在前台 |
(https://xtuis.cn/) 是一个微信推送服务,可以将通知推送到微信,方便在手机上接收。
配置完成后,Token 会保存在 .claude/claude-notification.local.md 文件中:
配置 Token 后,插件会在以下场景自动发送微信通知:
无需额外配置,只要 Token 存在就会自动触发。
AI 可以在完成重要任务时主动发送微信通知。插件提供了完整的微信推送脚本,支持:
示例场景:
Bark 是一个 iOS 推送服务,优势是通知会持久保留在通知中心。
https://api.day.app/your-key)AI 可以在完成重要任务时主动发送通知。插件提供了完整的 Bark 推送脚本,支持:
示例场景:
libnotifysudo apt install libnotify-bin