dshbase

插件目录 / UI & Skins / dsh-pip

dsh-pip

已验证 · 实测可装 extension-hunter

✓ 持续维护 基于 2 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
—语言
2026-08-14最近推送
跨平台平台

功能简介

Detach the DeepSeek Harness Web GUI into a Document Picture-in-Picture window (dsh bundle plugin)

✅
我们的评价
可用 — 实测通过,早期项目

Detach the DeepSeek Harness Web GUI into a Document Picture-in-Picture window (dsh bundle plugin) 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-pip

One click detaches the DeepSeek Harness web GUI into an always-on-top Document Picture-in-Picture window — it floats beside your editor, and one more click puts it back.

npm License: MIT Chromium 116+ Zero config

English · 中文

Why

The DSH web GUI lives in a browser tab — watching the agent while writing code means hopping between the editor and the tab. dsh-pip uses Document Picture-in-Picture to move the whole app (not a screenshot) into a system-level always-on-top window:

  • One command to install. The package ships a bundle patch (dsh.bundle.patch): dsh plugin add mounts the plugin row automatically — no file edits.
  • Zero config. Restart dsh web and a floating "独立窗口" button appears in the corner of the UI. Click it, done.
  • Window matches the browser by default. The detached window opens at the current tab's viewport size; pin it with two numbers if you prefer.
  • The whole app comes along. On click, #root moves together with styles and theme — not a screencast, the app itself, fully interactive.
  • No-op where unsupported. Safari / Firefox lack the Document PiP API; the script no-ops and no button ever appears.

dsh-pip moves the live Harness Web UI from its browser tab into an always-on-top window beside the editor and back in one click.

dsh-pip vs DeepSeek Harness Desktop

These projects solve different layers of the same workflow. dsh-pip is a focused plugin for people who already run dsh web and only want the UI beside their editor; DeepSeek Harness Desktop is a packaged Electron distribution that owns the desktop app and local Harness service lifecycle.

dsh-pip DeepSeek Harness Desktop
Primary job Detach the existing Web UI into an always-on-top companion window Package Harness as a standalone desktop app
Install One dsh plugin command Download and install a desktop build
Existing setup Requires a working dsh web profile and Chromium 116+ Bundles the runtime; no manual Node.js setup or CLI launch
Harness service Reuses your existing service and configuration; does not start or manage it Starts and manages the local Harness service
Window experience One-click Document PiP detach / return; stays above the editor Electron window, system tray, and desktop-specific UI adaptation
Harness UI and plugins Moves the current official Web UI as-is; installed through the DSH plugin mechanism Retains the official local Web UI and plugin capabilities inside the desktop distribution
Remote access and channels None; this is a local window enhancement only Advertises iOS / Android remote control plus WeChat, Feishu, Discord, and WhatsApp channels
Plugin discovery Uses the standard DSH plugin CLI; no marketplace A plugin marketplace and DSH-plugin delivery for Desktop are planned, not currently shipped
Platform scope Chrome / Edge with Document PiP macOS and Windows desktop builds

Choose dsh-pip if your current Harness setup already works and you want the smallest change: keep your runtime, browser, profiles, and update flow, and add only a floating window. Choose Desktop if you want Harness packaged and managed as a desktop application without setting up Node.js or starting it from the command line.

Quick start

dsh plugin --profile web add dsh-pip

Restart dsh web — done, zero config:

  • the bundle patch mounts the plugin row and injects the browser script into every page response — purely additive, core rows untouched;
  • open the web UI, click the floating "独立窗口" button to detach;
  • close the window (or click its "返回标签页" button) and the app returns to the tab.

How it works

On click the browser script calls documentPictureInPicture.requestWindow() during the click's transient activation, copies the opener's stylesheets and theme attributes into the new window, adopts the app root (#root) into it, and hides the opener button. The window's pagehide event — fired by the browser's built-in "back to tab" control or the script's "返回标签页" button — moves the root back and restores the button.

Half Where What it does
Host plugin src/index.ts Registers the /pip/client.js route and injects the browser script + config into every index response.
Browser script src/client.js Draws the floating button and moves the app (#root) into / out of the PiP window.

Configuration

All optional — the defaults just work. Override them in the profile's ~/.dsh/profiles/web/cordis.patch.yml:

Field Default Meaning
enabled true Mount the plugin; false (or disabled: true on the row) turns it off
width omitted Detached-window width (CSS px); omitted = match the browser viewport
height omitted Detached-window height (CSS px); omitted = match the browser viewport
- id: pip
  config:
    enabled: true
    width: 1280   # pin the size with numbers
    height: 800

requestWindow width/height are hints — Chromium clamps the window to the available screen, so a maximized browser may yield a slightly smaller window.

Requirements

  • Chromium 116+ (Chrome, Edge). The Document Picture-in-Picture API does not exist in Safari or Firefox; the script no-ops and no button appears.
  • The webServer service, which the web profile provides through its @deepseek-ai/dsh-host-webserver bundle.

Install & lifecycle

Install

dsh plugin --profile web add dsh-pip

To install an unpublished checkout (e.g. during development), pass a local path:

dsh plugin --profile web add file:/path/to/dsh-pip

Disable / restore

- id: pip
  disabled: true

Flip it back to false to restore.

Update

dsh plugin --profile web update dsh-pip

Remove

dsh plugin --profile web remove dsh-pip

Removes the dependency and the bundle layer; nothing is left behind.

Known limitations

  • Chromium-only — Safari and Firefox never show the button.
  • Portal surfaces stay in the tab — the app renders menus, modals, toasts, and hover cards through createPortal(..., document.body); those elements continue to target the original tab's body while detached, so they are invisible until the app returns. Detaching is best used for reading/steady state, not for opening menus in the floating window.
  • Window-scoped listeners stay home — global window/document listeners (keyboard shortcuts, scroll tracking) keep firing in the original tab; only React-managed events on the moved root follow the window.

Development

npm install
npm run typecheck   # tsc --noEmit
npm run build       # tsc → lib/ + copy src/client.js → lib/client.js

prepack (run by npm pack / npm publish) rebuilds before packaging so the published tarball always ships a current lib/.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-pip」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:extension-hunter/dsh-pip

Headless(CLI)profile:

dsh plugin --profile headless add github:extension-hunter/dsh-pip

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 7819 个插件 →