Replaces the DeepSeek Harness application icons from one PNG — tray, About panel, desktop and Start Menu shortcuts, window, taskbar, Explorer entry, and the icon resources inside the executable — backing up the originals first, verifying the patched executable before the swap, and restoring the official set with one command.
Install
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/MicroCapCap/dsh-icon-studio/releases/download/v1.1.2/dsh-icon-studio-1.1.2.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:MicroCapCap/dsh-icon-studio
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
Give DeepSeek Harness your own icon. One PNG in, every surface out:
| Surface | Source it comes from | What the plugin does |
|---|---|---|
| Tray icon ("hidden bar") | resources/tray.ico |
writes a fresh multi-size ICO |
| About panel icon | resources/icon.png |
writes a 512 px PNG |
| Desktop / Start Menu shortcuts | .lnk IconLocation |
retargets every shortcut that launches the exe |
| Window, taskbar, alt-tab, Explorer file icon | icon resources inside DeepSeek Harness.exe |
patches RT_GROUP_ICON + RT_ICON with the Win32 resource API |
Use it
Two ways in, one operation behind both.
Settings page. Open Settings → DSH 图标 (the section appears under the regular settings navigation). Drop or pick a PNG, the panel builds all sizes and shows the preview strip, then 应用 writes them. 还原默认 puts the originals back. Nothing is written until you press 应用.
Agent tools. Ask the agent, e.g. "use D:\art\my-logo.png as the DSH icon". It calls:
dsh_icon_apply— build + apply (image, optionaltargets,background)dsh_icon_status— what is applied right nowdsh_icon_restore— put the originals back
The settings page talks to the Host half over loopback-only routes:
| Route | Purpose |
|---|---|
GET /api/dsh-icon-studio/status |
installation, executable hash, signature, applied icon |
POST /api/dsh-icon-studio/build |
store an uploaded PNG ({name, data} base64) and render the icon set |
POST /api/dsh-icon-studio/apply |
apply a built icon ({slug}) to tray, shortcuts and executable |
POST /api/dsh-icon-studio/restore |
restore the recorded originals |
GET /api/dsh-icon-studio/preview?slug= |
the preview contact sheet as PNG bytes |
Every route is registered with auth: 'required', so a host with the
token-provider admission authenticates it before the handler runs; on older
hosts the handler still applies connection.requestRejection when that service
exists. It then rejects non-loopback callers, cross-site sec-fetch-site, and a
mismatched Origin, so a web page cannot drive it.
The tray icon and the window/taskbar icon are independent: changing one never changes the other.
What it guarantees
- Backup first. The original
tray.ico,icon.png, executable and shortcutIconLocationvalues are copied under%LOCALAPPDATA%\DSH-IconStudio\originals\before anything is replaced. - Verify before swap. The patched executable is checked (icon group size and frame count) and started once in Electron's node mode; on failure the binary is left untouched.
- Rename, never overwrite. Windows allows renaming but not overwriting the image of a running process, so the live executable is renamed aside and the patched one is copied in. A leftover that is still mapped is hidden, and the plugin deletes it the next time it starts.
- Idempotent. When the live executable is already this plugin's build, the next patch is built from the recorded vendor binary instead of stacking a second icon group on top, so repeated applies produce the same bytes.
- Transparent background. Existing transparency is kept; otherwise a white background is removed with a soft alpha ramp so anti-aliased edges and interior cut-outs stay clean.
- Every size. 16, 24, 32, 48, 64, 128 px as 32-bit DIB and 256 px as PNG.
Requirements
- Windows. The engine is
scripts/iconstudio.pyand uses only the Python standard library (ctypes,zlib), so any Python 3.8+ works — the DSH runtime Python is discovered automatically. - PNG input, 8-bit, non-interlaced.
Notes
- Patching the executable changes its bytes; the Authenticode signature no longer
matches afterwards. That is expected for a self-restyled binary, and
dsh_icon_restore(or a DSH update) brings the signed original back. - A DSH update replaces the executable, so re-run
dsh_icon_applyafter one. The tray icon and shortcuts survive an update only if the updater leavesresources\and the.lnkfiles alone;dsh_icon_statusshows what is live. - Each apply keeps its source image as
source.pngnext to the generated set, so an icon can be rebuilt or re-applied from the plugin's own folder. - Everything the plugin writes lives in
%LOCALAPPDATA%\DSH-IconStudio\; delete that folder afterdsh_icon_restoreto reclaim the backup space.
Tests
Run with the bundled Node runtime (electron --expose-internals --check works
for syntax checks):
| Test | Covers |
|---|---|
node tests/engine.mjs |
Host module shape + engine selftest (7 frames, all sizes) |
node tests/routes.mjs |
The five settings-page routes: fence, validation, status, build from an uploaded PNG, preview bytes |
node tests/client.mjs |
The client module wrapper: settings-section registration and a render pass with a stub React |
License
MIT. See LICENSE.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10645
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10645
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8283
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7472
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5336
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1060
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.