DeepSeek Harness Plugin

Moolight/dsh-shader-workbench

Stars ★ 0 Category UI Enhancements Added 2026-10-17

Node-based GLSL workbench: wire a shader graph on a canvas and preview it live, compile it to Shadertoy-compatible GLSL with multi-pass buffers (BufferA–D), hot-reload as you edit, cross-compile to HLSL / MSL / SPIR-V, and keep projects, materials, snapshots and resources (images, audio, lyrics) in a local workspace. Ships 57 built-in nodes, 8 bundled examples and 11 agent tools. No runtime dependencies.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:Moolight/dsh-shader-workbench

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

简体中文 · English

A node-based GLSL workbench for DSH (DeepSeek Harness): wire up a graph, watch it render live with Shadertoy-compatible output, hot-reload as you edit, and keep your projects and materials in a local workspace.

Installed into DSH it gives you a sidebar entry plus one full workbench panel, and it exposes 11 tools so an agent can create projects, build graphs, compile, export and snapshot the same data you see in the panel.

  • Zero runtime dependencies. No build chain — plain hand-written ESM JavaScript. Installing it means dropping a directory somewhere.
  • The graph is the program. The built-in library holds 57 generic nodes only. Anything effect-specific gets broken down into ordinary nodes you can open and edit on the canvas — no black boxes.
  • Repetition is a language feature. A group with "repeat" > 1 compiles to a real loop; the body is written once (the 99-step IFS tunnel and the 24-segment Bézier both rely on it, keeping the graph and the generated shader two orders of magnitude smaller).
  • Extensible without restarting. Drop a JSON file into <workspace>/library/nodes/ to add a node; node categories and project names are both hierarchical.
  • Undo/redo, grouping and canvas notes. A snapshot-based undo stack (dual count + byte budget, same-kind operations coalesced), plus group frames and notes you can drag around the canvas.
  • One graph, five platforms. GLSL / HLSL / MSL / SPIR-V (a real .spv binary plus a readable .spvasm) / JSON bundle. Both the cross-compiler and the SPIR-V binary encoder are written from scratch — no external shader toolchain is required.
  • Bring Shadertoy shaders straight in. Paste a mainImage() source and it becomes a reusable user node; a material can be packed into a ZIP and carried away.
  • Resources travel with the material. Images, audio and lyrics all live in one manifest list (resources[], backed by an extensible type registry). Lyrics render as an HTML layer over the canvas — LRC timeline highlighting, no shader cost.
  • Panel and agent share one toolset and one workspace. The storage root is editable in the panel; both sides always look at the same data.
  • 169 test cases, including real WebGL2 compile checks, GPU pixel readback, real mouse-drag interaction, 1080p performance measurement, and point-by-point numerical equivalence of the cross-platform translations.

Install

cd ~/.dsh/profiles/desktop
# package.json: add "dsh-shader-workbench": "file:<path to this repo>" to dependencies,
#               and "dsh-shader-workbench" to dsh.profile.bundles
node <path to pnpm.cjs> install

Restart DSH and a "Shader 工作台" entry shows up in the sidebar. Storage location, configuration and load troubleshooting: docs/安装与配置.md.

Eight bundled examples

Click 载入示例 (Load example) in the panel's resource tree. Not a single new node type was added for them — they are built entirely from the existing library.

The other four (Fourier series, harmonic spectrum, depth of field, FFT music visualisation) and how each one is built: examples/README.md.

Documentation

The detailed docs are Chinese-first for now; English issues and pull requests are very welcome.

Document Contents
安装与配置.md — Install & config Installing, storage location and precedence, security boundaries, load troubleshooting
使用手册.md — User manual UI, canvas operations and shortcuts, the 57-node library, resources (images / audio / lyrics), the 11 tools, workspace layout
扩展指南.md — Extending Three ways to add nodes: user nodes / groups and repeat groups / built-in nodes
开发与验证.md — Dev & verification Dev commands, real-machine verification and measured performance, size, what's not done yet
接口契约.md — Interface contract HTTP actions, node definition and codegen contracts (read this before changing code)
架构说明.md — Architecture Layers, data flow, key design tradeoffs and the pits we fell into
验收报告.md — Acceptance report Per-milestone acceptance records from real runs
examples/README.md What each of the 8 examples demonstrates and how it is wired

Repository


"Workbench" is meant literally: this is a workbench, not a render engine — the engine is just WebGL2, and everything else exists so you can wire nodes and watch the picture at the same time.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.