Introduction¶
When running multi-session tasks in DeepSeek Harness (DSH), the common practice is to switch back to the main window to check progress, or guess which window is still running in the taskbar. In the DSH ecosystem, plugins can extend host capabilities; if you want to see at a glance—without occupying the DSH main interface—whether something is “running, requires authorization, or needs a reply,” you need a status indicator independent of the application window. Below is an introduction to the community plugin dsh-float-lamp: released by maintainer shZhang1614, categorized as a Client, it provides a top-most, borderless small lamp window on the Windows desktop that interacts with the DSH process via a local state file.
Overview¶
dsh-float-lamp is a floating task status lamp plugin for DSH. The host side (lib/index.js) aggregates events from various sessions and writes them to ~/.dsh/float-lamp/state.json; the lamp window (widget/lamp.ps1, PowerShell WinForms) displays top-most outside the DSH window, reflecting aggregated status via colors and animations. Hovering the mouse lists a summary of running tasks; clicking the lamp jumps back to the DSH host window. The current package version is 0.4.2, license MIT, and supports Windows only.
Light Colors and Judgment¶
Status is derived from folding session logs (turn/start|end, approval/asked|decided, tool/call|result, etc.). For multi-session scenarios, the priority is: Orange > Blue > Green > Gray.
| Light Color | Meaning | Judgment Criteria |
|---|---|---|
| Green | Running | An unclosed turn/start exists |
| Orange | Pending Approval | An approval/asked exists without a corresponding approval/decided |
| Blue | Pending Interaction | ask_user_question / exit_plan_mode call is pending |
| Gray | Idle | No active turns |
| Dark Gray (Host Offline) | DSH Not Running | state.json has not been updated for over 15 seconds, or marked as hostDown |
When the light is green, the current status and count are displayed on the lamp, along with the elapsed time (min/sec) for the current turn. 20fps animations (glow breathing, shaking, floating) are available in Green/Orange/Blue states; they are static when Gray or Offline. If offline for more than 60 seconds, the lamp process automatically exits; the plugin will restart the lamp after the host restarts.
Core Features¶
Host Plugin¶
- Polls
ctx.sessions.list()every 800ms and subscribes tosession/created,session/event, andinternal/dispatchevents, incrementally folding logs and deduplicating byseq. - Writes aggregated results to
~/.dsh/float-lamp/state.json(5-second heartbeat + immediate updates on events). - Ensures a single instance of the lamp window via
lamp.pidandlamp-aliveheartbeats; if the process is alive but the heartbeat stops, it reclaims the zombie lamp and restarts it. - Reads
~/.dsh/profiles/<profile>/cordis.patch.yml: if this plugin is marked asdisabled: true, it writeshostDownwithin approximately 5 seconds and extinguishes the lamp; it restarts the lamp after re-enabling.
Widget Interaction¶
- Hover: A dark card pops up on the left after about 0.3 seconds, listing sessions line by line:
[Status] Latest User Message (Running: Tool Name). - Left Click: Drag moves the window (remembers position via
pos.json); a click without dragging activates the DSH host (restoring it if minimized). - Right-click Menu: Top-most toggle, Animation toggle, Opacity (100/75/50/25%), Size (Small/Standard/Large), Exit; preferences are saved in
settings.json. High DPI uses PerMonitorV2 scaling.
The rendering uses UpdateLayeredWindow for per-pixel alpha, with no card background—just a glowing round lamp and outlined text—making it readable against various desktop backgrounds.
Installation and Setup¶
Official installation command (profile is desktop):
dsh plugin --profile desktop add github:shZhang1614/dsh-float-lamp
Restart the DeepSeek Harness application after installation; the plugin will automatically start the lamp window upon loading, with no need to manually run the script.
To disable the plugin from automatically starting the lamp, set the environment variable:
DSH_FLOAT_LAMP_NO_WIDGET=1
To manually start only the lamp (for debugging or special scenarios):
powershell -NoProfile -ExecutionPolicy Bypass -File widget\lamp.ps1
(The path is relative to the plugin source directory; normally it is spawned by the host.)
Offline distribution: You can extract the release zip and run install-offline.ps1 in that directory (requires PowerShell 5.1+, and DSH must be installed and capable of starting on the machine). Run uninstall-offline.ps1 to uninstall. The plugin has zero npm dependencies, making it suitable for intranet copy installation.
Turning off the plugin in dshmarket rewrites bundles and cordis.patch.yml (disabled: true). If the plugin is currently loaded, the lamp will extinguish within about 5 seconds; to load it and light the lamp again, you must restart the application once more.
Typical Usage and Runtime Files¶
The daily usage workflow can be summarized as:
- Install via the command above and restart DSH.
- Drag the lamp to the edge of the screen to avoid obstruction; hover to see details, or click the lamp to return to DSH.
- Adjust opacity and size via the right-click menu to avoid blocking other windows.
The runtime data directory is ~/.dsh/float-lamp/. Common files include:
| File | Role |
|---|---|
state.json |
Aggregated status (state, counts, runningSince, tasks, updatedAt, hostDown, etc.) |
pos.json |
Lamp window position |
settings.json |
Preferences for opacity, scale, animation, etc. |
lamp.pid / lamp-alive |
Single instance and liveness checks |
debug.log / lamp-error.log |
Diagnostics for the plugin and lamp window |
If the lamp is run standalone without a host, it displays “Host Offline” and exits after 60 seconds; this is expected behavior.
Use Cases and Notes¶
Suitable for: Developers on Windows using the DSH desktop profile long-term, running parallel multi-session tasks, and wanting task status to remain visible; especially those who care about approval (Orange) and Q&A (Blue) reminders without the need to frequently Alt-Tab back to the main window.
Important to Note:
- The plugin runs under DSH host process privileges and spawns a local PowerShell lamp window process; before installation, you should review the GitHub repository source code and MIT license yourself.
- Windows only (PowerShell WinForms);
widget/lamp.ps1must be saved as UTF-8 with BOM, otherwise PowerShell 5.1 may report parsing errors for Chinese characters. - The community catalog SkillHub plugin page and GitHub are independent information sources and have no official affiliation with DeepSeek / High-Flyer; metadata such as stars is subject to what each site displays at the time.
The repository provides node test/fold-test.mjs for state machine assertions, and GitHub Actions runs the test workflow on push.
Conclusion¶
dsh-float-lamp converges DSH’s multi-session status into a small lamp on the desktop: Green, Orange, Blue, Gray, and Offline are clear at a glance; hover to view tasks, click to return to the host, with settings and position locally persisted. If you use DSH on Windows and want to reduce the switching cost of “not knowing which step the task is stuck on,” you can install it via the official command and restart the application to try it out.
- Community Catalog: https://www.skillhub.cn/plugins/shZhang1614/dsh-float-lamp
- Source Code & Docs: https://github.com/shZhang1614/dsh-float-lamp