Approval sound effects from the movie NiuLai: plays 「妈妈」 when user confirmation is requested, interrupts it and plays 「牛来!」 the moment the user approves; native Windows playback, zero external dependencies.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-niulai-sound
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:isheng-eqi/dsh-niulai-sound
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
牛来确认音 — DeepSeek Harness 审批音效插件,梗源国产动画电影《牛来》(导演信雨萌 + 妈妈孙丽芳两人手搓 5 年、零投资的"草台班子"神作)。
当 DSH 需要用户确认时播放「妈妈」,用户点允许的瞬间掐断「妈妈」直接播放「牛来!」——妈妈~(还没说完)牛来!!点得越快衔接越干脆。
✨ 效果
| 时机 | 音频 |
|---|---|
| 审批弹窗出现(需要确认) | 「妈妈」(原声片段) |
| 用户批准(allowed-once) | 掐断「妈妈」→「牛来!」(原声片段) |
| 用户拒绝 / 取消 | 不播放 |
音频取自《牛来》经典片段原声(抖音热门片段,122 万人在看的那条),随包内置,无需联网。
🚀 安装
# 从 GitHub
dsh plugin --profile web add github:isheng-eqi/dsh-niulai-sound
# 从 npm(发布后)
dsh plugin --profile web add dsh-niulai-sound
安装后重启 dsh web 即生效:所有会话自动加载,无需手动激活。
想先试试?
在任意会话让模型执行动态插件(cordis_define + cordis_run),或直接触发一次需要审批的操作(如升级沙箱权限写文件)即可听到效果。
🛠 实现要点
- 事件源:监听
session/event审计流中的approval/asked/approval/decided(outcome === 'allowed-once'判定批准)。为什么不用
approval/request?它是 Scoped 瀑布流事件(per-agent 作用域),普通插件 ctx 作用域不匹配时收不到;session/event是 emit 审计流,任何审批路径(文件升级、工具审批)都强制写入,通用可靠。 - 播放:Windows 原生
powershell + System.Media.SoundPlayer(wav PCM,零外部依赖)。 - 掐断:批准瞬间对正在播放的进程执行树级
terminate()(taskkill /T),声音立即中断、「牛来!」立刻接上。 - 防叠加:单实例持有当前播放句柄,新播放先掐断旧的,多审批并发不叠声。
📁 结构
dsh-niulai-sound/
├── package.json # dsh.bundle.patch 声明(静态 bundle)
├── cordis.patch.yml # 插件行 insert(id: niulai-sound)
├── lib/index.js # Host 插件(session/event 监听 + 播放)
└── assets/
├── mama.wav # 「妈妈」原声(6.2s)
└── niulai.wav # 「牛来!」原声(1.8s)
📋 Requirements
- DeepSeek Harness Web profile(
dsh web) - Windows(播放依赖 PowerShell + System.Media;macOS/Linux 可自行扩展播放实现)
🔧 疑难排查
| 现象 | 处理 |
|---|---|
| 弹窗出现但没声音 | 检查系统音量;查看 dsh web 进程输出有无 [dsh-niulai-sound] play failed:;确认在 Windows 上运行 |
| 想换自己的音频 | 设置环境变量 NLW_MAMA_WAV / NLW_NIULAI_WAV 指向 wav 文件路径(需为 PCM wav) |
| 发布前自检 | node scripts/prepack-check.js(manifest/patch/素材校验)+ node scripts/smoke.js(wav 格式与时长) |
📦 社区收录
DSH 社区生态的一部分。已收录进 awesome-dsh-plugin。
📄 License
MIT
Links
More in this category
xmanrui/dsh-im★ 3659
Connect IM bots to DeepSeek Harness via QR codes or bot credentials (9 channels: Feishu, WeChat, DingTalk, WeCom, QQ, Slack, Telegram, Discord, and WhatsApp).
shaobeichen/dsh-pocket★ 3001
Remote phone access to the DSH Web UI: scan a QR code for LAN or public (cloudflared tunnel) access with real-time sync, a mobile-adaptive layout, and a settings tab.
c1overzz/dsh-bili-scroll★ 1425
Let your DSH agent browse Bilibili on its own, read subtitles, write a daily digest, and @ you when it finds something worth your attention.
OpenPetsHQ/openpets#dsh★ 1400
Bridges DeepSeek Harness lifecycle status, errors, and approval requests to a locally running OpenPets desktop companion.
inclusionAI/Avernet#deepseek-harness-channel-bcn★ 605
Connects DeepSeek Harness to Avernet's Bot Collaboration Network over WebSocket V2, with automatic onboarding, isolated agent sessions, tool-call events, and multi-bot routing tools.
zaofan-make/dsh-qqbot★ 261
QQ official bot channel (enhanced fork of tencent-connect/dsh-qqbot): full agent chat in groups and DMs, rich media, an auto-tagged sticker library with AI image replies, join approval, mute and broadcast, scheduled wakeups, remote approvals over QQ, interactive cards, multi-account instances, extensions, member profiles, and token-saving value-scored wakeups.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.