An MIT DSH plugin that generates and edits images inside a DeepSeek Harness conversation: text-to-image, local edits on the original, 1–16 reference images, per-provider model switching and model-aware prompts, with results written to the session workspace.
DSH integration
Native runtime
Author-claimed
Safety audit
Unaudited
Last verified
2026-11-24
License
MIT
01What can it help you accomplish?
Generate an image inside the DSH conversation instead of switching to another tool
A new image written into the session workspace and shown straight in the chat, plus redo when the first take is wrong
Users who describe a picture in words and want the file back in the same session
Change one part of an existing picture and keep everything else
An edit driven by 1–16 reference images (local path or URL) that keeps the original as the base instead of regenerating it
Users fixing a background, a product position or a caption on an image they already have
Pick a provider and model per picture
A picker next to the chat input over every configured provider, with prompt guidance written for the selected model family
Users who keep several image APIs — cloud presets or a local ComfyUI / A1111 box — and want the cheap one for drafts
02How to install into DeepSeek Harness
Prerequisites
- DeepSeek Harness 0.2.1-rc.2 or newer — the README requires `DSH >= 0.2.1-rc.2`
- Node.js / pnpm, which DSH already ships with
- Your own image provider: an OpenAI Images compatible base URL (usually ending in `/v1`), the key for that platform and a model ID
Installation steps
- 01
Install from npm, the README's recommended path: `dsh plugin --profile desktop add dsh-mo-image`
$ dsh plugin --profile desktop add dsh-mo-image
- 02
Or install from GitHub: `git clone https://github.com/CM-Silence/dsh-mo-image.git`, then `dsh plugin --profile desktop add link:./dsh-mo-image`
$ git clone https://github.com/CM-Silence/dsh-mo-image.git
- 03
The repository can also be added directly: `dsh plugin --profile desktop add github:CM-Silence/dsh-mo-image`
$ dsh plugin --profile desktop add github:CM-Silence/dsh-mo-image
- 04
Check that the profile's `dsh.profile.bundles` contains `dsh-mo-image`, then restart DSH
- 05
Open Settings → Image model, add the provider (API URL, key, model ID), save, and choose the model to the right of the chat input
Verify the integration
- Settings → Image model exists; if the entry is missing, the README's fix is to confirm `dsh.profile.bundles` contains `dsh-mo-image` and restart DSH
- The model picker lists what you configured; when no provider has any model it says so and points back to Settings → Image model
Rollback
- Delete a provider again with the red delete action in its row: it asks for confirmation, then removes the configuration and the stored API key
03DSH integration and capability boundaries
Native DSH plugin: add it with `dsh plugin --profile desktop add dsh-mo-image`, confirm the profile's `dsh.profile.bundles` lists `dsh-mo-image`, then restart DSH. It registers the `mo_image_settings` / `mo_image_generate` / `mo_image_edit` tools and an image-model picker on the chat input bar, and keeps provider keys in the DSH credential store.
Text-to-image and redo
A prompt in the chat; `size` / `quality` are passed only while the picker leaves them on Auto→The generated image file, saved in the session workspace and displayed in the conversation
Writes every generated image into `<cwd>/generated-images/` of the current sessionSends the prompt to the image provider you configuredLocal edit that keeps the original
Reference images (local path or http(s) URL) plus an instruction such as replacing only the background→An edited image built on the original; the model chooses the edit tool itself
Uploads the reference images to the provider, as multipart or base641–16 reference images
1–16 local files or URLs used as references for generate or edit→Multi-reference edits, capped by what the chosen provider accepts
Reference URLs pointing at localhost or private ranges are refused unless `MO_IMAGE_ALLOW_PRIVATE_REFS=1` is setProvider and model switching
A bundled cloud preset, a custom OpenAI-compatible API, or a local deployment→Every configured provider and model shows up in the picker; a switch applies from the next generation
Configuration is written to `$DSH_HOME/mo-image/config.json`Model-aware prompt guidance
The model currently selected in the picker→Prompt formulas and constraints for that model family, plus a prompt-optimisation switch that is On by default
Results shown inside the conversation
A finished generation or edit→The image appears in the chat as a local absolute path, so a desktop DSH client can reveal or copy the file
Codex-style skin when a takeover theme is installed
A takeover plugin such as dsh-codex-model-effort-selector sitting on the conversation seat→The picker re-renders as the same Codex-style popover: quality slider, provider → model drill-down, star toggle and gear panel
CSS-only themes are inherited as they are; a takeover plugin without a shared protocol only gets a generic fallbackUI follows the DSH language
Settings → General → Language→Settings page, picker, user-facing errors and aria-labels in one of the 8 languages DSH ships
04Who is it for? When not to use it?
Good for
- Users who describe a picture in words and want the file back in the same session
- Users fixing a background, a product position or a caption on an image they already have
- Users who keep several image APIs — cloud presets or a local ComfyUI / A1111 box — and want the cheap one for drafts
Not for
- The plugin ships no model and pays for nothing: you must add a provider (API URL, key, model ID) before the picker has anything to offer, and a local service without auth may leave the key empty.
- Requires DSH 0.2.1-rc.2 or newer, `dsh-mo-image` inside the profile bundles, and a DSH restart before the settings page and the picker appear.
- Size and quality controls, edit support and parameter names differ per model and protocol: families without an official quality field hide that row, a rejected size fails instead of being silently enlarged, and local backends need you to start the server and manage VRAM (tool timeout 360 s).
- Reference images are capped at 16 and providers may allow fewer — Gemini's newer models take 14, 2.5 takes 3; multipart edits allow 48 MB total and 15 MB per image, JSON base64 edits 10 MB.
- Keys go to the DSH credential store instead of `config.json` and the web client only receives `hasKey` / `keySource`, but that store is readable by processes of the same OS user and DSH has no OS keychain provider yet; generated images are not read back or described unless you ask.
- Seven protocols (`openai-responses`, `openrouter-images`, `openai-chat`, `bfl`, `fal`, `replicate`, `modelscope`) are mock-verified only, and streaming conversations, websockets, dynamic signatures or token refresh still need a dedicated adapter.
05Compatibility, maintenance and safety notes
- The plugin ships no model and pays for nothing: you must add a provider (API URL, key, model ID) before the picker has anything to offer, and a local service without auth may leave the key empty.
- Requires DSH 0.2.1-rc.2 or newer, `dsh-mo-image` inside the profile bundles, and a DSH restart before the settings page and the picker appear.
- Size and quality controls, edit support and parameter names differ per model and protocol: families without an official quality field hide that row, a rejected size fails instead of being silently enlarged, and local backends need you to start the server and manage VRAM (tool timeout 360 s).
- Reference images are capped at 16 and providers may allow fewer — Gemini's newer models take 14, 2.5 takes 3; multipart edits allow 48 MB total and 15 MB per image, JSON base64 edits 10 MB.
- Keys go to the DSH credential store instead of `config.json` and the web client only receives `hasKey` / `keySource`, but that store is readable by processes of the same OS user and DSH has no OS keychain provider yet; generated images are not read back or described unless you ask.
- Seven protocols (`openai-responses`, `openrouter-images`, `openai-chat`, `bfl`, `fal`, `replicate`, `modelscope`) are mock-verified only, and streaming conversations, websockets, dynamic signatures or token refresh still need a dedicated adapter.
- On start-up the plugin asks `registry.npmmirror.com` for the newest version and reads release notes from jsDelivr / unpkg / npmmirror, so enabling it produces outbound traffic; the plugin does not change your system network settings and DSH sends the generation requests.
- Generated files land in `<cwd>/generated-images/` of the session and configuration in `$DSH_HOME/mo-image/config.json`; adding that folder to `.gitignore` is left to you.
- With a takeover skin plugin the picker borrows the Codex look, but an unknown takeover plugin only gets a generic fallback — pixel-perfect parity would need an agreed skin marker or CSS variables from that plugin.
MIT (stated in the README's License section) · active: latest release v1.0.4 (2026-11-23), last push 2026-11-22, 17 built-in protocols · seven newer protocols mock-verified only
06Frequently asked questions
How do I install dsh-mo-image in DeepSeek Harness?
Run `dsh plugin --profile desktop add dsh-mo-image` for the npm build, `dsh plugin --profile desktop add github:CM-Silence/dsh-mo-image` for the repository, or clone it and add `link:./dsh-mo-image`. Then check that the profile's `dsh.profile.bundles` contains `dsh-mo-image` and restart DSH.
What do I need before the picker can generate anything?
DSH 0.2.1-rc.2 or newer, plus your own image provider: an OpenAI Images compatible base URL, that platform's API key and a model ID. Add it under Settings → Image model and pick the model next to the chat input; a local service without auth may leave the key empty.
Where do the generated images go, and what leaves my machine?
Files are written to `<cwd>/generated-images/` in the current session workspace, and the README suggests adding that folder to `.gitignore`. Prompts and reference images go to the provider you configured; the API key sits in the DSH credential store, not in `config.json`, and the web client only sees whether a key exists.
Does it work with Codex-style theme plugins?
Yes, for known ones: when it detects a takeover plugin such as dsh-codex-model-effort-selector it renders the same Codex-style popover with the quality slider, provider → model drill-down and gear panel. Unknown takeover plugins only get a generic fallback, so pixel-perfect parity is not promised.
How much can I change before it is no longer the same picture?
The edit tool keeps the original as the base and only changes what you name, and it accepts 1–16 reference images — though the chosen provider may allow fewer (Gemini's 2.5 models take 3). A rejected size fails with the model's legal range instead of being silently upscaled.
07Related DSH workflows
dsh-image-gen
by shanliuling
Adds in-chat multimodal image generation via a `generate_image` tool with multi-provider support (Gemini/OpenAI/Seedream), interactive preview, copy/download, and session-attached results.
dsh-vision-router
by ysr666
Eyes for text-only DeepSeek Harness agents: built-in free vision chain (no key) + pixel-level vision tools (Q&A, grounding, crop, pixel diff, colors, OCR, SVG trace, cutout, screenshots). One-command install, no Python, image turns work like ordinary tool-calling turns.
dsh-vision-toolkit
by anionex
为纯文本 DSH Agent 提供 10 个结构化视觉工具:意图感知图片问答、长截图 OCR、原始像素 grounding、UI 还原、像素 diff 等
dsh-see-now
by saos-3624
Captures screen, OBS, or webcam frames, filters by visual change, packs them into image sheets, and delivers them to DSH sessions.
08Data and sources
给 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 用的生图插件。
生图席挂在输入框右侧(`conversation.input.right`),默认沿用 DSH 原版对话模型选择器的类名与结构
This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-11-24. Found an error? Submit a correction.
Best DeepSeek Harness Plugins
Twelve plugins worth installing first — picked from the whole catalog, across every category.
