DSH Plugins
返回列表
🖥️

dsh-music-tui

客户端 更新于 2026.09.01

在终端中运行以下命令:

dsh plugin install Nagi-ovo/dsh-music-tui

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在终端中执行 dsh plugin install Nagi-ovo/dsh-music-tui 即可安装该插件,源码仓库为 https://github.com/Nagi-ovo/dsh-music-tui 。

插件介绍

Writing code or running long sessions inside dsh-TUI often means your music player is open in a separate terminal window. Switching focus to skip a track or glance at the progress bar breaks flow. dsh-music-tui pulls that control surface right into the TUI you are already using: type /music and a compact music bar appears above the prompt, letting you play, pause, skip, and seek without ever leaving the keyboard.

The music bar is information-dense by design. It shows a small cover image, track title, artist, live progress, and an adaptive audio spectrum that scales from 12 to 48 bins depending on terminal width. Four spectrum styles (blocks, led, braille, shade) are built in, and you can follow whatever YesPlayMusic already has set. Terminals with Kitty graphics protocol render smooth true-image covers; everywhere else the plugin automatically falls back to half-block character thumbnails of the same dimensions with zero extra configuration. In fullscreen mode the progress bar is clickable and drag-to-preview, committing a single seek on release; inline mode uses /music seek 90.5 for the same job.

The plugin talks exclusively through YesPlayMusic's public ypm CLI. It never opens a private Unix socket, never modifies DeepSeek Harness, dsh-TUI, or the player itself, and never starts or stops a player instance on your behalf. Cover downloads are restricted to HTTPS sources, capped at 256 KiB and 1024 by 1024 pixels, and validated by file magic. State polling has hard timeouts, bounded backoff on failure, and the bar prompts a reconnect rather than showing stale data. If the host TUI lacks a rich status-view API, the plugin degrades gracefully to one-shot /music detail output with playback controls still available, without any background polling.

If you spend long stretches in the terminal, run YesPlayMusic alongside your work, and want music control one keystroke away without breaking your workflow, this is the missing bridge between your DSH session and the player already spinning up the beat.

使用场景

  • 在 dsh-TUI 长会话中用 /music toggle 切歌,无需切出终端窗口
  • 边写代码边听歌,音乐条实时显示进度与自适应频谱
  • 播放器离线后音乐条提示重启,状态恢复后自动重连续播

适合人员

  • 在终端里长时间工作且需要音乐陪伴的开发者
  • 使用 YesPlayMusic TUI 并希望集中管理播放器的用户
  • 追求纯键盘操作、拒绝 GUI 依赖的极简终端用户