Introduction¶
When building agents or tools in DeepSeek Harness (DSH), you often need to temporarily save a local screenshot, a web image, or an attachment from a conversation, then later retrieve it by category and send it directly into the chat. DSH has no native image bookmarking capability, so manually saving files and hunting for paths every time is inefficient. Below is an introduction to a general-purpose image bookmarking/sending plugin: dsh-gallery.
What Is It¶
dsh-gallery is a general-purpose image bookmarking and image-sending plugin for DeepSeek Harness, maintained by cv588888888888888888888ju. It supports one-click saving of images from local files, web URLs, or conversation attachments; searching by keyword or category; and sending images back into the conversation in Markdown format.
Core Features¶
- Bookmark images from a conversation: Issue a chat command to have the model call
save_image; by default it grabs the most recent user image. - Bookmark local files: Use
save_image file=…to specify a local path. - Bookmark web images: Use
save_image url=…to specify a URL. - Let the model find and send images: Use
send_image query=…; the model filters from the gallery and returns a Markdown image. - Send a bookmarked image yourself: Use the 🖼 button to the left of the input box—pick an image and send it directly.
- Image Pack Marketplace: On the Settings page under “Image Gallery → Discover,” install image packs published by others, with SHA-256 verification and a progress bar.
- Album management: The Settings page “Image Gallery” has three tabs: Albums, Discover, and Settings. Supports creating, switching, toggling, uploading, editing, deleting, and exporting albums.
- Legacy format compatibility: Marketplace packs may use the old dsh-meme layout (
memes/directory +memestable). The plugin automatically converts them to the current layout (images/+imagestable, and backfills columns such as source, hash, and timestamp) during installation. - Proxy support for outbound traffic: Marketplace downloads support an optional proxy (
proxyUrl). Node 22’s globalfetchdoes not honorHTTPS_PROXY, and direct connections to GitHub Releases can sometimes be rate-limited.
Installation & Enablement¶
Environment requirements: DSH 0.2.x (this plugin was developed and verified on 0.2.2-rc.3) + Node ≥ 22.13.
Use the official plugin loading path (it writes to whichever profile you target):
# From GitHub: pin the commit to avoid silent changes from subsequent pushes
dsh plugin --profile web add github:cv588888888888888888888ju/dsh-gallery#<commit>
# Local development: link: points to a cloned directory; source changes take effect immediately
dsh plugin --profile web add link:/path/to/dsh-gallery
After installing, restart dsh web: the host-side index.js is ESM, and hot-reload will not re-evaluate already-cached modules. To uninstall: dsh plugin --profile web remove dsh-gallery.
Configuration¶
All tunable values are centralized in DEFAULTS within config.js; the user settings file ~/.dsh/dsh-gallery.json can override them. See INTERFACE.md §2 for key names and semantics.
Marketplace outbound traffic supports an optional proxy (INTERFACE.md §9.5):
{ "proxyUrl": "http://127.0.0.1:7897" }
If not configured, it falls back to the HTTPS_PROXY / HTTP_PROXY environment variables; if neither is set, it connects directly. If the proxy is unreachable, it automatically falls back to a direct connection and retries. When a raw.githubusercontent.com address fails, it automatically switches to the same-named jsDelivr mirror.
Data¶
- The gallery (album) is stored by default in
~/.dsh/gallery-packs/<album-id>/:index.db(SQLite index) +manifest.json+images/<category>/<file>. Deleting this directory effectively clears the gallery. - Plugin settings (current album, toggles, scan directories, etc.) live in
~/.dsh/dsh-gallery.json. - Duplicating the same image is deduplicated by content hash—no duplicate copies are stored.
Explicitly Out of Scope (This Release)¶
Emotion buckets, image-battle prompt injection, external channels (e.g., QQ), submission to a public directory (GitHub form), and AI auto-tagging.
Acceptance Testing¶
node --test test/*.test.mjs
47 tests covering the storage layer / pure marketplace logic and outbound networking / a fake ctx running the host-side half (tools · routing · admin API · marketplace install & legacy format conversion).
Origin & License¶
This repository is an MIT-licensed adaptation of yyh-001/dsh-meme; upstream copyright belongs to the Selfloom contributors.
- Inherited from upstream: Gallery directory +
node:sqliteindex, allowlist image-fetching route/dsh-gallery/<album>/<path>, admin API, client settings panel and input-box image picker, image pack import/export, and marketplace skeleton. - Changed in this repo: Removed meme semantics (six emotion buckets, image-battle prompt injection, meme marketplace / online directory subscription); image sending now uses native Markdown images with no client-side DOM decoration needed; added album toggling, marketplace SHA-256 verification, automatic conversion of the legacy
memes/layout, and optional proxy for outbound traffic. - License: MIT. The
LICENSEfile retains both upstream and this repo’s copyright notices; the upstream source code is governed by that repository.
This repository is independent of the upstream author and has not received their endorsement.
Use Cases & Caveats¶
Suitable for agent developers who need to统一管理 image bookmarks in DSH, search by category or keyword, and quickly send images. The plugin runs with the current DSH process’s permissions—review the source code and license before installing.
Conclusion¶
dsh-gallery fills the gap of general-purpose image bookmarking and image-sending capabilities in the DSH ecosystem with minimal changes, making it well-suited for agent scenarios that require a large volume of image assets. The catalog page and GitHub repository are linked below.
- Catalog page: https://www.skillhub.cn/plugins/cv588888888888888888888ju/dsh-gallery
- GitHub: https://github.com/cv588888888888888888888ju/dsh-gallery