DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
A

@xiaolulu0328/dsh-agnes-image

Agnes Image

Agnes Image 2.5 Flash image generation/editing tool with a masked local API key setting

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:xiaolulu0328/dsh-agnes-image#26ba3ae22f0048afa7f79cdcb5a24d5c89eccaa3
READMECompatibilityVersions

Compatibility and provenance

Agnes Image is published as @xiaolulu0328/dsh-agnes-image and currently resolves to version 0.1.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/31/2026

Versions

0.1.1stable
10/31/2026

Related plugins

Loading related plugins…

Latest
0.1.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
Not declared
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
10/31/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in vision-media.

Experimental Voice Input Bundle@deepseek-ai/dsh-experimental-voice-input-bundleExperimental voice input with local SenseVoice; downloads its runtime on first useModlens@liustack/modlensPlug-in vision for text-only LLMs, powered by the free Antigravity CLIImage Gendsh-image-genBring ChatGPT-like image generation to DeepSeek Harness — Gemini, OpenAI, Seedream, DashScope, local ComfyUI & more.Ab Ocrdsh-ab-ocr--- description: "The out-of-tree ocr tool: recognizes a scanned PDF or image page by page, merges the pages in order only after the last one, and saves one Markdown document with the heading levels the model decided." kind: "package-reference" ---

README

Agnes 生图工具(DSH 插件)

在 DeepSeek Harness 里给 AI 增加一个 agnes_image 工具,按 Agnes 官方 Agnes Image 2.5 Flash 接口 生成、编辑与合成图片。API Key 只保存在本机,设置界面遮罩、不回显、不写日志。

功能

  • 三种模式:text2img(文生图)、img2img(图生图)、multi_image(多图合成)。
  • 尺寸档位 1K/2K/3K/4K + 官方支持的 ratio(1:1 3:4 4:3 16:9 9:16 2:3 3:2 21:9)。
  • output_format:url 直接给链接;base64 把结果存成会话附件并内联预览(正文里不放超长 Base64)。
  • 错误分型友好提示:未配置 Key、缺 images、参考图不可公开访问、超时、鉴权失败、返回格式异常等。
  • 返回图片做过校验(URL 协议/主机、Base64 解码、PNG/JPEG/WebP/GIF 文件头),避免把非图片内容当图片展示。

安装

dsh plugin add @xiaolulu0328/dsh-agnes-image

在 Harness 里用插件管理器安装本目录:

  • plugin_manager → install_bundle,target 指向 agnes-image 目录的绝对路径;
  • 或在 Plugins 页面安装本地 bundle。

安装后插件名为 Agnes 生图,入口在 Plugins → Agnes 生图 → 配置。

配置 API Key

按下面的顺序解析,前一路为空才看下一路(每次工具调用重新解析,改 Key 不用重启):

  1. 设置界面(推荐):Plugins → Agnes 生图 → 配置 → 填入 API Key → 保存。 Key 以 role('secret') 写入本机 profile 的 Cordis 配置,界面遮罩、无法读回; 插件在调用时通过 settings.describe() 取回真值(只在内存里用,不写日志)。
  2. 凭据服务:ctx.credentials 里的 AGNES_API_KEY(.dsh/.credentials.yaml 的 refs)。
  3. 环境变量:AGNES_API_KEY(需要重启进程才会进环境)。

未配置时调用工具不会抛错,而是返回一段引导,告诉用户去哪里配置。 拿不准当前用的是哪一路,可以让 AI 调 agnes_image_status,它只报告「有没有配好 / 来源 / Base URL / 超时」,不会回显 Key。

排查「配了 Key 还说没配」

agnes_image_status 会顺带打印诊断行:settings 里本插件的命名空间、该命名空间的 apiKey 状态、 以及插件实例收到的 config.apiKey 是否为空,用来区分「Key 没保存成功」和「保存了但没被读到」。

工具参数

参数类型说明
promptstring(必填)生成/编辑指令
modetext2img | img2img | multi_image默认 text2img
size1K | 2K | 3K | 4K默认 2K,不要传 1920x1080
ratiostring可选,如 16:9
imagesstring[]图生图/多图合成必填:HTTPS URL 或 Data URI Base64
output_formaturl | base64默认 url

官方文档对应关系

文档要点实现位置
模型 agnes-image-2.5-flashindex.js 的 MODEL
POST /v1/images/generationsENDPOINT_PATH + endpointOf()
Authorization: Bearerexecute() 的请求头
文生图必填 model/prompt/sizebody = { model, prompt, size }
档位 size + ratioSIZES / RATIOS / SIZE_TABLE
图生图 extra_body.image,不要 tagsextra_body = { image, response_format }
URL 输出用 extra_body.response_format:"url"text2img / img2img 分支
图生图 Base64 用 extra_body.response_format:"b64_json"img2img/multi_image 分支
文生图 Base64 用顶层 return_base64:truemode === 'text2img' 且 base64
超时 60s–360stimeoutMs 配置与 resolveTimeout()
提示词推荐结构工具 description
常见错误与修复建议explainHTTPError() 与各校验分支

安全说明

  • Key 不进入日志、不出现在工具返回值或错误信息里,也不发往除 Agnes 之外的地址。
  • 设置页输入框为 password,已保存的 Key 由 Host 在 settings.describe 阶段剥离,浏览器拿不到。
  • 生成图若设置「另存目录」,仅写入用户显式填写的本机绝对路径。