DeepSeek Harness 插件

Lkrain821/dsh-pixelwhale

Star 数 ★ 1 分类 UI 增强 收录于 2026-09-18

把「深度求索中」变成像素字,旁边一只像素蓝鲸喷水摆尾。

安装

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:Lkrain821/dsh-pixelwhale

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

PixelWhale

深度求索时,派一只像素蓝鲸为你喷水摆尾。

A DSH (DeepSeek Harness) web UI plugin: while the model is thinking, the native 「深度求索中…」/ "Deep diving…" status row becomes a pixel-art DeepSeek blue whale spouting and wagging its tail, next to the same status text rendered in a pixel font with a glyph-level shimmer.

Features

  • 🐋 Animated pixel whale — the hand-drawn DeepSeek blue-whale art (40×25 grid, 6-tone palette), expanded into an 84-frame spout + tail-wag loop, downsampled to 27×18 and painted as a CSS sprite sheet (steps() animation).
  • 🔤 Real pixel font — Fusion Pixel 12px, subsetted to exactly the characters the status row uses (ASCII + the Chinese glyphs + a narrowed middle dot), embedded as WOFF2 so it works offline.
  • ✨ Glyph-level shimmer — the moving highlight is clipped to the text glyphs (background-clip: text), so it travels across the strokes instead of the row.
  • 📐 Sits on the text baseline — align-items: baseline on the status row puts the bottom of the whale on the same line as the bottom of the glyphs, hugging the text on its left.
  • 🎯 Non-invasive — the native text node, language, timer and update logic are untouched; only CSS is applied to the thinking row.
  • 🪶 Zero runtime overhead — no MutationObserver, no polling, no timers, no DOM writes after setup. The client half injects a single <style> element and nothing else runs, so there is no per-frame work and no memory growth while streaming.

Install

From the DSH plugin market, or:

dsh plugin --profile desktop add https://github.com/Lkrain821/dsh-pixelwhale

Then restart DSH.

How it works

  • The host half (lib/index.js) is a client-only cosmetics entry — it just mounts the bundle and exposes the browser half via exports["./client"].
  • The client half (lib/client.js) injects one <style> element containing:
    • @font-face rules for the subsetted pixel font, scoped with unicode-range;
    • a sprite-sheet background-image + @keyframes on the native whale icon ([data-chat-running="true"] [class*="runningIcon"]), which replaces the shipped whale drawing without inserting any node;
    • background-clip: text shimmer and the pixel font on the status text;
    • align-items: baseline on runningContent so the whale bottom lines up with the text baseline;
    • a prefers-reduced-motion: reduce fallback that pins the first frame and drops the shimmer.

Everything is keyed on the [data-chat-running="true"] attribute DSH puts on the thinking row, so the whole effect appears and disappears with that row.

Verified against DSH 2.0.20-next. Selectors are attribute/substring based (data-chat-running, runningIcon, runningContent, runningText) rather than hashed CSS-module names, so they tolerate ordinary client rebuilds.

Font license

The embedded pixel font is Fusion Pixel Font, licensed under SIL Open Font License 1.1 (OFL-1.1). See FONT-LICENSE-OFL.txt. Font copyright belongs to TakWolf (https://takwolf.com) and upstream font authors.

The whale frames are derived from the DeepSeek blue-whale art used by dsh-TUI / dsh-ui-whale, courtesy of @lhh010.

License

MIT (see package.json). The bundled font carries its own OFL-1.1 license.

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。