Preface¶
In DeepSeek Harness (DSH), third-party plugins participate in the global response by default after installation. When there are many plugins, resident capabilities (e.g., metering, style-based plugins) get mixed with capabilities that are “only needed in specific conversations.” This makes it difficult to enable or disable them on demand and inconvenient to manage several plugins as a single workflow.
kkaporn/dsh-session-composer (npm package name dsh-plugin-canvas) provides an infinite canvas: dragging installed third-party plugins onto the canvas removes them from the global scope, allowing them to form “compositions” on the canvas. Enabling a composition allows the plugins within it to rejoin the global response. Maintained by kkaporn, categorized as “Workflow” in the community directory; the repository is under the MIT license, and the current package version is 1.0.0.
What is this¶
Positioning in one sentence: Infinite Canvas Plugin Repository — orchestrate third-party plugins on a canvas, using enable/disable compositions to control which plugins participate in the global response.
It does not modify any plugin’s code, configuration, dependencies, or data; enabling and disabling are fully delegated to the host’s pluginManager.setBundleEnabled / setPluginEnabled. Persisted state is written only to ~/.dsh/plugin-canvas/state.json, without writing to YAML or package.json.
Core Model¶
The table below describes the relationship between plugin states and the global response (source material):
| Action | Result |
|---|---|
| Installed (untouched) | Plugin is in the Core Library, participating in global response |
| Drag to canvas | Plugin leaves global scope, enters canvas (dormant) |
| Enable composition | Plugins within the composition enter global response |
| Disable composition | Plugins within the composition leave global scope |
Resident plugins (examples from README: ponytail, cost-meter) will remain in the global response as long as they are not dragged onto the canvas.
Security & Design Constraints¶
- Hard Isolation of Core:
@deepseek-ai/*is never displayed and never operated on. - Switch Only: Enabling/disabling is 100% handled via the host
pluginManager; the plugin body is not modified. - No Config Files: No project configuration is written other than
state.json. - Duplicate Entry ID Blocking: Checked before saving a composition; if entry IDs conflict (which could cause startup crashes), the save is rejected directly.
Architecture Overview¶
- Host Side (
lib/index.js): 5 HTTP routes——/state,/drag,/activate,/save,/delete; enable/disable is delegated topluginManager, state is written to~/.dsh/plugin-canvas/state.json. - Client (
lib/client.js): Registers entry atconversation.composer.dock; hand-written infinite canvas (node dragging, panning/zooming, wiring, drag-in plugins), no React Flow dependency. - Runtime: Zero extra npm runtime dependencies (pure
node:built-in modules); requires Node>=18; peer dependencies@deepseek-ai/dsh(>=0.2.0-rc.2 <0.3.0-0) and optional@deepseek-ai/cordis(~4.0.4).
Installation & Activation¶
Install from GitHub (command from repository README):
dsh plugin add github:kkaporn/dsh-session-composer
If the source code directory has been checked out locally, you can also point to that path:
dsh plugin add /path/to/dsh-plugin-canvas
After installation, open the canvas interface via the composer entry in the conversation sidebar (client registration point conversation.composer.dock). Drag plugins onto the canvas, save compositions, and enable or disable compositions as needed.
Typical Usage (Reproducible Flow)¶
- Use
dsh plugin addto install this plugin and required third-party plugins; keep plugins that need long-term global effect in the core library, do not drag them to the canvas. - Open the composer canvas, drag plugins from the core library that you do not want to respond globally for the time being onto the canvas (after dragging, the plugin leaves the global scope and is dormant).
- Orchestrate multiple plugins into a group on the canvas and save the composition; the host validates entry IDs before saving to prevent startup crashes caused by duplicate IDs.
- When a specific workflow is needed, enable the composition, and the plugins within it re-enter the global response; after usage, disable the composition, and the plugins within it leave the global scope.
The HTTP interfaces provided by the host (/state, /drag, /activate, /save, /delete) are invoked by the client interacting with the canvas; general users only need to complete the above steps via the UI.
Use Cases & Notes¶
Who it is for: Developers who have installed multiple third-party plugins in DSH and wish to switch “which plugins are active simultaneously” by session or task; when needing to treat several plugins as a switchable combination to test workflows, this plugin’s classification (Workflow) and canvas model fit well.
Important Notes:
- Plugins and the orchestrated third-party plugins both run under the current dsh process privileges; read the source code and licenses (this repo is MIT) before installation, and understand the behavior of each orchestrated plugin.
- The community directory entry on skillhub.cn and the GitHub repository are independent community information sources and have no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem philosophy is “everything is a plugin,” and directory sites are community aggregations, not official app stores.
- Development self-check (optional): Run
node test-index.mjs(host side pure functions) andnode test-client.mjs(client structure) in the repository root directory, no additional testing framework required.
Conclusion¶
dsh-session-composer uses a canvas to turn “global response” into an orchestrable, switchable combination, suitable for workflow isolation when there are many plugins. For further information, please refer to the community directory page and GitHub README:
- Directory Page: https://www.skillhub.cn/plugins/kkaporn/dsh-session-composer
- GitHub: https://github.com/kkaporn/dsh-session-composer