PicGo/dsh-plugin 预览 preview

PicGo/dsh-plugin

Plugin插件 Native原生 ⭐ 3 Vision & Media视觉与多媒体

从DeepSeek Harness上传图片和文件到你的图床,由PicGo驱动

Project Overview项目介绍

This is a native DSH plugin built exclusively for DeepSeek Harness that enables image and file uploads to user-configured image hosts. It resolves a common gap in DSH where local screenshots and generated images cannot be turned into public URLs, resulting in dead image links after pushing code to remote repositories. To install the plugin, run the command dsh plugin --profile web add @picgo/dsh-plugin then restart DSH as you normally would. It leverages PicGo's core library to handle uploads and works with any image host supported by PicGo, including GitHub, S3, Tencent COS, Qiniu, and PicGo Cloud.

It ships with two core features for different use cases, plus a bundled skill that guides the model on when to upload. First, it provides the picgo_upload tool that the DSH AI model can call automatically when it detects a need for a public image URL. Second, it adds a /picgo slash command that lets users manually trigger uploads for clipboard images or specific file paths, as well as check login status or manage authentication. The plugin prioritizes connecting to a running PicGo desktop app to reuse existing image host configurations set in the GUI, so most users do not need to reconfigure anything.

The plugin requires Node.js version 22.19.0 or higher, and it has been tested against DSH developer preview 0.1.1-rc.2 and PicGo Core 3.0.1. It is released under the open source MIT license, so you can modify or redistribute it freely per the license terms. If you have never used PicGo before, uploads default to the free tier of PicGo Cloud, and you just need to run /picgo login to complete a one-time authentication. You should note that the PicGo desktop app stores its configuration in a different path than the in-process core library, so running the desktop app ensures your existing configuration is used.

这是专为 DeepSeek Harness(DSH)打造的原生插件,借助 PicGo 能力支持在 DSH 环境中把本地图片和文件上传到你配置好的图床。它解决了 DSH 本身无法将本地图片转为可访问 URL 的问题,当 AI 助手编写文档、生成图表或截图时,能避免推送代码后出现图片死链的情况。安装方式为执行 dsh plugin --profile web add @picgo/dsh-plugin 后正常启动 DSH 即可。

它提供两类核心交互能力:一是供模型自动调用的 picgo_upload 工具,模型检测到需要生成公开图片链接时会自动触发;二是供用户手动操作的 /picgo 斜杠命令,支持上传剪贴板图片、指定路径文件、查看登录状态等操作。它会优先复用运行中的 PicGo 桌面端配置,没有桌面端时也会读取本地 PicGo 配置,适合需要在 DSH 中编写带图片文档的开发者。

它要求 Node 版本不低于 22.19.0,兼容最新版 DSH 开发者预览版和 PicGo Core 3.0.1,使用开源 MIT 许可证。如果你从未配置过 PicGo,默认会使用 PicGo Cloud 免费额度,只需要执行 /picgo login 完成一次性登录即可。需要注意的是,如果只使用过 PicGo GUI,桌面端配置和本插件读取的默认配置路径不同,优先运行桌面端能避免配置不匹配问题。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add @picgo/dsh-plugin

把 PicGo/dsh-plugin 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

@picgo/dsh-plugin

@picgo/dsh-plugin

Upload images and files to your image host from DeepSeek Harness, powered by PicGo.

Harness can show your agent a screenshot, but it has no way to turn a local file into a link. So when the agent writes a README, renders a chart, or captures a screenshot, the image stays on disk and ![](https://raw.githubusercontent.com/PicGo/dsh-plugin/HEAD/out.png) becomes a dead link the moment you push. This plugin closes that gap.

It uploads through whatever image host you already configured in PicGo — PicGo Cloud, GitHub, S3, Tencent COS, Qiniu, or any third-party uploader plugin you installed. Nothing to re-configure. If you've never used PicGo, it walks you into PicGo Cloud's free tier.

If the PicGo desktop app is running, uploads go through it, reusing the image host you set up in its window. Otherwise they run in-process. See Upload routes.

Install

dsh plugin --profile web add @picgo/dsh-plugin

Then boot as usual:

dsh --profile web

What you get

picgo_upload — a tool the model calls on its own when a local file needs to become a link. Returns structured results, so in Code Mode you can use it directly:

const { uploaded } = await tools.picgo_upload({ paths: ['/tmp/chart.png'] })
console.log(uploaded[0].imgUrl)

/picgo — a command that uploads without spending a model turn:

Command What it does
/picgo Upload the clipboard image
/picgo <path>... Upload one or more files
/picgo status Show the active host and sign-in state
/picgo login [token] Sign in to PicGo Cloud
/picgo logout Sign out

The /picgo command and the bundled skill in Harness

A bundled skill that teaches the model when to upload — inserting a screenshot into docs is the primary case — and when not to (you named a specific destination, you want a local copy).

Upload routes

There are two ways this plugin can reach your image host, and it picks one per upload:

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-minecraft-theme 下一个 Next dsh-win-notify →