Introduction¶
When organizing materials, creating content, or having conversations with multi-file context in DeepSeek Harness (DSH), it’s common to repeatedly paste paths and screenshots in chat, or split references and outputs across multiple windows. Context easily breaks, and the Agent struggles to consistently “see” the relationships of materials you’re comparing. The DSH Client Canvas (@xindong/dsh-client-canvas) described below puts images, audio/video, 3D, PDF, documents, and code into a single persistent local canvas, organizing relationships through nodes and connections, and reuses the native DSH conversation alongside the canvas. You can send commands to the Agent by selecting materials, while the Agent can directly read and write the same canvas data through tools.
What Is This¶
DSH Client Canvas is a client-side (Web) plugin in the DSH ecosystem, published by maintainer xindong. The current npm package version is 0.1.2, licensed under MIT. It provides DSH with a browser-side multimodal canvas tab: rendering and interaction are based on PixiBoardSDK, while canvas documents and resources are authoritatively stored locally by @xindong/dsh-canvas. The browser and Agent share the same data, rather than maintaining a separate copy in the browser.
SkillHub directory page: xindong/dsh-client-canvas. Source code and documentation: GitHub - xindong/dsh-client-canvas.
Core Features¶
Multimodal Workspace¶
- Centralized Material Display: Images are viewed directly; video and audio can be played; 3D models, PDF, Office, HTML, Markdown, text, and code generate previews; other formats retain file cards and downloads. Office preview depends on the
officeToPdfservice provided by DSH. - Visual Context Organization: Supports multiple canvases, free layout, zoom, selection, and directed connections, linking references, process nodes, and outputs into a browsable relationship graph.
- Node-Agent Collaboration: Select materials to send “Agent Actions”, optionally carrying current node, source, subsequent, or connected node context; the right side of the canvas has a draggable, collapsible floating conversation panel reusing the native DSH conversation input.
- Agent Reads/Writes Canvas: Through
canvas_readandcanvas_write, the Agent can query content, create/update nodes, adjust layout, and manage connections; generated results can be imported into the canvas preserving node relationships. - Local Persistence and Configuration: Documents and resources are saved locally; canvas styles, node reference scope, system prompts, and dynamic canvas summaries can be configured.
File Preview (Summary)¶
When importing HTML, Markdown, text/code, and JSON/CSV/XML/YAML, a card is shown first, with preview generation in the background; PDFs show the first page by default; 3D formats like GLB/GLTF, FBX, OBJ are supported via mivo-model-viewer@0.7.0. Previews are processed by a local server-side service with type dispatch and caching; if Chromium is missing when browser rendering is first needed, the plugin can auto-install (up to 5 minutes), or you can run node scripts/setup-preview-runtime.mjs in the plugin directory and retry if it fails. See the preview documentation in the repository for details.
Environment and Installation¶
Requirements (subject to the README):
- Node.js 22.18+
- DSH 0.2.0-rc.2 (earlier versions not supported)
- Core uses DSH’s
toolsandsystemPrompt; Web plugin uses Web Server and Conversation UI; Office preview requiresofficeToPdfservice - Depends on published
pixiboardjs@0.1.0-alpha.5, which must match the SDK commit of the upstream site snapshot
In an existing DSH installation, install the complete canvas UI and Agent tools with a single command:
dsh plugin --profile web add github:xindong/dsh-client-canvas
The Web package will transitively install @xindong/dsh-canvas and enable Core before Web, so you generally don’t need to install Core separately. Start DSH:
dsh web
After installing or updating the plugin, if DSH is already running, you need to restart the process and then refresh the browser. Use the full login URL provided by DSH (including ?token=...), and switch to the Canvas tab in the conversation. The data directory follows $DSH_HOME (default ~/.dsh); old canvases are not automatically migrated.
If you only want documents and Agent tools without the Web UI, you can install Core separately:
dsh plugin --profile web add github:xindong/dsh-canvas
Migrating from the old dual-plugin setup: First stop DSH, then execute:
dsh plugin --profile web add github:xindong/dsh-client-canvas
dsh plugin --profile web remove @xindong/dsh-canvas
Check dsh.profile.bundles in ~/.dsh/profiles/web/package.json, keeping only @xindong/dsh-client-canvas; do not duplicate selections with @xindong/dsh-canvas; do not delete the canvas directory or canvas-storage.json.
Typical Usage¶
Operating in the Canvas Tab¶
- Create or select a canvas, drag in images, audio/video, or files; use interactions like selection, zoom, right-click menu, rename, download, screenshot, and playback.
- Select a node and click “Agent Action”, entering instructions for that node; Enter to send, Shift+Enter for newline. Before sending, the canvas is saved first, then node, relationship, and resource context are sent to the current DSH conversation.
- The gear icon on the left can change canvas and connection styles; node and prompt settings require clicking “Save Settings” to take effect. In the “Configuration” page, you can fill in the absolute path or
~/...of an existing canvas directory; pointers are written to$DSH_HOME/canvas-storage.jsonand take effect after restarting DSH (switching directories does not migrate original data).
The default canvas path is $DSH_HOME/canvas, media is in the assets subdirectory; connection relationships are in the document’s metadata.connections.
Agent Tool Examples¶
Read (board_id can be omitted, meaning current canvas):
{"board_id":"board-id","node_ids":["source","result"],"limit":100}
Write (read revision before writing, re-read after conflict then submit):
{"board_id":"board-id","expected_revision":12,"operations":[{"type":"create","nodes":[{"id":"result","type":"processing","x":400,"y":100,"props":{"title":"生成结果","status":"running"}}]}]}
canvas_write supports create, update, in-place transform, delete, layout and connection add/modify/delete, all committed in the same transaction. processing is only a placeholder node, does not automatically run AI tasks; use existing DSH tools to generate content, then import via asset_source or convert nodes. Single file sources can be local paths or public HTTP(S) URLs (up to 64 MiB); see dsh-canvas documentation for parameters.
Use Cases and Notes¶
Suitable for: Those who need to place multimodal references, intermediate steps, and outputs in the same visual space in DSH, and want the Agent to read and write on the same canvas with you—e.g., material collection, multi-file comparative creation, putting conversation results back into structured nodes.
Notes:
- The plugin runs with the current DSH process permissions. Before installation, read the source code and MIT license, and understand the security boundary descriptions for previews, URL imports (public HTTP(S) only, no redirect following); do not treat external file content as trusted instructions, and desensitize login links and canvas data when reporting issues.
- The community directory SkillHub is an independent site, with no official affiliation with DeepSeek / High-Flyer; DSH itself follows an “everything is a plugin” extension approach.
- iframes are used for style and keyboard shortcut isolation, not a complete security boundary for untrusted code; protect session credentials and the local canvas directory, and back up both the canvas directory and
canvas-storage.json.
Conclusion¶
DSH Client Canvas brings multimodal materials, visual context, and DSH Agent conversations into a single local persistent canvas: humans can organize and preview in the Tab, while the Agent collaborates with you on the same document using canvas_read / canvas_write. To try it, check version requirements on the directory page or GitHub README, then use the official command to install into the web profile and open the Canvas tab with dsh web.
- Directory page: https://www.skillhub.cn/plugins/xindong/dsh-client-canvas
- GitHub: https://github.com/xindong/dsh-client-canvas