blktea814 / hud-bar-for-dsh

已收录

一个基于浏览器画中画功能的dsh悬浮窗口,可在网页外的悬浮窗口中随时使用dsh进行工作!

main工具 查看源代码

安装

npx -y @deepseek-ai/dsh plugin --profile web add github:blktea814/hud-bar-for-dsh

此安装命令根据 GitHub 仓库地址生成,是未经验证的安装起点。

README

维护者编写的文档快照。

在 GitHub 查看 ↗
提交版本 df95bc3同步于 2026年8月18日

HUD Floating Bar

An always-on-top floating HUD chat bar for DeepSeek Harness: live session transcript (markdown rendering, streaming output), workspace / session / model / reasoning-effort switching, and Picture-in-Picture (PiP) detach — pop the HUD into an OS-level always-on-top window (Chrome/Edge), usable over any other app.

简体中文

Official bundle plugin for DeepSeek Harness.

Features

  • Floating HUD bar — draggable, resizable, always-on-top overlay inside the web UI
  • Live transcript — realtime conversation with markdown rendering and streaming cursor; tool calls shown compactly
  • Switchers — workspace / session / model (grouped by provider) / reasoning effort, also inline above the composer
  • Send / Stop generating — the primary button turns into 停止生成 while the agent is running, like the main web composer
  • Approval notice — a banner appears when any session awaits a permission approval, telling you to approve in the main UI
  • Picture-in-Picture detach — Chrome/Edge 116+: pop the HUD into an OS-level always-on-top PiP window; works across other apps
  • Pin / follow — pin the HUD to one session or follow the active one
  • Keyboard: Enter send, Shift+Enter newline, Esc close (in-page)

Floating HUD bar

Install

Requires a DSH web profile (0.1.0-rc.6+).

From a local checkout (bundle dir contains the built artifacts):

dsh plugin --profile web add "/path/to/hud-floating-bar"

Or from git (artifacts checked in, one-line install):

dsh plugin --profile web add "github:blktea814/hud-bar-for-dsh#main"

Then restart the web app. The HUD bar appears at the top-left of the page; the sidebar footer also gets a toggle button.

Usage

  • Type a message, press Enter to send — the reply streams into the bar (and the main conversation, same session)
  • Above the input: model / reasoning effort selectors; the primary button turns into 停止生成 while the agent runs
  • Top row: status dot, session title, 外置 (PiP detach), pin/follow, close
  • Second row: workspace / session selectors
  • Drag the header to move, drag the bottom-right corner to resize
  • Esc or Ctrl+Shift+H closes the in-page bar

Package layout

hud-floating-bar/
├── package.json         # dsh.bundle + dsh.client manifest
├── cordis.patch.yml     # bundle layer: inserts the Node half
├── index.mjs            # Node half: /hud-api/* JSON endpoints
└── client/index.js      # browser bundle: HUD UI (__ModuleLoader__.load)

The Node half serves five same-origin endpoints:

EndpointPurpose
GET /hud-api/surface?sessionId=Incremental transcript rows + agent status + pending approvals
POST /hud-api/sendSend a user message (official agent inbox)
GET /hud-api/model?sessionId=Model catalog + current selection
POST /hud-api/set-modelSwitch model / reasoning effort (next turn)
POST /hud-api/stopStop the running agent

Notes

  • PiP detach requires Chrome/Edge 116+ (documentPictureInPicture); Safari/Firefox fall back to the in-page bar.
  • Model switches take effect on the next agent step and are also saved as the default selection.
  • Permission approvals are handled by the official main-UI approval card; the HUD only notifies you when one is pending.

License

MIT

仓库信息

开发语言
JavaScript
许可证
未提供
最后更新
2026年8月15日 10:49

谨慎安装

请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。