DSH 的生图与读图:侧边栏「图像」页面(英文界面显示 Images;按模型分行、10 种比例、1K–4K 尺寸、联系表 + 详情卡 + 放大 + 复用 + 删除),三个预设提供方外加自定义端点(其中一个完全免 Key),另有 vision-review 读图技能。粘进去的 Key 只写进本机 ~/.dsh/secrets/media-tools.env(权限 600),只发给你选的那家服务商。页面文案跟随 DSH 界面语言(中文 / 英文)。需要 Python 3.9+(生图由 scripts/generate.py 执行);该页面需桌面版 DSH 0.2.1+。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-media-skills
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:MJorgin/dsh-media-skills
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
dsh-media-skills
An image workspace for DeepSeek Harness. Generate images, revisit your work, and ask your agent to review a screenshot.
简体中文 · Quick start · Image review · Privacy · Troubleshooting
One plugin, three ways to work
| What you want | Where to start | What it needs |
|---|---|---|
| Generate an image | Images → Generate in the sidebar | Desktop 0.2.1+; a provider. Flux via Pollinations is configured as keyless. |
| Find or reuse a result | Images → Works | The page stores up to 60 recent entries in local storage |
| Describe or inspect an image | Ask for vision-review, or use a compatible image model in chat |
A configured vision provider for the skill, or an image-capable chat model for native attachments |
The sidebar page and media-tools use the same generation script. vision-review is a separate image review skill.
Quick start
In DeepSeek Harness Desktop, open Plugins → Add plugin, enter
dsh-media-skills, and install it. Or use the desktop profile:dsh plugin --profile desktop add dsh-media-skillsRestart DSH. On Desktop 0.2.1+, open Images in the sidebar.
Enter a prompt, select Flux (Pollinations), and generate. This path does not require a key; availability, image size and rate limits depend on the provider.
Open Works to revisit a result. To use another provider, configure it under Image key.
The two skills are registered with the plugin. Image review through vision-review requires a configured vision provider; a keyless image-generation option does not automatically supply image understanding.
First run: this repository does not control third-party availability or pricing. If Flux is unavailable, check the provider status or configure another supported provider.
The Images page
Interface illustration. The sample picture is a placeholder, not a generated result; the actual page and available models can differ.
Choose a prompt, model, aspect ratio and canvas size. The result card shows the image and its settings. The page also has a Works tab for revisiting images, copying prompts, reusing settings and deleting files.
Gallery illustration with placeholder images.
Generated examples from the repository. Prompts and provider details: examples.
Image review
Ask the agent to use vision-review to describe a local image, inspect a UI screenshot, or produce structured observations. The script supports configured vision providers and a fallback chain; see vision-review/SKILL.md.
Native chat attachments are a separate DSH feature: the currently selected model must accept image input. If a text-only model rejects an attachment, switch to an image-capable model or use a local file path with a configured vision-review provider. Installing this plugin does not turn a text-only model into a vision model.
Privacy & providers
- The plugin does not bundle API keys. Panel-managed keys are stored locally in
~/.dsh/secrets/media-tools.env; the code requests file mode600where supported. - The prompt and relevant request parameters go to the provider you select. Image review sends the image to the configured vision provider. Custom endpoints are chosen by you.
- Generated files are saved in the local workspace. The page keeps up to 60 recent entries in local storage. Deleting an entry attempts to delete its file; if file deletion fails, the entry is still removed and the file can remain. Provider data-handling rules still apply.
- Free tiers, limits, watermarks, models and terms can change. Consult the provider before sending sensitive content or depending on a free service.
Details: generation skill · vision setup · ModLens coexistence.
Troubleshooting
- No Images page: the page requires Desktop 0.2.1+ and a restart after installation. The skills can be used separately on supported older hosts; see compatibility notes.
- Generation fails: check the selected provider, network, account balance and rate limits. The panel reports common HTTP errors where available.
- An image attachment is rejected: verify the current chat model supports image input, or use the file-path review workflow with a configured vision provider.
- Need a diagnostic for image review: run
python3 skills/vision-review/scripts/vision.py --doctorfrom the repository. Some checks may contact configured providers.
Languages
English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Español · Deutsch · Português · Русский
English and Simplified Chinese describe the current Images page. Other translations are retained for reference and may describe earlier versions.
Development
Requires Node.js 22.19+ and Python 3.9+; image review uses Pillow. Run the repository checks with:
npm test
The package contains client.js, index.js, the DSH bundle manifest and the two skill directories. Examples · Issues · MIT license
链接
同类插件
liustack/modlens★ 4961
为纯文本模型架起视觉桥梁:粘贴图片,输出结构化 JSON 证据(OCR、版面、语义)。
ysr666/dsh-vision-router★ 1268
为纯文本 Agent 提供视觉能力:内置免 Key 视觉链 + 像素级视觉工具(看图问答、定位、裁剪、像素对比、取色、OCR、矢量化、抠图、截图);粘贴图片即可用。
Anionex/dsh-vision-toolkit★ 945
让纯文本模型处理视觉任务:粘贴图片后自动切换到 Vision Toolkit 变体,支持图片问答、多图比较、长截图 OCR、截图还原前端 UI、元素定位与像素对比。默认无需 API Key——图片经作者自建的免费服务处理,每台机器每天 100 张;也可改为指向自己的服务商。
SAOS-3624/dsh-see-now★ 630
让只有文字的智能体「看」实时屏幕或摄像头:每帧按画面变化量打分,只把真正变了的帧拼成一张带编号、带音轨条的宫格图——看视频、看演示、看游戏都行,token 只花在变了的地方。
SAOS-3624/dsh-video-storyboard★ 536
把视频(本地文件,或 B 站 / yt-dlp 链接)压成一张可寻址的宫格图:每格烧编号、对应精确时间、挂台词,底部还有同时间轴的音频包络;video_zoom 可对任意窗口高清重看——纯文本模型因此能「看」视频,而不是读别人写的摘要。
dickpy/dsh-imagegen★ 188
面向 DSH Web GUI 的 AI 生图插件:通过可配置的 OpenAI 兼容端点(gpt-image-2 / gpt-image-1 / dall-e-3)实现文生图与图生图,提供 api_url/api_key 设置卡片与侧边栏分栏生图工作台。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。