dsh-image-gen: An Image Generation Plugin for DeepSeek Harness
haimuhaimu/dsh-image-gen
A DSH plugin that registers a generate_image tool using Aliyun Bailian Qwen-Image, returning images as conversation attachments and auto-opening them.
dsh-image-gen is an image generation plugin for DeepSeek Harness that leverages Aliyun Bailian Qwen-Image to provide text-to-image capabilities to agents. It solves the problem that DSH lacks a built-in image generation tool, letting you describe an image in conversation and get it generated as a conversation attachment, with an automatic popup in the system viewer for instant preview. The plugin supports rich parameters like size, model, count, negative prompt, random seed, and watermark toggle, and persists images to ~/.dsh/image-gen/ for later viewing.
How to Install
dsh plugin --profile web add github:haimuhaimu/dsh-image-gen- Category
- Tools & Capabilities
- Platform
- DSH Plugin
- Author
- haimuhaimu
- Distribution
- Plugin
dsh-image-gen Key Features
dsh-image-gen Repo Summary
What Does It Do?
dsh-image-gen is a DSH plugin for DeepSeek Harness that generates images via Aliyun Bailian Qwen-Image. It solves the problem that DSH currently has no built-in image generation tool, letting you describe an image in conversation and get it generated as a conversation attachment, with an automatic popup in the system image viewer for instant preview.
Core Features
- Registers a
generate_imagetool: given a text description, it calls the Bailian text-to-image service and returns the image as a conversation attachment, viewable in subsequent steps. - Auto-preview: automatically opens the image in the system viewer after generation; can be disabled by setting
autoOpen: false. - Persistent storage: images are saved to
~/.dsh/image-gen/for later manual viewing. - Rich parameters: supports size (e.g.,
3:4,16:9,1:1or pixel values), model selection (defaultqwen-image-3.0, optionalwan2.6-t2i,z-image-turbo, etc.), count (1-6), negative prompt, random seed, watermark toggle, and more.
How to Use This Plugin?
After enabling it in DSH, the agent automatically gains the generate_image tool; just say "generate an image of ..." to DSH. Tool parameters include prompt (required), size, model, n, negative_prompt, seed, and watermark. To adjust behavior, configure blPath (path to the bl CLI) and autoOpen (whether to auto-open) in the config block of cordis.patch.yml. Generated images are stored in ~/.dsh/image-gen/ for later viewing.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: haimuhaimu/dsh-image-gen. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
DSH Plugin FAQ
