Introduction¶
When building agents or performing daily development in DeepSeek Harness (DSH), generating images is a frequent requirement: sometimes you want the conversational model to trigger generation directly via natural language, while other times you prefer selecting reference images, switching models, and adjusting aspect ratios in a sidebar without consuming conversation turns. Embedding image generation logic into custom scripts or external services often requires manual management of API keys, storage paths, and “previous image” references within the session.
dsh-image-lite is a DSH image generation plugin (Category: Model Inference) released by community maintainer yupaoa. It provides two entry points—Conversation Mode and Workbench Mode—sharing the same model library and quick configuration. The plugin is self-contained with no additional runtime dependencies, and keys are resolved via the DSH core credential service. The following section describes its positioning, capabilities, and installation instructions.
What is this¶
dsh-image-lite is designed for developers already using DSH. It allows the conversational model to generate images from text or iterate with reference images via the image_generate_lite tool within any session, or enables manual completion of the same workflow in the “Image Generation Workbench” right panel.
- Maintainer: yupaoa
- Repository: github.com/yupaoa/dsh-image-lite
- Community Directory Page: skillhub.cn/plugins/yupaoa/dsh-image-lite
- Current Package Version: 0.1.0; License: MIT
Environment Requirements (from README): DSH >= 0.2.1-rc.2, Node.js ^22.19.0 || >= 24.0.0 (bundled with host). Availability is not guaranteed for DSH versions lower than this, as interfaces such as configForms and right-panel tab registration relied upon by the plugin only stabilized in the 0.2.1 series.
Core Features¶
Conversation Mode¶
In any session, simply say “Draw a picture of…”, “Generate an image”, or “Give me a 16:9 one”, and the conversational model will automatically call image_generate_lite:
- Without reference images → Text-to-Image.
- Say “Change this to…” or “Reference the previous one” → Image-to-Image with
referenceImages. - Result text embeds refs JSON, allowing you to say “Continue with this” in the next turn, supporting chained image generation.
Workbench Mode¶
Open the “Image Generation Workbench” tab in the right panel via the “Generate Image” badge in the session header or the guidance card in the right panel:
- Reference Images: “Continue with this” from recent session results, or via upload/paste (subject to attachment admission).
- Model and Ratio Switching: Adjustable in real-time; writes to the same plugin entry and takes effect immediately (hot reload).
- Workflow: Description → Generation → Result Gallery & Lightbox → Select result to continue iterating.
- Reset: The red “Clear” button in the top right corner resets reference images, descriptions, and results in one click.
This process does not consume conversation turns.
Shared Configuration and Storage¶
Both modes share the plugin entry image-gen-lite (volatile, hot-reloading). You can configure the following in Plugin Page → dsh-image-lite → Plugin Configuration (plugins.bundle.config card):
- Model Library: Add, delete, or modify providers/models (name, baseUrl, interface format, key environment variable, model list; each line formatted as
idorid Display Name). - Quick Configuration: Default model and default image specifications (7 aspect ratios + auto); takes effect on the next
image_generate_litecall. - Image Storage Location: Defaults to
<Session Workspace>/generate/imageif left empty; absolute paths can also be entered. The “Open Folder” button allows selection via the system file picker. - Sidebar · Use Image Generation Workbench in Sidebar (Toggle, default on): When off, the right panel “Image Generation Work” tab, guidance cards, and the “Generate Image” button in the session header are immediately hidden (
image_generate_liteis unaffected); refreshing the window restores them when re-enabled.
The model library, defaults, output directory, and sidebar toggle are stored in the image-gen-lite section of the DSH profile configuration (the README notes local testing stored this in ~/.dsh/profiles/<profile>/cordis.patch.yml). API keys are indexed by environment variable name in the DSH Credential Service (e.g., IMAGE_GEN_AGNES_API_KEY; the configuration only retains the variable name and a mask). Generated images are saved to the default or specified output directory. When switching machines, bring the profile and credential storage to retain the model library and keys; uninstalling the plugin will not delete them.
How it Works (Brief)¶
Both entry points share a single pipeline: Read Settings → Resolve Key → Send one HTTPS request to {baseUrl}/images/generations (openai-images convention) → Decode b64_json or download via url → Save to disk and register as session attachment. The Workbench uses local RPC via the DSH web server at /image-gen-lite/* (protected by DSH login token) to run the same logic. Network egress is limited to the configured provider baseUrl and result image URLs; the README explicitly states there is no telemetry and no access to other sites.
Installation and Activation¶
The installation method provided in the README is a local link package (you need to place the plugin directory on your machine first, then replace the path):
# Install local package from DSH Desktop CLI / Plugin Page (link: method):
dsh plugin --profile desktop add link:D:\path\to\dsh-image-lite
After restarting DSH (or when HMR automatically recomposes):
- Plugin Page → dsh-image-lite: Add providers/models, paste keys into the provider card, and select the default model and specifications.
- Conversation Mode: Say “Draw a picture of…” in a session to automatically call
image_generate_lite. - Workbench Mode: A “Generate Image” badge appears in the session header; click it to enter the right panel “Image Generation Work” tab (the “Sidebar” toggle on the plugin page can disable the badge and tab, though tool calls remain available).
Typical Usage¶
Conversational Text-to-Image: Directly describe the scene and aspect ratio in the session (e.g., requesting 16:9), allowing the model to call image_generate_lite to generate the image.
Chained Image Editing: After generation, say “Reference the previous one, change the background to…”, and the plugin will make another request round with referenceImages.
Workbench Iteration: Open the “Image Generation Workbench”, upload or paste reference images, switch models and ratios, fill in the description and generate; select a result in the gallery to continue editing, or use “Clear” to start over.
Keys are pasted into the provider card on the plugin page and stored in the DSH Credential Service; the configuration retains only the environment variable name and a mask (example format: sk-0****7890).
Use Cases and Notes¶
Suitable for scenarios where you need a unified model library within DSH sessions and the image generation UI, while wanting to avoid plaintext keys in the plugin and require controllable output paths. The Workbench is ideal for tasks requiring repeated parameter tuning without consuming conversation tokens; Conversation Mode is suited for letting the model automatically decide whether to include reference images based on context.
Please note before use:
- The plugin runs with the permissions of the current DSH process. Before installation, review the source code and MIT license on GitHub, and understand the read/write/network boundaries described in the README (e.g., reference images only accept explicitly passed attachments, and generated image paths have a whitelist).
- The community directory skillhub.cn is an independent ecosystem site with no official affiliation with DeepSeek / High-Flyer; this plugin is not an official built-in component.
- Uninstalling the plugin will not delete generated images or keys in credentials; thorough cleanup requires manually deleting the
image-gen-litesection in the profile, the corresponding credential environment variable names, and the output directory.
Conclusion¶
dsh-image-lite consolidates image generation in DSH into a dual-entry system: “Conversation Tool + Sidebar Workbench”. Configuration and keys follow the profile, and the documentation defines clear boundaries for requests and storage paths. For further information, visit the Community Directory Page and the GitHub Repository.