dsh-lego-plugin
Lego-style visualization of DeepSeek Harness (DSH) plugins in the Web GUI.
Each plugin renders as a Lego brick — pure CSS, no external libraries, no
WebGL. Plugins are auto-grouped by module prefix, with 5 switchable themes,
light/dark adaptation, and Chinese/English locale support.
Trademark notice. This project is not affiliated with, endorsed by, or
connected to the LEGO Group. "LEGO" is a trademark of the LEGO Group. The
brick-style appearance is a visual metaphor only.Visualization only. This plugin does not enable or disable plugins — it
reads the read-only plugin inventory and renders it.
Features
- Lego bricks — plastic-look 3D bricks (studs, gloss, side shadow); enabled
plugins are solid, disabled ones are greyed out. - Auto grouping — Cordis core / Host services / Client UI / DSH packages /
Third-party / Local, each on its own baseplate. - 5 themes — Classic red, Ocean blue, Neon purple, Forest green, Amber.
- Status dots — green = mounted, yellow = loading, red = mount failed,
grey = waiting/unloading. - Search + details — filter by name/id; click a brick to see its entry id
and state. - i18n — follows the GUI locale (中文 / English).
- Light/dark — colors come from
--dsw-alias-*theme tokens.
Screenshot
Install
Requires a DeepSeek Harness installation with the Web GUI.
dsh plugin --profile web add dsh-lego-plugin
--profile is required and names your run configuration. Use web if you
start the GUI with dsh web (the most common case), headless for the CLI,
or any other name — a missing profile is created automatically. To uninstall:
dsh plugin --profile web remove dsh-lego-plugin
Or install directly from GitHub:
dsh plugin --profile web add github:XIAOke8698/dsh-lego-plugin
Git installs build from source automatically; pnpm may ask you to allow the
package's build script, then re-run the add command.
Usage
Open Settings → Plugins and click the Lego view tab. The same view also
renders inside the latest cordis_run card in the conversation flow.
Development
src/
index.js host half (Loader entry)
client/index.js browser half — the whole feature
scripts/
build-client.mjs zero-dependency build (Node only)
node scripts/build-client.mjs
node --check lib/client.js
License
MIT