rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zz0-0/dsh-tab-indicator
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
A DeepSeek Harness (DSH) web plugin that puts the agent's running/done state on the browser tab and flags a question or approval card that is waiting for your answer, so you can see from any other tab whether work is still running — or stuck on you.

More state shots: preview.png, running.png, done.png.
1, 2, … 9+).(N)
appears only when more than one run is active. There is no title dot.? and the favicon shows an
amber question badge. The marker appears before you open the waiting
conversation: the sidebar's warning status and the host's cross-Session count
both feed it. It stays until the question is answered or dismissed, survives
focus/visibility changes, and outranks the running and done states.<link> elements when idle.0.2.2-rc.1; engines.dsh = ">=0.2.1-0 <0.3.0-0".^22.19.0 || >=24.0.0 (the DSH
requirement).Install this repository directly from GitHub:
dsh plugin --profile web add github:zz0-0/dsh-tab-indicator
systemctl --user restart dsh-web
Or with an explicit git URL:
dsh plugin --profile web add git+https://github.com/zz0-0/dsh-tab-indicator.git
systemctl --user restart dsh-web
Then hard-refresh the DSH web page (Ctrl/Cmd + Shift + R). The plugin
injects its browser script into the DSH index page, so the refresh is needed the
first time. The systemctl line assumes the Linux user service; if you run
dsh web manually, restart that process instead.
dsh plugin --profile web add link:/path/to/dsh-tab-indicator-plugin
systemctl --user restart dsh-web
dsh plugin --profile web add github:zz0-0/dsh-tab-indicator
systemctl --user restart dsh-web
dsh plugin --profile web remove dsh-tab-indicator
systemctl --user restart dsh-web
1, 2, … 9+). The tab title is unchanged for one run and gets (N) when
more than one run is active.?
and the favicon gets an amber question badge. The marker persists while the
card is mounted and takes priority over the running count and the done check;
it disappears when the card is answered or dismissed.DocumentTitle). A MutationObserver
re-applies the (N) / ✓ decoration whenever the application rewrites the
title.The icon is repainted only when the running count or the running/done state changes. It is intentionally not animated between those changes.
Chrome treats every <link rel="icon"> href change as a fresh favicon load. Its
own loading indicator — including the one on the bookmark bar — restarts for
each load, so a continuously animated favicon makes the bookmark icon churn.
Chrome has no native animated favicon (GIF favicons show the first frame only,
and SVG/CSS animation is ignored), so there is no way to animate the icon
without that reload behavior. A static badge is the deliberate trade-off.
The plugin is a DSH bundle: package.json declares
dsh.bundle.patch = ./cordis.patch.yml, and that patch inserts the
dsh-tab-indicator entry into the web profile. It has two halves:
| Half | File | Role |
|---|---|---|
| Host | lib/index.js |
Tracks running root agents, publishes the SSE snapshot, serves GET /dsh-tab-indicator/events and GET /dsh-tab-indicator/client.js, and injects the client into the index page. |
| Browser | client.js |
Injected into the DSH index page. Consumes SSE, decorates the title, and paints the static count/check badge over the page's favicon. |
The SSE snapshot is small:
GET /dsh-tab-indicator/events text/event-stream
data: {"type":"state","running":1,"waiting":0,"sessions":["…"],"at":…}
ctx.agents.roots() seeds the snapshot for agents that are already running
when the plugin loads.agent/status (idle / running) and agent/disposed keep it current.ctx.agents.roots() repairs a transition
missed across a plugin reload and removes a session whose agent is no longer
running.connection.requestRejection guards the stream with the same browser cookie
used by the rest of the Web API.ctx.webServer.tapIndex inserts
<script defer src="/dsh-tab-indicator/client.js?v=1">.The browser half (client.js) consumes the stream, decorates the title, and
paints a count/check badge on a 64×64 canvas over the page's original favicon.
It repaints only when the count or state changes.
The browser half also watches the document for the two blocking composers DSH
mounts while it waits for a human (data-question-key for the
ask_user_question card, data-approval-key for an approval), and for any
Session row marked with data-state="warning" in the sidebar. The host adds a
waiting count to the SSE snapshot: timed questions come from the
userQuestions projection, blocking questions and approvals from their
waterfall lifetime. The local sidebar signal covers the case where the waiting
conversation is not the one currently open; the host signal covers every root
Session.
dsh-web and hard-refresh the page;
confirm the profile lists dsh-tab-indicator.dsh-web.9+ — more than nine root sessions are running.The plugin has no build step: plain ESM on the host and a classic browser script.
git clone https://github.com/zz0-0/dsh-tab-indicator.git
cd dsh-tab-indicator
dsh plugin --profile web add link:$(pwd)
systemctl --user restart dsh-web
client.js is served with Cache-Control: no-store. With a link: install,
edit and hard-refresh the browser.lib/index.js is host-side: edit and restart dsh-web.node_modules; reinstall
the plugin (or sync client.js into the installed package) after editing the
checkout.| File | Role |
|---|---|
package.json |
DSH bundle metadata |
cordis.patch.yml |
Inserts the plugin into the web profile |
lib/index.js |
Host: agent tracking, SSE route, client injection |
client.js |
Browser: title count/check/question mark, static favicon badge, waiting/done state |
test/host.test.mjs |
Node tests for the host half |
test/browser.test.mjs |
Chromium test for title/favicon/done/waiting behavior |
screenshot.png |
README screenshot |
The browser half does not patch React. It uses the stable browser surfaces:
link[rel~="icon"], including the media="(prefers-color-scheme: …)" light
and dark variants supplied by the DSH pagedocument.title, which DocumentTitle owns; a MutationObserver keeps the
(N) / ✓ decoration after the application rewrites it/dsh-tab-indicator/events for the host snapshotctx.webServer.tapIndex for the injected client scriptRun the host tests:
node --test test/host.test.mjs
Run the browser test (point the variables at a local Playwright core and Chromium; the DSH development checkout ships both):
PLAYWRIGHT_CORE=/path/to/playwright-core/index.mjs \
CHROMIUM_PATH=/path/to/chromium \
node --test test/browser.test.mjs
Generated test artifacts land in test/out/ and are git-ignored.
webServer and agents.data:image/png URL. If a deployment adds a Content Security
Policy, img-src must allow data: (the current Web index has no CSP).CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。