deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:waknow/dsh-web-icon-indicator
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Browser tab favicon reflects the current DSH session state — idle / running / asking / done — so you can see at a glance whether a session needs your attention, even when the tab is in the background.
| State | Color (default) | Effect (default) |
|---|---|---|
idle |
#1a1a1a (deep whale) |
static |
running |
#FACC15 (yellow) |
static |
asking |
#E5484D + #FACC15 |
blink (400 ms) |
done |
#22A06B (green) |
static for doneHoldMs, then idle |
The plugin ships one base whale SVG (icons/base.svg) and recolors / animates it in the browser — there are no per-color icon files anymore. Color and effect are fully configurable per state (see Configure).
All states share the same whale path; only the fill color (and optionally an animation) differ. Because a favicon is a plain image, SVG CSS animations never run inside the tab — the injected browser script builds each frame as a data:image/svg+xml,… URI, replacing the __COLOR__ placeholder with the configured color and, for animated effects, injecting a <g transform> for scale/translate on every requestAnimationFrame tick. The available effects are:
| Effect | Behavior |
|---|---|
static |
A single colored frame, no motion — uses colors[0] |
blink |
Toggles colors[0] ⇄ colors[1] (a darker second color is derived if missing) over speed |
breath |
Pulsates between colors[0] and colors[1] (derived if missing) over speed |
rainbow |
Uses colors[0] as the starting hue, then cycles the wheel over speed |
heartbeat |
Scale pulses with a sharp lub-dub beat over speed — color is colors[0] |
bounce |
The whale hops up and down over speed — color is colors[0] |
A self-contained demo (no build, no deps) with these effects lives in demo/dynamic-color.html — pick a state + effect and edit colors live, watching the browser-tab favicon update in real time.
This is a standard DSH bundle plugin. Install it into the web profile (the GUI/TUI profiles pick it up automatically through the cordis patch layer).
From npm (recommended — published as dsh-web-icon-indicator@0.1.0):
dsh plugin --profile web add dsh-web-icon-indicator
From the Git source:
dsh plugin --profile web add github:waknow/dsh-web-icon-indicator
Or from a local directory / tarball:
dsh plugin --profile web add <path-or-tarball>
Or drop the directory into ~/.dsh/profiles/web/node_modules/<name>/ and ship a cordis.patch.yml that matches the one shipped here.
All keys are optional; defaults shown.
| Key | Default | Meaning |
|---|---|---|
iconsDir |
<package>/icons/ |
Directory holding the single base.svg |
statusPath |
/dsh-web-icon-status.json |
JSON status endpoint |
iconPathPrefix |
/dsh-web-icon-indicator |
URL prefix base.svg is served under |
askingHoldMs |
3500 |
Minimum visibility of the asking state |
doneHoldMs |
5000 |
Time the done state stays before falling back to idle |
states |
see below | Per-state visual config |
Each entry in states is one object per state: { effect, colors[], speed? }:
config:
states:
idle: { effect: static, colors: ['#1a1a1a'] }
running: { effect: static, colors: ['#FACC15'] }
asking: { effect: blink, colors: ['#E5484D', '#FACC15'], speed: 400 }
done: { effect: static, colors: ['#22A06B'] }
effect — one of static | blink | breath | rainbow | heartbeat | bounce.colors — an array of hex colors. colors[0] is the primary. Multi-color effects read more entries: blink uses colors[0]⇄colors[1], breath breathes colors[0]⇄colors[1] (each derives a darker second color if omitted), rainbow uses only colors[0] as the starting hue.speed — optional per-state cycle length in ms (also the blink toggle interval). Default 1200.Entries are shallow-merged over the defaults, so you can override only a few states. Example:
- id: dsh-web-icon-indicator
name: 'dsh-web-icon-indicator'
config:
states:
running: { effect: breath, colors: ['#FF9900', '#FFD9A0'], speed: 900 }
asking: { effect: rainbow, colors: ['#FF0000'] }
done: { effect: heartbeat, colors: ['#2ECC71'] }
settings.yaml (DSH ≥ rc7)The plugin registers the whole config surface above with the DSH settings
service under the web-icon-indicator namespace (a schemastery schema in
lib/index.js):
settings.yaml (default
~/.dsh/settings.yaml) as a web-icon-indicator: section. The composition
entry stays the base layer; resolution order is schema defaults →
composition entry → settings document user layer.askingHoldMs /
doneHoldMs apply live). Visual changes need a tab reload — the injected
browser script bakes config at injection time, and the card re-injects it on
the next page load.lib/client.js (ModuleLoader factory
format — no build step, no runtime deps beyond the shell's react). The DSH
client scanner picks a new dsh.client declaration up on the next profile
start.webServer — the status JSON endpoint, a static /dsh-web-icon-indicator/base.svg (the whale template), and one tapIndex that injects a small browser script into every served index.html. The config surface is registered with the DSH settings service (web-icon-indicator namespace) for validation, persistence, and the settings-page card (see above).agents.list() with priority asking > running > done > idle. The aggregation runs a reconcile() step on every request to detect running → idle transitions, because agent/status's idle delivery is not guaranteed at turn end.ask_user_question tool calls (via tools/pre-execute / tools/result) flip the session into asking with a configurable minimum-hold so the icon stays visible even when the user answers immediately.asking: when the agent hits a sandbox denial and escalates (sandbox_permissions + justification), or any other tool asks for approval, the approval service appends an approval/asked session event and blocks the agent until you decide. The plugin watches session/event (with an authoritative fold over the live session log as a fallback) and pins the session into the asking state for that whole wait, clearing it on approval/decided./dsh-web-icon-status.json once a second, fetches base.svg once, and then on every requestAnimationFrame tick rebuilds the favicon as a data:image/svg+xml,… URI — replacing the __COLOR__ placeholder with the state's configured color and applying the state's configured effect. Browsers don't play favicon SVG CSS animations, so all motion is JS-driven. Because browsers pause requestAnimationFrame in hidden tabs, the poll also repaints a wall-clock frame for animated states, so background tabs keep animating (coarsely) instead of freezing; full-speed animation resumes when the tab is visible again. The poll also survives host restarts: a transient fetch failure restores the original icon and retries on the next tick (the SPA reconnects in place, so the icon comes back without a manual refresh).__COLOR__ placeholder in the #p { fill: … } rule; the browser replaces that token to color each frame.fs service with the configured iconsDir as cwd. Make sure that path is readable under your deployment's sandbox policy.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。