dsh-shader-workbench: A Node-Based GLSL Workbench in DSH

Preface

For shader collaboration in DSH (DeepSeek Harness), the common approaches are hand-writing GLSL, opening Shadertoy separately in a browser, or having the agent modify files and then manually compiling and previewing. Node editors, real-time rendering, asset paths, and export formats are often scattered across different tools, and it is difficult for the agent to directly operate on the same set of project data.

The following is a workflow plugin maintained by Moolight, dsh-shader-workbench: installed in the DSH sidebar, it provides node-based GLSL composition, Shadertoy-compatible preview, hot reload, and local material management; the panel and the agent share 11 tools and the same workspace. The repository is licensed under MIT, the current package.json version is 0.1.0, requiring DSH >=0.2.0-rc.2 and Node >=22.19.0.

What Is This

DSH Shader Workbench is a DeepSeek Harness plugin categorized as workflow. Its positioning is a “workbench” rather than a standalone rendering engine: the preview engine is WebGL2, and other capabilities revolve around “connecting nodes, viewing output, managing assets, and exporting multi-platform shaders”.

The plugin self-describes as having zero third-party runtime dependencies (dependencies is empty), hand-written ESM JavaScript, and installing as a single directory; the README notes 169 passing test cases, 57 built-in universal nodes, and 8 built-in examples.

Core Features

Node Graphs and Compilation

The node graph is the program logic: effect-specific logic is broken into ordinary, editable nodes on the graph — no black boxes. When a group’s “repeat count” is greater than 1, it is equivalent to a loop, with the loop body written only once (the documentation gives examples: a 99-step IFS tunnel, 24-segment Bezier sampling).

The same graph can be exported as:

  • GLSL
  • HLSL
  • MSL
  • SPIR-V (.spv binary and human-readable .spvasm)
  • JSON bundle

Cross-platform transpilation and SPIR-V binaries are implemented by the plugin itself, without relying on external shader toolchains.

Shadertoy-Compatible Preview and Import

Supports Shadertoy-style real-time preview and hot reload. Source code containing mainImage() can be pasted in and converted into reusable user nodes; materials can be packaged as a ZIP and taken away.

Local Materials and Assets

Images, audio, and lyrics are uniformly entered into the material manifest (resources[], the type registry is extensible). Lyrics are layered on the screen as HTML, with LRC timeline highlighting, without consuming shader channels.

Editing Experience and Extension

  • Snapshot-based undo/redo (dual budget of count and bytes, merging same-type operations)
  • Canvas box-select grouping and annotations
  • User nodes: place a JSON into <workspace>/library/nodes/ to extend, no restart required
  • Node categories and project names support multi-level paths

Agent and Panel Consistency

The sidebar entry “Shader Workbench” opens the panel; at the same time, 11 tools are exposed to the agent for creating projects, building node graphs, compiling, exporting, taking snapshots, and so on. The storage location can be changed in the panel, and the panel and the agent always read and write the same data.

Installation and Enabling

The installation steps follow the repository README (local file: dependency, not a dsh plugin add-style command):

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

After completion, restart DSH, and “Shader Workbench” will appear in the sidebar. For storage location, configuration options, and troubleshooting loading issues, see the repository documentation Installation and Configuration.

Typical Usage

Loading Built-in Examples

Click Load Example in the panel’s asset tree. None of the eight examples add new custom node types — they are built only with existing components. The four examples explicitly listed in the README table are:

Example Key Points
IFS tunnel (Phantom Star port) 99 steps accumulated as a single repeat group
DFT: drawing a heart this round Rotating vector split into nodes, BufferA feedback
9-sample Gaussian blur Two passes, adjustable radius
Cubic Bezier 24-segment sampling as a single repeat group, draggable control points

There are also Fourier series, harmonic spectrum, depth of field, and FFT music visualization; see Example Notes for how they are done.

Documentation Entry Points

Document Content
User Manual UI, keyboard shortcuts, 57 nodes, 11 tools, workspace structure
Extension Guide User nodes / groups and repeat groups / built-in nodes
Interface Contract HTTP actions, node definitions, and code generation (recommended reading before modifying code)
Architecture Notes Layering, data flow, and design trade-offs

Use Cases and Notes

Who it’s for

  • Developers already working in DSH who need node-based GLSL composition, instant preview, and occasional HLSL / MSL / SPIR-V export
  • Teams who want the agent and humans to modify shader projects and take snapshots in the same workspace
  • Scenarios migrating fragments from Shadertoy, or needing to manage images / audio / lyrics together with materials

Things to note before use

  • The plugin runs with the permissions of the current DSH process; please review the source code and the MIT license yourself before installation, and confirm the storage path and security boundary (see the official installation and configuration documentation).
  • Community directories such as SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer; stars and versions are subject to GitHub and package.json (if the directory page shows 0 stars, the repository takes precedence).
  • Detailed configuration options are only as documented in the repository documentation; this article does not enumerate configuration fields that are not expanded in the published README.

Conclusion

dsh-shader-workbench brings node editing, Shadertoy-style preview, multi-target export, and the material manifest into the DSH sidebar, and aligns with the agent’s tools, reducing the fragmentation between the two workflows of “humans editing graphs, agents editing files”. To try it out or contribute, you can enter from the community directory page, or directly open the GitHub repository and install following the README.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye