DeepSeek Harness plugin

dsh-imagegen-glangzh

dsh 插件:图像生成/编辑/识图(imagegen + image_understand),provider 无关,默认提供方 Agnes AI(OpenAI 兼容)

Jump to install

Source facts

Repository
glangzh/dsh-imagegen
Latest update
Aug 16, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/glangzh/dsh-imagegen
Plugin: dsh-imagegen-glangzh
Author: glangzh

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

dsh-imagegen

dsh 插件,为 agent 补上图像能力(主模型本身不能看图、不会生图):

  • imagegen — 让 agent 能生成、编辑、合成图片,并把结果保存为工作区文件
  • image_understand — 让 agent 能"看懂"图片:把图片转成文字描述,主模型据此回答你的问题(看图说话、读图中文字、风格分析、多图对比、生成后自检)
  • 安装即全局生效,所有会话/预设可用,无需改预设
  • 配置全在「设置 → 插件 → 图像生成」,API Key 存本机凭据,明文不泄露
  • provider 无关:默认接入 Agnes AI(OpenAI 兼容),换服务商只改设置,不改代码

安装

dsh plugin --profile web add github:glangzh/dsh-imagegen

重启 dsh web 后生效。

配置

打开「设置 → 插件 → 图像生成」:

说明
API Key必填。填入 sk-... 保存;已配置时显示 * 掩码(长度与真实 key 一致,明文不回显)
Base URL默认 https://api.agnes-ai.cn(可带 /v1);换国际站填 https://apihub.agnes-ai.com
生图模型默认 agnes-image-2.1-flash
视觉模型默认 agnes-2.5-flash

保存立即生效,无需重启。换服务商:改 Base URL 与模型即可。

使用

在会话里直接对 agent 说:

生成

> 生成一张赛博朋克风格的城市夜景图,16:9 > 画一张产品图:玻璃立方体放在白色桌上,摄影棚灯光,高细节

图生图 / 编辑

> 把 docs/design.png 改成水彩风格,保留构图不变 > 把 照片.png 的背景换成海边日落

多图合成

> 把 a.pngb.png 合成一张:两个角色背靠背站在黄昏的山顶

识图

> 看看 截图.png 里写了什么文字 > 这张图是什么风格?帮我分析构图和配色 > 对比一下 a.pngb.png,哪张构图更协调

生成后校验

> 生成一张「红苹果放在木桌上」的静物图,然后检查效果是否符合描述

生成结果保存在会话工作区 generated_images/,agent 会返回本地路径和远程 URL。

卸载

dsh plugin --profile web remove dsh-imagegen

灵感

项目灵感来自 Codex imagegen 的图像生成工作流(用例分类、prompt 模板与生成/编辑/校验闭环)。

许可

MIT