DeepSeek Harness 插件

deepseek-harness-picture-in-picture

Picture-in-picture mini chat for the DeepSeek Harness Web GUI.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
syncended/deepseek-harness-picture-in-picture
最近更新
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/syncended/deepseek-harness-picture-in-picture
插件名:deepseek-harness-picture-in-picture
作者:syncended

检查来源文件

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

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

DeepSeek Harness — Picture-in-Picture Chat

A browser plugin for the DeepSeek Harness Web GUI. It adds a compact chat that can stay above other windows, switch the active Harness session, follow streaming replies, and send a reply without returning to the full page.

Preview

<table> <tr> <td align="center" valign="top"> <img src="./docs/assets/pip-new-chat-preview.svg" width="420" alt="Synthetic preview of an empty new Harness picture-in-picture chat ready for the first message" /> <br /> <sub>Empty new chat, ready for the first message.</sub> </td> <td align="center" valign="top"> <img src="./docs/assets/pip-preview.svg" width="420" alt="Synthetic preview of the Harness picture-in-picture chat" /> <br /> <sub>Active conversation with compact tool activity, progress docks, and reply controls.</sub> </td> </tr> </table>

Features

  • Native Document Picture-in-Picture on supported Chromium browsers.
  • In-page floating fallback when the Document Picture-in-Picture API is unavailable or denied.
  • Session switcher with live working / waiting / completed state.
  • Compact Markdown transcript with streaming reasoning, tool activity, results, historical images, copy, branch, and older-history loading.
  • Stop generation plus queued-message edit, remove, and Send now controls.
  • Inline approval, plan-review, and structured user-question panels.
  • Image attachment previews and image-plus-text submission through the public session API.
  • Access-mode, plan-mode, model, model reasoning-effort, and context controls inside the compact composer.
  • Compact context, turns/steps, throughput, cache-hit, and input/output token statistics.
  • Collapsible todo progress and active-goal status above the composer.
  • Human chat switcher grouped by workspace, omitting internal subagent sessions.
  • New-chat action that opens or creates the blank session for the current/recent workspace, including workspaces with no prior messages.
  • Replies are sent through the public Session.prompt(..., "queue") API. While an agent is working, a reply is queued for the next turn and can be steered into the active turn with Send now.
  • Reactive synchronization with the locale selected in Harness settings (English and Chinese), with Russian fallback copy for compatible hosts; dark-theme synchronization, keyboard, and screen-reader labels.
  • Enter sends; Shift+Enter inserts a new line.

> Switching a chat in the mini window calls ctx.sessions.open(id), so the main Harness window follows the same active chat.

Requirements

  • DeepSeek Harness 0.1.0-rc.6 or a compatible release with client plugins and the shell.overlay slot.
  • The Web profile (dsh web).
  • For native always-on-top PiP: a Chromium browser supporting the Document Picture-in-Picture API. Other browsers use the in-page panel.

Install

From npm after publication:

dsh plugin --profile web add @syncended/dsh-pip

From this checkout during development:

dsh plugin --profile web add /absolute/path/to/deepseek-harness-picture-in-picture-plugin

Some pnpm-backed profiles require the workspace-root flag:

dsh plugin --profile web add -w /absolute/path/to/deepseek-harness-picture-in-picture-plugin

Restart dsh web after first installation. A chat-bubble button then appears in the bottom-right corner of the Web GUI.

Development

The published browser entry is deliberately dependency-free source in DSH's lazy client-module format; React and ReactDOM are resolved from the Web shell's platform module table.

npm run check
npm test
npm pack --dry-run

Tag-driven npm publication is documented in [RELEASING.md](./RELEASING.md).

The package has two faces:

  • lib/index.js — no-op Host loader entry.
  • lib/client.js — browser implementation registered in the additive shell.overlay slot.

package.json#dsh.client orders the client after runtime, layout, and conversation assembly. cordis.patch.yml inserts the package into the active profile.

Architecture notes

The full API investigation and design rationale are recorded in [docs/RESEARCH.md](./docs/RESEARCH.md).

The implementation uses only supported DSH client seams:

  • ctx.slots.inject("shell.overlay", ...) for a lifecycle-safe floating UI contribution.
  • ctx.sessions.list for the session list and current selection.
  • ctx.sessions.open(id) to switch the active session.
  • ctx.sessions.binding(id).session for conversation snapshots, projections, prompt/cancel/queue/history actions, and durable image reads.
  • Pending interaction carriers from ConversationSnapshot.pending for approvals and structured questions.
  • Public MarkdownText and writeClipboard primitives for safe transcript rendering and copy actions.
  • react-dom#createPortal to render the same React mini-chat tree into the Document PiP window.

The PiP view uses a compact presentation rather than cloning the full Harness conversation component. It renders tool activity as concise logs and provides compact attachments, approvals, plan review, and ask_user_question controls; the main window remains available for full-size inspection.

Current limitations

  • Document Picture-in-Picture is Chromium-only at the time of writing; other browsers use the in-page fallback.
  • The operating system and browser own the native PiP window frame, outer corner shape, and final placement.
  • Generic tool rows are intentionally compact; the main Harness window remains the best surface for deeply inspecting large tool payloads.

License

MIT — see [LICENSE](./LICENSE).