DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-traffic-light

d

dsh-traffic-light

Identified

A draggable traffic light in the window overlay: red while an agent is running, yellow while an agent waits for your answer or approval, green when nothing is running. It reads one state endpoint on t

红绿灯 · Traffic light

给 DeepSeek Harness Web GUI 挂一盏常驻、可拖动的红绿灯:红灯 = 有任务在跑,黄灯 = 等你确认,绿灯 = 空闲。

A draggable, always-on traffic light for the DSH Web GUI: red = an agent is running, yellow = waiting for you, green = idle.

红绿灯的三种状态

它做什么

  • 在窗口浮层里画一个圆形信号灯,所有会话共用一盏,取的是全局状态而不是某个会话的状态。
  • 每秒向本机的一个状态接口(/dsh-traffic-light/state)取一次状态;数据不出本机,也不写任何会话内容。
  • 等待确认的状态有 30 分钟有效期(OPEN_ASK_TTL_MS = 30 * 60 * 1000),过期自动转回绿灯或红灯,避免一直黄着。
  • 关掉这个 bundle 就移除挂件,不留后台进程。

怎么操作

  • 拖动:按住灯体拖到任意位置。
  • 复位:双击灯体,或聚焦后按 Home。
  • 微调:聚焦后用方向键移动。
  • 位置会被记住,重启后仍在原处。

安装

三种方式,任选一种:

1. 插件市场(推荐)

装好 dshmarket 后打开 插件 页 → 插件市场,搜“红绿灯”或 traffic-light,一键安装。

2. 从 GitHub Release 装预构建包

gh release download --repo yeah9right/dsh-traffic-light --pattern '*.tgz'

然后在插件管理器里指向下载到的 dsh-traffic-light.tgz。

3. 本地开发(link)

把本目录链进 profile 的 dependencies,并在 dsh.profile.bundles 里列出 @yeah9right/dsh-traffic-light:

{"dependencies": {"@yeah9right/dsh-traffic-light": "link:D:/path/to/dsh-traffic-light"}}

改 Host 半(index.js)要重启 DSH;只改 Client 半(client.js)刷新页面即可。

平台限制

Web GUI 的浮层部分跨平台,只要 DSH Web 能跑就能用。

但本插件还带一个 Windows 专用的桌面浮窗:用 desktop/widget.ps1(PowerShell + WinForms)在本机拉一个常驻小窗,能让红绿灯在 DSH 窗口被遮挡或最小化时依然可见。这个桌面浮窗:

  • 只在 Windows 上启用,靠 powershell.exe / pwsh 启动;
  • 在 macOS / Linux 上会自动跳过,主 GUI 里的浮层照常工作;
  • 启动参数含父进程 id,DSH 退出后小窗自己收摊。

依赖的宿主接口(升级需重验)

  • Host 侧:inject: ['webServer'],用 ctx.webServer.getOrigin() 与 ctx.webServer.register() 挂 /dsh-traffic-light/state。
  • Client 侧:inject: ['slots'],ctx.slots.inject('shell.overlay') + ctx.slots.register({ name: 'shell.overlay', id: SLOT_ID, order: 40 }),require('react')。
  • 语言包走 ctx.get('locale')。

宿主大版本升级后这些接口可能变,出问题先看这里。

文件

文件作用
index.jsHost 半:状态接口 /dsh-traffic-light/state、状态聚合、桌面浮窗拉起
client.jsClient 半:shell.overlay 插槽里的浮层、指针/键盘交互、位置持久化
desktop/widget.ps1Windows 桌面浮窗(PowerShell + WinForms)
desktop/position.json桌面浮窗默认位置
cordis.patch.ymlbundle 插入声明
locale/{zh,en}.json插件管理器显示的标题与说明
docs/详情页素材

许可

MIT,见 LICENSE。

Comments

Loading…

Similar plugins

dsh-trafficlight

by ChivasKong

一个 dsh 宿主(Host)插件 + 浏览器半区(Web GUI 订阅按钮) + macOS 全局悬浮窗, 把你订阅的每个会话的任务状态用红/黄/绿三色灯在屏幕右上角的悬浮窗里逐行实时展示。

Manifest valid

★ 0

MIT

TypeScript

Sep 10, 2026

dsh plugin --profile web add @chivaskong96/dsh-trafficlight

Floating task-status lamp for DeepSeek Harness: green running, orange approval, blue question, grey idle — a borderless always-on-top window outside the DSH app.

UI & ExperienceManifest valid

★ 0

MIT

PowerShell

dsh plugin --profile web add dsh-float-lamp

by aliuguofa

DSH 会话状态信号灯:在输入框区域显示红/黄/绿三色灯,实时反映会话状态(就绪/生成中/出错),点击可查看详情。

UI & ExperienceTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

Aug 24, 2026

dsh plugin --profile web add traffic-light

Draws an ambient glow along the window edge and a moving light band around the composer, sharing one colour table and each with its own switch.

UI & ExperienceManifest valid

★ 0

dsh plugin --profile web add dsh-fleeting-light

by Junkrat9527

Vision for text-only dsh models: paste an image and a configured multimodal model transcribes it to text automatically — transparent twin routing, an agent-callable read-image tool, no built-in keys o

Tools & CapabilitiesVision & MultimodalManifest valid

★ 0

↓ 45/wk

MIT

JavaScript

Aug 18, 2026

dsh plugin --profile web add @iroam2375/dsh-autovision

by Joker2377

Windows taskbar indicator for DeepSeek Harness Desktop: grey while an agent turn runs, amber when it is waiting for you, latched red after a failed turn.

Manifest valid

★ 0

MIT

JavaScript

Nov 7, 2026

dsh plugin --profile web add dsh-taskbar-status