syy-shark/dsh-music-plugin
DeepSeek 音乐插件(dsh-plugin)
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that enables DSH agents to search for, play, pause, and skip audio files stored in a user’s local music folder. Once installed, it adds a dedicated local music control panel to the right sidebar of DSH’s web interface, supporting both direct click controls and natural language commands directly from the agent. It is built with an extensible framework, so future features like third-party music platform integration can be added without rewriting the existing core logic.
Before using the plugin, you need to add all your music files to a specified library directory, which defaults to ~/Music on macOS but can be changed manually in the plugin’s configuration file. To install, you run the official DSH CLI command to add the plugin to your DSH profile, then launch DSH Web as normal to access the full feature set. You can either control playback directly through the sidebar panel or send natural language requests to the agent, like asking it to play a specific track or skip to the next song in the queue.
The plugin uses macOS’s built-in afplay utility by default for all audio playback, but it will automatically use mpv if you already have it installed on your system for more stable FLAC format support. Other DSH plugins can access the plugin’s full playback functionality by adding music to their injection list, then calling the exposed play, pause, search, and skip methods on the context object. This plugin is released under the open source MIT license, and currently does not support lyrics, progress bar dragging, or third-party streaming integration, only core playback control features.
这是一个专为DeepSeek Harness(DSH)开发的原生插件,核心功能是让DSH中的Agent能够搜索、播放和控制用户本地文件夹中的音乐文件。插件安装后会在DSH的Web端右侧生成「本地音乐」控制面板,支持点击操作和Agent自然语言指令控制两种交互方式,关闭插件后播放会自动停止。它采用可扩展架构设计,后续接入其他音乐平台都可基于现有框架开发,无需重构整体逻辑。
使用该插件前,用户需要先将自己的音乐文件放入指定的音乐文件夹,默认路径为Mac系统的~/Music目录,也可在配置中修改路径。安装时通过DSH的插件命令将插件添加到DSH配置中,后续启动DSH Web即可使用,开发阶段也可通过临时挂载源码的方式调试。用户既可以在网页面板点击切换播放,也可以直接和Agent对话,下达搜索、播放、暂停、切歌等指令。
该插件基于系统自带的afplay播放音乐,如果用户本地安装了mpv播放器,插件会优先使用mpv以获得更好的FLAC格式支持。插件支持其他DSH插件调用其音乐能力,开发者只需注入music依赖即可调用播放控制接口。该插件采用MIT许可协议,目前暂未支持网易云音乐、歌词显示、进度条拖拽等功能,仅实现基础播放控制能力。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-music-plugin(syy-shark/dsh-music-plugin)
仓库:https://github.com/syy-shark/dsh-music-plugin
本站详情页:https://www.yhbd.top/plugins/syy-shark-dsh-music-plugin/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-08-14 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:syy-shark/dsh-music-plugin
把 syy-shark/dsh-music-plugin 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DSH 音乐插件
给 DeepSeek Harness 加一个音乐开关:Agent 能搜、播、暂停你电脑里的歌。关掉插件,声音也会停。
今天接的是本机文件夹。以后要接网易云或加播放器界面,都走这个开关,不用推倒重来。
怎么用
- 把歌放进
~/Music(就是 Mac「音乐」文件夹)。 - 装一次(写进 DSH 配置,以后不用再贴路径):
npx @deepseek-ai/dsh plugin --profile web add /Users/shark/项目/DSH-music-plugin
- 以后直接启动:
npx @deepseek-ai/dsh web
打开 http://127.0.0.1:3080。右侧会出现「本地音乐」面板:能看见歌单,点播放 / 暂停 / 下一首。也可以继续跟 Agent 说「播放 xxx」,两边是同一套播放。
拔掉:
npx @deepseek-ai/dsh plugin --profile web remove dsh-music-plugin
开发时还可以用 --patch 临时挂源码,不写进配置。
能听到声音就算成了。找到好几首时,Agent 会列出路径,你让它按准确路径再播一次。
它能干什么
| 你说的 | Agent 会调 |
|---|---|
| 找一下某首歌 | music_search |
| 播放 xxx | music_play |
| 暂停 / 继续 | music_pause / music_resume |
| 下一首 | music_skip |
| 现在在播什么 | music_status |
正在播的时候再点播,会排进队列,不会把当前这首掐掉。
出声用 Mac 自带的 afplay。电脑里有 mpv 的话会优先用它(flac 更稳)。
配置
都在 cordis.yml 里,改完重新加载即可:
libraryDir:歌在哪个文件夹,默认~/Musicbackend:auto/afplay/mpvextensions:当音乐文件的后缀
给别的插件用
别的 DSH 插件可以 inject: ['music'],然后调 ctx.music.play / pause / search。不用自己去扫文件夹、也不用管 afplay。
这次没做
网易云、进度条拖拽、歌词。先做到打开网页就能看见歌、点一下能出声。
Tencent/BrowserSkill
YaoApp/yao
anbeime/skill
Jesseovo/last30days-skill-cn
bowenliang123/dsh-context
platonai/Browser4
liustack/modsearch