DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@svenyu/dsvu

Dsvu

dsvu (DeepSeek-Powered Video Understanding), a low-cost video understanding tool: Bilibili links/BV/local videos → information layer (ASR + scenes + object trajectories + YOLO) → summaries + Q&A. Based on same-source instant viewing and answering with deepseek-v4-flash-vision-exp + dense grid frame

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add @svenyu/dsvu@0.6.9
READMECompatibilityVersions

Description

dsvu (DeepSeek-Powered Video Understanding), a low-cost video understanding tool: Bilibili links/BV/local videos → information layer (ASR + scenes + object trajectories + YOLO) → summaries + Q&A. Based on same-source instant viewing and answering with deepseek-v4-flash-vision-exp + dense grid frame sampling. Question-driven dynamic routing across levels (L0/L1/L2), semantic-layer reuse, and budget caps. Uses a Python engine: the core layer requires faster-whisper / opencv / yt-dlp (approximately 200–300MB); the optional semantic layer requires an additional approximately 2GB.

Compatibility and provenance

Dsvu is published as @svenyu/dsvu and currently resolves to version 0.6.9. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
11/4/2026

Versions

0.6.9stable
9/29/2026
0.6.7stable
8/23/2026
0.6.6stable
8/23/2026
Show 3 more versionsCollapse versions
0.6.5stable
8/22/2026
0.6.4stable
8/22/2026
0.6.3stable
8/22/2026

Related plugins

Loading related plugins…

Latest
0.6.9
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
526.3 kB
Files
34
Surface
any
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
45
Last push
8/24/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in vision-media.

Modlens@liustack/modlensPlug-in vision for text-only LLMs, powered by the free Antigravity CLIImage Gendsh-image-genBring ChatGPT-like image generation to DeepSeek Harness — Gemini, OpenAI, Seedream, DashScope, local ComfyUI & more.Tool Describe Image@linxin666/dsh-tool-describe-imageModel-facing describe_image tool for the dsh web GUI: gives a text-only model image understanding by asking a vision-language model at an OpenAI-compatible endpoint to describe one image (local path, http(s) URL, or attachment reference). Hot-pluggable — Video Storyboarddsh-video-storyboardTurn a video into storyboard images you can cite: one frame per shot, cell size follows cut density (1/1 … 1/8), row-packed into as few images as possible, with a timestamped index the model can quote and a tier map it can override.

README

dsvu

低成本视频理解插件:给 dsh agent 注册 video_understand 工具——B站链接 / BV 号 / 本地视频 → AVIS 信息层(ASR 转写 + 场景结构 + 运动对象轨迹 + YOLO 语义)→ 摘要+问答。采用 Python 引擎:核心层需 faster-whisper / opencv / yt-dlp(约 200-300MB),可选语义层另需约 2GB 的 torch / transformers / ultralytics,内置 doctor --fix 一键建 venv 并装齐两者。

dsvu 与 dsh-video-understand 的差异(v0.6.0,fork 自 0.5.2):

  • DeepSeek 视觉模型:DEEPSEEK_API_KEY 配对时,视觉与主模型用 deepseek-v4-flash-vision-exp(2026-08-21 上线,单图≤384 token,与 V4-Flash 同价)
  • 同源即看即答:回答轮把抽帧画面与 ASR 信息层同一条消息直送视觉模型,消除"VLM 转述→文本→主 LLM"两段式损耗(DSVU_DIRECT_VISION=0 关闭)
  • L2 grid 密集拼图:一窗密集帧拼成一张大图单次 VLM(≤384 token),30s 时间线证据链成本≈看一帧(visual_level.py l2 ... --grid 6x6)
  • 信息层前缀缓存 + 结果缓存:同视频追问缓存命中 96.6%,边际成本降至 ~1/5;同参数二次调用秒回
  • 模型方案收敛:默认全程 DeepSeek(主模型=视觉模型同源);MiMo 组合降为回退选项(见"模型方案对比")
  • 包名/命令/缓存独立:dsvu / npx dsvu / ~/.cache/dsvu

安装

# npm 安装
npm install @svenyu/dsvu

# 或 dsh plugin add @svenyu/dsvu

装完即用:首次调用 video_understand 时自动创建插件本地隔离环境(.venv)并安装核心依赖(优先 uv,回退 venv+pip 清华镜像)——无需手动执行任何命令,不污染系统 Python。

引擎已内含,无需额外克隆外部仓库。

零二进制:仓库与 npm 包内不含任何模型权重。YOLO 语义标签用的 yolov8n.pt(约 6 MiB)在首次真正需要时才会下载到 ~/.cache/dsvu/models/,并做 sha256 校验(两个源各自独立校验,见 engine/model_cache.py)。离线环境可用 DSVU_YOLO_MODEL=<本地路径> 指定已有副本,或 DSVU_NO_DOWNLOAD=1 静默降级(只丢 YOLO 语义标签,不影响 ASR / 场景 / 轨迹主流程)。

环境自检

npx dsvu doctor        # 逐项检测 + 给出修复命令
npx dsvu doctor --fix  # 一键自动修复(建环境 + 装依赖 + 预取模型)

前置条件仅两个:ffmpeg(macOS brew install ffmpeg / Ubuntu sudo apt install ffmpeg)和一个 LLM API key(见下表)。语义层依赖(torch/CLIP/YOLO,约 2GB)为可选,仅建完整语义层时再装:pip install -r engine/requirements-layer.txt。

⚠️ 数据流披露

级别数据流向说明
L0(默认)完全本地ASR + 场景分类 + 运动检测,不上传任何数据
L1DeepSeek/MiMo API视频帧发送至 VLM 服务器进行视觉分析(DeepSeek key → deepseek-v4-flash-vision-exp;MiMo key → mimo-v2.5)
L2DeepSeek/MiMo API视频帧发送至 VLM 服务器进行视觉分析
  • L0 级别(默认)仅使用本地 ASR + 场景分类 + 运动检测,不涉及云服务
  • L1/L2 级别会将视频帧(JPEG 编码)发送至 VLM API 进行视觉理解(DeepSeek 时含回答轮的"即看即答"直看帧)
  • 帧数据仅用于单次 VLM 推理,不会被存储或用于训练

环境变量

变量必需说明
DEEPSEEK_API_KEY✅*默认推荐:只设这一个即可——主模型/定位器/视觉/回答轮统一用 deepseek-v4-flash-vision-exp(同源即看即答)
LLM_API_KEY❌备选(回退):设小米/自定义 key 时按 LLM_API_URL/LLM_MODEL 走对应模型(如 mimo-v2.5)
LLM_API_URL❌自定义 API endpoint(默认 https://api.xiaomimimo.com/v1/chat/completions,仅 LLM_API_KEY 模式用)
LLM_MODEL❌自定义模型名(仅 LLM_API_KEY 模式用)
VISION_MODEL❌视觉模型名(默认 deepseek-v4-flash-vision-exp,DeepSeek key 配对时用)
VLM_DETAIL❌视觉图片 detail 档位(low/high/original/auto,默认 high)
DSVU_DIRECT_VISION❌同源即看即答开关(默认 1 开;0 退回"VLM 描述→文本"旧链路)
DSVU_VISUAL_GRID❌L2 密集拼图开关(默认 1 开;0 用独立帧逐帧发,读小字更保真)
DSVU_WAIT_OFFPEAK❌峰时自动等谷时再跑(默认关;批量任务设 1 省钱,DeepSeek 工作日谷时半价、周末全天低价)
VIDEO_UNDERSTAND_PYTHON❌Python 解释器路径(自动检测有依赖的 Python)
BILI_DOWNLOAD_SCRIPT❌bilibili-downloader 脚本路径(下载 B站视频用)

* 未设置显式 key 时自动读 ~/.dsh/.credentials.yaml,DeepSeek 优先(主模型=视觉模型,同源)。一个 key 搞定。 仅 DeepSeek 不可用时才走备选:export LLM_API_KEY=<小米key> → 全程 mimo-v2.5(成本相近但质量低 ~0.9 分,见"模型方案对比")。

DSH 兼容性与权限

宿主兼容性:声明支持 dsh >= 0.1.0-rc.8 <0.3.0(见 package.json dsh.compatibility)。已在 dsh 0.1.5-rc.1 与 dsh 0.2.0-rc.2 两个版本完成一次性 Profile(E3 隔离环境)安装 / 启动 / 卸载验收,证据见 docs/dsh-compat-evidence.md。未列出的版本不代表不可用,仅表示未测。

权限披露(对应 DSH STORE 权限信号,均为诚实声明):

信号实际行为
files读写目标视频文件、插件本地 .venv 与 ~/.cache/dsvu 缓存;不触碰 Profile 配置外的其他用户目录
networkB站视频下载(yt-dlp)与 DeepSeek API 视听分析请求;均由用户显式触发,不向其他端点发送数据
commands按需 spawn 子进程:python3(引擎)、ffmpeg(抽帧/转码)、yt-dlp(B站下载)、pip/uv(建 venv 装依赖)
credentials只读环境变量 DEEPSEEK_API_KEY(及 DSVU_* 可选项)与 ~/.dsh/.credentials.yaml;仅在进程内使用,不落盘、不上传到 DeepSeek API 以外的端点
nativeOrExecutableArtifacts内含 Python 引擎源码(engine/);首次调用创建插件本地 venv 并安装 faster-whisper/opencv/yt-dlp;仓库内无预编译二进制、无可执行位文件

外部服务:DeepSeek API(L1/L2 视觉与问答,api.deepseek.com);B站视频下载(yt-dlp,公网);pip 镜像(仅首次建 venv)。L0(默认)完全本地。

关于 DSH STORE 的自动收录状态:上游 automaticApproval.permissionSignals 要求 files / network / commands / credentials / protectedDsh / nativeOrExecutableArtifacts 全部为 false 才可能自动生成 source-verified 条目。本插件要读 API key、要 spawn Python 引擎,credentials 与 commands 属于功能性必需、无法在不砍掉功能的前提下消除,因此自动通道对本插件关闭——这不是缺陷,而是上游为高权限插件预留的 user-reviewed(守卫通道)与本插件的定位不匹配。仓库侧已把可消除的信号(nativeOrExecutableArtifacts)清零,并保证权限声明与代码行为一致。

失败边界:卸载即完整回滚——cordis patch 只插入 video-understand 一行,dsh plugin remove 后 dump-config 无残留条目(已验证)。引擎依赖缺失时工具报错并提示 dsvu doctor --fix,不影响宿主其他插件;API key 缺失时 L1/L2 自动降级 L0 或显式报错。

工具

video_understand(target, questions?, noDownload?, level?, window?)

参数类型说明
targetstringB站 URL / BV 号 / 本地视频绝对路径
questionsstring[]可选,自定义问题(默认 3 问)
noDownloadboolean本地文件置 true
levelstringl0(默认) / l1(+3-5帧VLM视觉摘要) / l2(+时间窗密集帧证据)
windowstringL2 时间窗,如 10-30 或秒数(auto=轨迹最活跃30s)
budgetCnynumber单次问题预算上限(元),视觉成本估算超预算自动降级(拦截 L2 用 L0/L1 回答)

返回 JSON:video / duration_s / token_compression_pct / cost_cny / answers[]。

结构

dsvu/
├── package.json
├── cordis.patch.yml
├── dsh/
│   └── index.js          # host 端:注册 video_understand 工具
├── engine/               # Python 引擎(核心层 + 可选语义层依赖)
│   ├── understand_video.py
│   ├── avis.py
│   ├── visual_level.py
│   ├── frame_prep.py
│   └── livestream-highlight/
│       └── asr.py
└── skills/
    └── video-understand/SKILL.md

模型方案对比(2026-08-22 实测:3 视频 × 10 题)

方案配置质量(盲评 1-5)成本(3 视频,谷时)耗时
全程 DSV(推荐)deepseek-v4-flash-vision-exp 主模型+视觉4.770.089 元209s
纯 mimomimo-v2.5 主模型+视觉3.830.074 元1310s
mimo+qwenmimo 主模型 + qwen3-vl-flash 视觉~3.8(估算)~0.09 元(估算)~1000s+

结论:成本同一量级(0.07-0.09 元),全程 DSV 精度最高(+0.9 分)、速度最快(快 6.3 倍)。 额外优势:单模型简化(无双模型维护);信息层前缀缓存命中 96.6% → 同视频追问边际成本降至 ~1/5;谷时(工作日非 9-12/14-18,以及周末全天)再半价。 因此模型方案收敛为全程 DSV;MiMo 组合保留为回退(exp 模型不可用时的保险丝),不参与默认与基准。详见 docs/blog-dsvu-vs-mimo-对比实验-2026-08-22.md。

分级实测(2026-08)

层级内容数据流向成本(估算*)
L0 信息层ASR+场景+轨迹+YOLO → 摘要/问答本地仅 LLM 文本成本
L1 视觉级3-5 帧 VLM → 颜色/姿态/衣着DeepSeek API+数帧 VLM 成本
L2 证据级时间窗密集帧(可 grid 拼图)→ 时间线DeepSeek API按窗长(grid=单图)

* 成本按 engine/pricing.py 官方价目 + 峰谷时段核算(可配置输入),实际随厂商定价变化。详见 docs/blog-视频理解性价比实验(方法 + 实测)。

实测:电影解说 L1 补出「白色立领衬衫/神情凝重/暗色调诊室」(L0 完全给不出);舞蹈 L2 逐帧「头部转 15-20°→45°、口型开口→闭合→微笑」。

已知边界

  • 短视频快剪/变身合集(非主流):3-5 秒高速切换 + BGM 无语音 + 角色细节密集,模型抽帧易漏、识别不全(2026-08-22 实测 3:21 变身混剪识别约 5/8)。主流场景(解说/教程/直播/长片段纯视觉)不受影响,实测质量 4.5-4.9/5。

设计背景

本插件的核心目标是低成本视频理解:用信息层代替逐帧像素喂 LLM,单视频 LLM 调用仅需几千 token(具体成本取决于所选模型定价,见上)。

  • LLM 选型:默认全程 DeepSeek(deepseek-v4-flash-vision-exp)——主模型与视觉同源,单模型简化 + 前缀缓存,性价比与精度最优;MiMo 保留为回退(见"模型方案对比")
  • 视觉级(L1/L2):DeepSeek 原生多模态,同源即看即答(帧图直进回答轮)+ grid 密集拼图(单图≤384 token);L0 仍可纯本地

原理

引擎把视频压缩成信息层(ASR 转写 + 场景结构 + 运动对象轨迹 + YOLO 语义,约 1k token)再喂 LLM;同一视频重复理解时信息层缓存复用(内容哈希,二次提问跳过 ASR)。成本与 token 对比的具体测量见 docs/blog-视频理解性价比实验。

License

MIT