Introduction¶
Conversational models within the DeepSeek Harness (DSH) typically rely on text-only interfaces: they can write code and call tools, but they cannot inherently “draw an image” or “render a video.” Common workarounds involve modifying the Harness source code, writing one-off scripts, or embedding generation capabilities into static Skills—none of which are convenient for maintenance or switching endpoints.
Here we introduce the community plugin dsh-omni-modal (maintainer yzhclcl). It adds Omni-modal settings to the DSH settings sidebar, allowing you to configure any OpenAI-compatible image or video API. It registers three tools for the model: generate_image, generate_video, and check_video. There is no need to modify the Harness source code. The plugin is categorized under “Model Inference.” While the current GitHub stars count is 0, it is functional and follows the Harness Developer Preview, meaning interfaces may change.
What is this¶
dsh-omni-modal is an npm package under the official DSH plugin mechanism (version 0.1.0, MIT license). It provides a configuration page within the settings that saves in real-time (it is not a static Skill), registering routes and tools on the Host side while injecting the settings UI on the Client side. The goal is straightforward: enable text models to perform text-to-image generation, asynchronous text-to-video generation, and polling for video retrieval via tool calls, saving the artifacts to the plugin’s data directory.
Core Features¶
Settings Page and Multi-Profile Configuration¶
- Omni-modal settings: Edit the endpoint, API Key, model, paths, default sizes, etc., within Settings → Omni-modal settings. Changes take effect for subsequent tool calls after clicking Save, without requiring a DSH restart (a restart is required after the initial installation to load the Host and settings entry).
- Multi-profile configuration: Multiple endpoints can coexist. You can name them and switch the currently active profile. You can also pass an optional parameter
profilein a single call to use a non-active profile. - Separate image and video configuration: Within the same profile, images and videos have their own independent fields for
baseUrl,apiKey,model, paths, sizes, etc. - Extra request parameters: Free-form JSON merged into the request body to accommodate vendor-specific fields (e.g.,
{"quality":"high"},{"mode":"text","aspect_ratio":"16:9"}). - Connectivity test: One-click detection of
GET <baseUrl>/models(falling back to the base URL itself if that fails), without consuming generation quota.
Three Model-Visible Tools¶
| Tool | Description |
|---|---|
generate_image |
Synchronous text-to-image generation. Saves PNG/JPEG/WebP to disk; if the attachment service is available, it can return an inline preview card. |
generate_video |
Asynchronous submission. Returns a task ID immediately while the video is still rendering. |
check_video |
Polls the task; downloads the video to disk upon success. Task records persist across restarts. |
Tool signatures (from README):
generate_image(prompt, size?, model?, profile?, save_to?)
generate_video(prompt, model?, profile?, size?, seconds?, image_url?)
check_video(task_id, profile?, save_to?)
Key points:
generate_imagereturns synchronously; files are saved inmedia/within the plugin’s data directory. The model cannot see the pixels; to “see” the image, you must callread_imageon the returned path.- After
generate_videoreturns ataskId, callcheck_video(task_id)later; when the status issucceeded, it automatically downloads tomedia/. - Passing a non-existent
profilewill result in a hard error listing available profiles, preventing the silent use of wrong endpoints. check_videoreturnsstatus: "failed"/"succeeded"and amessagefor 404s or download failures. This is a soft failure to avoid interrupting the entire tool call round with a throw.- 429 / 503 errors will prompt a retry later, treating them as retryable server-side states.
Implementation Form¶
The README states: Pure ESM Host combined with a handwritten CJS Client bundle, featuring no build step and no bundler required.
Installation and Activation¶
Environment requirements: Node.js ≥ 18, DeepSeek Harness installed; package.json must have engines.dsh and several @deepseek-ai/* peer dependencies matching the current Harness preview version range.
Official installation command (from README):
dsh plugin --profile <profile> add github:yzhclcl/dsh-omni-modal
<profile> is the DSH profile name (e.g., web, desktop). To pin a version, add #v0.1.0 after the repository name.
Restart DSH after installation: The Host registers routes and tools at startup, and the settings will only appear in the sidebar after this step.
For offline use or when not using pnpm, the README provides manual link: dependencies and bundles configuration. It emphasizes using symbolic links to place files in node_modules, and do not copy the entire package in. Doing so causes Symbol cross-module inconsistencies resulting in Cannot read properties of undefined (reading 'prepare') that cannot be recovered by restarting. See the GitHub README for details.
Typical Usage¶
State Requirements Directly in Conversation¶
Once Omni-modal is installed and configured, tools can be triggered using natural language. README examples:
- “Draw a strawberry on a pale blue plate.” → Calls
generate_image - “Make a short video of a paper boat drifting down a stream.” → First
generate_video, thencheck_video
Settings Page Sections¶
| Section | Content |
|---|---|
| Config profiles | Select active profile, rename, add (copy from current)/ delete |
| Image | Base URL, API key, model, request path, default size, extra request params |
| Video | Base URL, API key, model, submit path, query path, default resolution, default duration, extra request params |
| Task records | Status and artifact paths of submitted video tasks |
Configuration notes (from README):
- Base URL only: Enter only the address, e.g.,
https://api.example.com/v1; the plugin strips erroneously pastedPOST/GETprefixes, but entering only the URL is safer. - Query path: Can be a relative path (appended to the base URL) or a full URL (when the query interface is not under the base). Placeholders:
{id}→ task ID returned from submission;{model}→ the model name of that profile. - When
profileis not passed, the tool always uses the currently active profile.
Example: Agnes AI¶
The README demonstrates field differences for images and videos using apihub.agnes-ai.com (video queries go through /agnesapi?... outside the base). Image side example: Base URL https://apihub.agnes-ai.com/v1, Model agnes-image-2.5-flash, Request path /images/generations. Video side: Submit path /videos (not /videos/generations), Query path is a full URL with {id}, {model}, and Extra params include "mode":"text" etc. See the Repository README for the full table.
Use Cases and Notes¶
Who it is for: Users already running text models in DSH who want to manage multiple OpenAI-compatible image/video generation endpoints centrally in settings, allowing the Agent to complete generation and retrieval via standard tool calls without touching Harness core code.
Permissions and Security: The plugin runs with the current DSH process privileges. It sends API Keys and prompts to configured third-party URLs and writes media to the local media/ directory. Please read the Source Code and the MIT license before installation to ensure the endpoint and key management methods comply with your environment policy.
Ecosystem Note: The DSH community plugin directory is hosted on an independent site SkillHub. It has no official affiliation with DeepSeek / High-Flyer. Selecting plugins is a personal/team evaluation decision.
Conclusion¶
dsh-omni-modal consolidates “configure endpoint + generate image + async video generation + poll download” into an Omni-modal setting and three tools within DSH. It supports multi-profiles and separate image/video configurations, making it suitable for connecting to various OpenAI-compatible services.
- Directory Page: https://www.skillhub.cn/plugins/yzhclcl/dsh-omni-modal
- Source Code and Full Documentation: https://github.com/yzhclcl/dsh-omni-modal