A Decorative DSH Plugin Turns Every AI Prompt Into a Unique, Spinning Nebula
For teams building on DeepSeek Harness, this plugin shows how far a purely cosmetic feature can go with deterministic hashing and Canvas 2D, and it provides a clean reference for adding privacy-conscious, offline visualizations to a web tool without pulling in heavy ML dependencies.
dsh-spiral adds a small floating window to the DeepSeek Harness web GUI. When you press Enter, the prompt is hashed through a deterministic pipeline: n-gram features are projected into 8192 hash buckets, smoothed with an FFT Gaussian kernel, and folded into a 256-segment brightness profile that modulates a pre-generated particle field on a Canvas 2D nebula. A separate semantic footprint map records the history of submissions as a trajectory.
The design deliberately avoids semantic modeling: no model files, no network requests, no reading of input beyond the submit event, and all computation stays in the browser. The 130 KB bundle runs at about 0.8 ms per analysis. The plugin respects prefers-reduced-motion, pauses when the tab is hidden, and responds to CSS theme tokens. The author openly lists the limitations: hash collisions, lossy quantization, and a fixed palette mean the galaxy is a reproducible visual fingerprint, not a mathematically unique identifier.
The plugin's honesty about its limitations is more useful than its visual appeal: it explicitly labels the output as a visual fingerprint, not a semantic or unique identifier, which sets realistic expectations for users.
Choosing a fixed random projection over UMAP means the footprint map loses any claim to semantic proximity, but the author argues the trade-off is right for a decorative feature that must never leak data or require user trust.
The distinction between the 8192-dim spectrum, the 256-segment profile, and the constant particle count is a good example of how visual complexity can be driven by a compact control signal rather than by data volume.
By keeping the embedding function isolated in analyze(), the code makes it trivial to swap in real semantic embeddings later without touching the rendering or storage layers.