DeepSeek Harness 插件

dsh-ncm-plugin

DeepSeek Harness plugin wrapping the NetEase Cloud Music CLI (ncm-cli).(英文原文)

跳到安装方式

来源信息

GitHub 仓库
king-bcolor/dsh-ncm-plugin
最近更新
2026年8月16日
分类
趣味扩展
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/king-bcolor/dsh-ncm-plugin
插件名:dsh-ncm-plugin
作者:king-bcolor

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览
README 语言

dsh-ncm-plugin

> 中文文档README.zh-CN.md

A DeepSeek Harness plugin that wraps the ncm-cli NetEase Cloud Music command-line tool as model-callable tools.

What it is

dsh-ncm-plugin exposes NetEase Cloud Music CLI capabilities to DSH agents: account status, playlists, songs, lyrics, playable URLs, daily recommendations, play records, search, and playlist management/cleanup — all through structured, JSON-backed tools.

Features

  • Account: login status, current user, version.
  • Playlists: list/show/create/add/remove/rename/tags/desc/delete.
  • Playlist tidy: inspect, filter, diff, apply, move, duplicates.
  • Songs: metadata, lyrics, playable URL resolution, desktop playback.
  • Discovery: daily recommendations, weekly/all play records.
  • Search: suggestions, songs, playlists.
  • Safe by default: destructive writes require explicit confirmation.
  • JSON-first output for agents, readable text rendering for the UI.
  • Built-in Web Settings panel: every tool is exposed as an auto-generated

form (account, playlists, tidy, search, song/lyric/URL, recommendations).

Use cases

  • Ask the agent "what's in my playlist 490155105?"
  • Search for songs and add them to a playlist.
  • Clean up duplicate songs in a large playlist.
  • Look up lyrics and playable URLs.
  • Check daily recommendations and play history.

See [docs/用例目录/README.md](./docs/用例目录/README.md) for the full command/use-case/parameter catalog (Chinese).

Installation

Preconditions

  • Node.js 22+, dsh CLI installed (npx @deepseek-ai/dsh web).
  • No preinstalled ncm CLI is required. The plugin auto-downloads the

platform release binary into $DSH_HOME/bin on first tool run, or when you click Install/update ncm in the UI. Download order: ghfast.topgh-proxy.com → GitHub official, so mainland-China networks use mirrors first. Playwright driver downloads use npmmirror.com by default.

Install from GitHub

Install into the web profile so the browser UI is available:

dsh plugin --profile web add github:king-bcolor/dsh-ncm-plugin
# This package has no prepare/build step, so no pnpm build permission is needed.

For headless/agent-only use, install into a headless profile the same way.

Install from local checkout

git clone https://github.com/king-bcolor/dsh-ncm-plugin.git
cd dsh-ncm-plugin
dsh plugin --profile web add .

Usage

Start the browser UI:

dsh web

The first tool call downloads ncm automatically; you can also open Settings → NetEase Cloud Music and click Install/update ncm, then Log in to NetEase Cloud Music. Open Settings → NetEase Cloud Music. The panel exposes every ncm tool as a form: account status, playlist browse/manage, tidy, search, song/lyric/URL, recommendations, and records. Results are shown as readable text with a raw JSON toggle.

You can still ask the agent in the same web session:

# example prompts
Use ncm_me to check my NetEase Cloud Music login.
Search NetEase Cloud Music for the song "晴天" and show the first 5 results.

Configuration

# profile cordis.patch.yml or plugin row config
- id: ncm
  name: dsh-ncm-plugin
  config:
    ncmBin: ncm
    ncmInstallDir: $DSH_HOME/bin
    configDir: $DSH_HOME/ncm-config
    autoInstall: true
    ncmDownloadBaseUrl: https://ghfast.top/https://github.com/Davied-H/ncm-cli/releases/latest/download
    playwrightDownloadHost: https://npmmirror.com/mirrors/playwright
    timeoutMs: 30000
    confirmWrites: true

Development

TDD is mandatory for this project. The workspace is plain ESM JavaScript with node:test; there is no build step:

npm test          # red first, then implement until green

Local checkout quick start (no system ncm required):

./setup.sh
./start.sh

This creates a writable .dsh-home, bootstraps ncm into .dsh-home/bin, installs the plugin into the web profile, and starts the UI.

License

MIT