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
P

dsh-pf-stream

Pf Stream

DeepSeek Harness video perception plugin: adaptive dual-scale streaming sampling plus deterministic inspection, aligned to the DeepSeek-V4.1-Flash vision pipeline (42px superpixel grid, <=1024 tokens per image).

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

npx -y @deepseek-ai/dsh plugin --profile web add github:Weilv-D/dsh-pf-stream#fa75aff2b1c26468399da9d3678c1f82ea18cdeb
READMECompatibilityVersions

Compatibility and provenance

Pf Stream is published as dsh-pf-stream and currently resolves to version 0.2.2. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

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

Versions

0.2.2stable
11/4/2026
0.2.1stable
11/4/2026

Related plugins

Loading related plugins…

Latest
0.2.2
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
Apache-2.0
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
11/4/2026
View source ↗
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.

Experimental Voice Input Bundle@deepseek-ai/dsh-experimental-voice-input-bundleExperimental voice input with local SenseVoice; downloads its runtime on first useModlens@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.Ab Ocrdsh-ab-ocr--- description: "The out-of-tree ocr tool: recognizes a scanned PDF or image page by page, merges the pages in order only after the last one, and saves one Markdown document with the heading levels the model decided." kind: "package-reference" ---

README

dsh-pf-stream

中文 | English

DeepSeek Harness(DSH)视频感知插件。模型用一个工具即可「看」本地视频:

  • 连续事件 → 自适应流式采样。运动时按位移积分抽低 token 过程单元;停稳与顿挫波峰时定格高清焦点单元。
  • 可疑时间点 → 确定性检视。能力:元数据探测、指定时间戳抽帧、均匀切片、局部 RoI 放大复核。

全部画布对齐 DeepSeek-V4.1-Flash 视觉编码管线:42px 超像素网格,计费 r×(c+1)+2。四种形态计费均 ≤530 token,满足单图 1024 token 上限。服务端按画布原始分辨率计量。

能力路由

一个主工具 dsh-pf-stream,统一 intent.action 路由:

action引擎用途
pf_stream(默认)动态流式采样运动中抽 336² 过程单元(P);停稳/波峰定格 672² 焦点单元(F)。施密特四状态机 + 双层自适应调节(意图基准 + 内容自闭环 R1-R4)
timestamps确定性检视指定时间戳单帧/组合高清检视,支持 roi_hint 局部放大
uniform确定性检视固定步长或目标帧数均匀切片
probe确定性检视仅元数据(显示宽高/旋转/末帧 PTS/流摘要),零视觉 token

安装

1. 安装插件

  • 在 DSH 插件管理器中搜索 dsh-pf-stream,安装最新版本。
  • 或直接对智能体说「安装插件 dsh-pf-stream」,智能体经 plugin_manager 完成同一流程。

安装由宿主执行:宿主经 pnpm 安装包,读取 cordis.patch.yml 挂载插件。peer 依赖 @deepseek-ai/cordis 与 @deepseek-ai/schemastery 由宿主运行时解析;运行时直接依赖仅 pngjs,画布 PNG 编码参数固定,输出字节幂等。

2. 准备 ffmpeg 与 ffprobe

任选一种安装方式:

winget install Gyan.FFmpeg   # Windows
brew install ffmpeg          # macOS
sudo apt install ffmpeg      # Debian / Ubuntu

也可从 ffmpeg.org 下载解压,用环境变量指向 bin 目录。可执行文件定位顺序:插件配置 ffmpegPath / ffprobePath → DSH_FFMPEG_PATH / FFMPEG_PATH → DSH_FFMPEG_DIR → ~/.dsh/tools/ffmpeg/bin → ~/.dsh/bin → PATH。

3. 验证安装

安装成功后,模型侧出现工具 dsh-pf-stream。用任一本地视频探测元数据:

{ "video_path": "D:/videos/demo.mp4", "intent": { "action": "probe" } }

返回显示宽高、时长、帧率,即安装成功。

使用

流式感知(问「画面里写了什么」):

{
  "video_path": "D:/videos/demo.mp4",
  "intent": { "action": "pf_stream", "focus": "detail", "mode": "dense" }
}

定点复核(流式结果中 12.9s 处发现文字):

{
  "video_path": "D:/videos/demo.mp4",
  "intent": {
    "action": "timestamps",
    "timestamps_ms": [12900],
    "roi_hint": { "x": 0.2, "y": 0.3, "w": 0.4, "h": 0.4 }
  }
}

顶层同时接受视频检视领域常见便捷字段:start_time / end_time / timestamps / fps / interval / num_frames / crop / probe_only。入口适配器将其归一化为标准 intent 结构。

返回内容

每次调用返回一个或多个画布包:

  • PNG 画布:四形态之一(见下表)。单元间双色隔离线阻断相邻边缘特征串扰;可选超像素角标渲染单元编号。画布 PNG 同时作为图像内容块进入模型上下文(单次调用至多 maxImagesPerCall 张)。
  • 结构化元数据:packet_id、每单元 PTS、token 网格 bbox、源采样 bbox、双载体 SHA-256。
  • 时序提示行:模型可读的 P/F 单元时间轴(如 [Packet #42 | Anchor: #105 | #101(P, 12.1s, Left-Top) → …])。

会话级能力:

  • 意图跨调用持久化。
  • 流式游标续窗:同视频下次调用从上次位置继续。
  • 两级历史引用:热区最近 2 包整条带复用;冷区至多 4 个 F 锚点独立载体复用。
  • Epoch Compaction:默认 6 包窗口批量热转冷,保持多轮对话 Prefix KV-Cache 前缀稳定。

画布与计费

形态布局Token
FORM_1_STANDARD_STRIP4P + 1F,1344×672530
FORM_2_COMPACT_4P4P,672×672274
FORM_3_COMPACT_1F1F,672×672274
FORM_4_PARTIAL_STRIP1-3P + 1F,1344×672530

画布样例

FORM_1 标准条带:左半 4 个过程单元(P),右半 1 个焦点单元(F)。

FORM_1 标准条带

FORM_2 纯过程:4 个过程单元。

FORM_2 纯过程

FORM_3 单焦点:roi_hint 局部放大检视。

FORM_3 单焦点 RoI 放大

配置

配置项默认说明
renderVisualIdtrue单元左上角超像素反色角标
maxPacketsPerCall64单次调用返回包数上限
maxFramesPerCall128确定性抽帧单次目标帧数上限(frame_count 受此钳制)
maxImagesPerCall20单次调用回传图像上限(宿主单条消息图像上限 20)
maxTokensBudgetPerCall65536单次调用视觉 token 预算
maxRequestBytes56 MiB请求字节软水位(Base64 后口径)
maxColdRefs4冷区引用上限
defaultStreamWindowMs10000pts_window 缺省时窗口长度(毫秒)
streamWorkMaxEdge2048流式解码工作分辨率长边上限(定点检视恒全分辨率)
epochCompactionWindow6热转冷批量收敛窗口(包数)
meteringProfile.imageCountTiersEnabledfalse≥15 图单边 4096px 规则门控

测试

pnpm test        # boundary(纯逻辑)+ e2e(fixture 驱动),20 项边界用例
pnpm run build   # TypeScript 编译
pnpm verify:host # 宿主契约自检(Schema 形状/关键字子集/依赖边界)

发布

npm 发布由 GitHub Actions 自动执行。流程与版本策略见 docs/发布规范.md。

许可证

Apache-2.0。