dsh-magic-brush
Manifest validIn-project image generation for DSH — use the image models already in your model pool: discover, adopt, generate, edit, deliver. No extra API key, no app switching. Magic Brush.
神笔马良 · Magic Brush
池里有图像模型,马良自动提笔。
简体中文 · English · 日本語 · 한국어 · Español · Français · Deutsch · Русский
攒了一堆中转站,模型池里躺着 GPT Image、Nano Banana、Seedream,想给项目配张图还得切去别的应用、再配一遍 Key?神笔马良把生图接回 DSH 主对话:自动发现你池子里的图像模型,复用已有凭据,主模型在项目里直接出图、直接落盘、直接接着改代码。

为什么是马良
- 不切应用,不二次配 Key:池里有什么图像模型就用什么,复用已有凭据。只有一个时零配置直接出图,多个问你一句。
- 给项目配图,不是聊天生图:hero / og-image / icon 一句话配齐;色板和风格存成项目档案,之后每张图自动带上项目气质;出图落盘后,主模型接着把图接进 HTML/CSS。
- 改图不毁原图:拿项目里现有图当参考生图,结果存新文件;交付到资产路径原子写入,已有文件绝不静默覆盖。
- 池里有什么都认得:10 个协议家族各按各的协议发请求,中转返回的图片 URL 自动安全下载。
- 失败告诉你下一步:查 Key、查余额、换尺寸、重试一次——不盲目重试烧钱。
安装
dsh plugin --profile web add -w link:/path/to/image-worker
安装后重启 DSH 并启用插件。桌面端把 --profile web 换成 --profile desktop。
快速开始
在项目会话里说:
给首页生成一张 16:9 的 hero 插图,保存到 assets/hero.png。
马良发现池里的图像模型——只有一个就直接用,多个会问你用哪个——出图、预览、落盘,主模型继续干活。
能力
| 动作 | 结果 |
|---|---|
| 发现 | 读取你已配置的渠道目录,认出图像模型;单个坏渠道不拖垮整体 |
| 采用 | 复用渠道已有 Base URL 和凭据;确认一次写入项目记忆,之后任何会话自动使用 |
| 生成 | 单张或最多 4 张候选;按用途自动定比例与质量档(头像 1:1、横幅 16:9、海报 2:3,正式交付自动高质量) |
| 改图 | 拿现有图当参考生图,原图不动(GPT Image / Grok / Gemini / 通义) |
| 风格 | 项目视觉档案自动融进每张图的提示词 |
| 资产 | hero / og-image / icon 三件套一次规划、逐张交付 |
| 交付 | 工作区落盘 + 指定资产路径,原子写入、覆盖需确认 |
认得的图像模型家族:GPT Image / OpenAI 兼容中转、Gemini / Nano Banana / Imagen、Seedream / 豆包、通义 Qwen / Wanx、Grok Imagine、GLM-Image、Ideogram、Stability AI、MiniMax、ComfyUI,以及 FLUX / Stable Diffusion / Recraft / Midjourney 等中转命名。ComfyUI 用内置标准 txt2img 工作流,model 填 checkpoint 文件名即可。认不出的型号也能手动指定 provider/model。
采用记忆与视觉档案写在工作区 .dsh-magic-brush.json,删掉即重置。
开发与贡献
npm test # 路由 / 项目风格 / 目录发现 / 工具行为 四组离线检查
欢迎提交 issue 与 PR,见 CONTRIBUTING.md。变更见 CHANGELOG.md。
深入阅读:工具参考(10 个工具的参数与返回)· 工作原理(路由识别、规划、安全下载与交付)。
许可
Apache-2.0。使用、修改或分发本软件及其衍生作品,须保留 LICENSE 与 NOTICE 中的版权与署名。
掠蓝 · QQ 群:676475076
Comments
Loading…
Similar plugins
by zclDragon
Model-facing `generate_image` tool for text-only models: the model asks for a picture in natural language, Gemini draws it via the Antigravity CLI, the image is saved to a configurable output director
★ 2
↓ 123/wk
Apache-2.0
JavaScript
Aug 20, 2026
dsh plugin --profile web add dsh-tool-generate-imageby xiaohuo130
给 DSH(DeepSeek Harness)的 AI 会话加画图能力:注册 creative_generate_image 工具,桥接任意 OpenAI 兼容文生图接口(默认 StepFun step-image-edit-2,零依赖)。
★ 0
MIT
JavaScript
Nov 9, 2026
dsh plugin --profile web add dsh-creative-pluginby dong2007-png
DSH plugin: generate images via a New API relay (tools: generate_image, list_image_models)
★ 0
MIT
JavaScript
Oct 1, 2026
dsh plugin --profile web add dsh-imagegenDeepSeek Harness 生图插件:侧边栏绘画页与图库,对话中生图和改图,可自定义服务商端点与代理。
★ 0
MIT
TypeScript
dsh plugin --profile web add @copylee/dsh-image-genby hiocobueno653-pixel
Image-generation tool with automatic prompt enhancement, switchable API profiles, and a Turn-tail image card that survives chat folding. Requires a user-supplied image API endpoint and key; none are b
★ 0
MIT
JavaScript
Nov 15, 2026
dsh plugin --profile web add dsh-image-genby Pappet
Text-to-image and image-to-image generation via OpenRouter's unified Image API: configurable model aliases with parameters gated against the live model capability listing, reference-image inputs, a se
★ 1
MIT
JavaScript
Aug 31, 2026
dsh plugin --profile web add dsh-tool-imagegen