A floating macOS traffic light for DeepSeek Harness: red while a session runs, yellow while one waits for you, green until the finished session is opened — clicking a lit lamp jumps to that session.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-task-traffic-light
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:wunankun/dsh-task-traffic-light
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
A floating traffic light for DeepSeek Harness on macOS. It sits at the edge of your screen and tells you what your agents are doing — without switching windows to find out.
简体中文 · English · Español · 日本語 · 한국어 · MIT
Three lamps, three facts
| Lamp | Lit while | Click it and it |
|---|---|---|
| 🔴 red | at least one top-level session is running | brings DSH forward and opens the next running session (each click moves on) |
| 🟡 yellow | a session waits for your approval or answer | brings DSH forward and opens the first waiting session |
| 🟢 green | a finished session still shows its unread dot in DSH | brings DSH forward and opens the oldest unread session |
The lamps are independent: a red and a green lamp can be lit at the same time. Any lamp that can do something turns the pointer into a hand.
Install
1 — the plugin (inside DSH):
dsh plugin add dsh-task-traffic-light
Or install it from the plugin market in the app. Most setups need a page refresh afterwards.
2 — the app:
The easy way: open Plugins → this plugin in DSH and press Install the lamp app. It downloads the release, unpacks it into /Applications, clears the quarantine flag and launches it. After that the control follows the app: Running v1.5 while it is open, Start the lamp app after you quit it, and Update to v… when a newer build ships.
Or do it from a terminal:
curl -fsSL https://raw.githubusercontent.com/wunankun/dsh-task-traffic-light/main/scripts/install-app.sh | sh
The script installs TaskTrafficLight.app into /Applications and launches it. Prefer to do it by hand? Download TaskTrafficLight.zip from Releases, unzip, drag it to Applications, and right-click → Open the first time (the build is ad-hoc signed, not notarized).
3 — go. Restart DSH, refresh its page, and put the lamp where you like. Drag it anywhere; the position is remembered.
Updates. There is only one thing to update: the plugin. Once the app is installed, the next start replaces it with whatever version the plugin ships. A missing app is never installed on its own — that stays a click.
The green lamp follows DSH, not a timestamp
DSH already puts a small green dot in front of a session that finished while you were looking elsewhere. That dot is the truth this app renders:
- the lamp is lit while at least one session carries that dot;
- opening the session — by clicking the lamp or any other way — clears the dot, and the lamp follows within a second;
- the lamp goes out only when the last dot is gone.
With several unread sessions, each click opens the oldest one and clears it, so clicking twice walks a small queue.
One case DSH does not mark is covered here too: a completion of the currently selected session while the DSH window is out of sight — another app in front, or the tab hidden — counts as unread and lights the lamp. DSH only knows which session is the main view, not whether its window is visible; coming back to the window clears that reminder.
How it works
DSH Host plugin ──writes──> ~/.dsh/task-traffic-light/state.json <──reads── TaskTrafficLight.app
▲ │
└────── /api/task-light/focus (authenticated, same-origin) ◀── focus.json ┘
- The plugin writes a snapshot: running count, pending interactions, waiting session ids, unread session ids, token speed.
- The app polls that file and draws the lamps.
- A click writes
focus.json; the plugin validates it against the lamp it came from and hands it to the Web UI over DSH's own authenticated local channel. The page opens the session and acknowledges the request. - Subagent sessions are filtered out: they have no row to open, so they can never hold a lamp on.
Privacy
No listening port. The plugin writes one JSON file under ~/.dsh/task-traffic-light/; the app writes one more when you click a lamp. Nothing leaves the machine on its own.
The one exception is the install button on the plugin page: pressing it downloads the release archive from GitHub and runs the system's own ditto, xattr and open to put the app in place. It never runs otherwise, and uninstalling the plugin removes that button. The whole thing is about 600 lines of JavaScript and 500 lines of Swift — small enough to read in one sitting.
Requirements
- macOS 13 or later, Apple silicon or Intel (the release build is universal)
- DeepSeek Harness 0.2.1 or later with a profile you can add plugins to
The app's own menus are in Chinese for now — a localization PR would be very welcome.
Troubleshooting
All lamps stay dark. No fresh state.json within 10 seconds means "DSH is not running". Check the plugin is enabled (dsh plugin list), then tail -f ~/.dsh/task-traffic-light/state.json.
Clicking does nothing. The click is applied by the DSH page, so it needs a page that has loaded the plugin's client half: refresh DSH once after installing. A request older than 30 seconds expires quietly.
The lamp shows DSH as online but everything is idle. The plugin only counts top-level sessions; subagents never light anything on their own.
Build from source
git clone https://github.com/wunankun/dsh-task-traffic-light
cd dsh-task-traffic-light
./macos/build.sh # universal binary, needs the Xcode command line tools
open macos/TaskTrafficLight.app
License
MIT © 2026 wunankun
Links
More in this category
xmanrui/dsh-im★ 3817
Connect IM bots to DeepSeek Harness via QR codes or bot credentials (9 channels: Feishu, WeChat, DingTalk, WeCom, QQ, Slack, Telegram, Discord, and WhatsApp).
shaobeichen/dsh-pocket★ 3174
Remote phone access to the DSH Web UI: scan a QR code for LAN or public (cloudflared tunnel) access with real-time sync, a mobile-adaptive layout, and a settings tab.
c1overzz/dsh-bili-scroll★ 1477
Let your DSH agent browse Bilibili on its own, read subtitles, write a daily digest, and @ you when it finds something worth your attention.
OpenPetsHQ/openpets#dsh★ 1412
Bridges DeepSeek Harness lifecycle status, errors, and approval requests to a locally running OpenPets desktop companion.
inclusionAI/Avernet#deepseek-harness-channel-bcn★ 611
Connects DeepSeek Harness to Avernet's Bot Collaboration Network over WebSocket V2, with automatic onboarding, isolated agent sessions, tool-call events, and multi-bot routing tools.
zaofan-make/dsh-qqbot★ 284
QQ official bot channel (enhanced fork of tencent-connect/dsh-qqbot): full agent chat in groups and DMs, rich media, an auto-tagged sticker library with AI image replies, join approval, mute and broadcast, scheduled wakeups, remote approvals over QQ, interactive cards, multi-account instances, extensions, member profiles, and token-saving value-scored wakeups.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.