In the DeepSeek Harness (DSH) plugin ecosystem, equipping an agent with a “sticker library” is a common need. However, doing this easily leads to pitfalls: dumping all images into a folder without management causes the agent to mix real photos with stickers; relying solely on fixed tags means the agent cannot understand the meaning of the images. dsh-sticker-library specifically solves this class of problems, providing a complete workflow from ingestion, deduplication, and tagging to safety interception.
Core Positioning¶
This is a chat sticker library plugin for DSH. It goes beyond merely “storing images in a folder” (for which mkdir would suffice) and addresses four error-prone points when agents actually “use stickers”: how to distinguish stickers from chat screenshots, how to enable the visual model to understand image meanings, how to ensure thorough file cleanup upon deletion, and how to intercept inappropriate content at the preliminary stage.
Maintained by JackZo400, License is MIT.
Core Features¶
- Ingestion & Deduplication: Deduplication based on content hashes; sending the same image again will be blocked immediately, preventing duplicate ingestion.
- Visual Tagging: Uses a visual model to describe image content, usage scenarios, and keywords, enabling the agent to select images by “meaning” rather than random IDs.
- Meaning-based Selection: Supports retrieval by ID or keyword; if no match is found, it does not force unrelated images but clearly returns null.
- Two Safety Lines: Profanity, sexual hints, and low-quality memes are intercepted at the moment of ingestion, without relying on downstream models to remember every time.
- Protocol-agnostic Ingestion: Provides a unified file saving interface, independent of specific IM protocols.
- Thorough Deletion: The deletion operation includes “file deletion + adding content hash to a blacklist”, preventing the original file from being misidentified as a new image and re-ingested.
Installation & Enablement¶
Install directly via npm:
npm i dsh-sticker-library
After installation, configure the patch in cordis.patch.yml to import it (refer to the example configuration in the plugin directory). After installation, you can run a self-test:
node test/selftest.mjs
Typical Usage¶
The plugin provides five tools for the DSH Agent and also exposes the core service shelf for other plugins to call.
Agent Tools¶
| Tool Name | Function Description |
|---|---|
sticker_catalog |
List the library inventory, showing image descriptions and tags |
sticker_pick |
Pick an image and return the local path, supporting ID or keywords |
sticker_save |
Collect local images into the library (requires the image path to be prepared by upstream plugins) |
sticker_tag |
Supplement visual tags for untagged images |
sticker_forget |
Delete specified images: physically delete file + add hash to blacklist |
Service Interface¶
const shelf = ctx.stickerShelf
// List inventory
shelf.catalog(40)
// Search by meaning
shelf.resolve('无语')
// Protocol-agnostic ingestion port
shelf.saveFiles(paths, { nick, uid })
// Batch tag untagged images
shelf.tagPending(10)
Scenarios & Notes¶
Scenarios: Robot projects that require the agent to select stickers based on context semantics and have hard requirements for image content safety (such as avoiding vulgar memes).
Notes:
- No Sending: The plugin only selects images and returns paths; the specific sending action is determined by you. This gives you space to control the review process.
- Configurable Profanity Definition: The plugin does not decide for you what “counts as dirty”; you can adjust interception rules by configuring the
prompt. After modifying the prompt, you need to upgrade theTAG_VERversion number, otherwise old images will not be re-tagged. - Non-concurrent Design: The current version does not support distributed or concurrent writing, suitable for single-process, single-directory scenarios.
Summary¶
dsh-sticker-library fills the gap in sticker management within the DSH ecosystem through deduplication, visual tagging, and preliminary safety interception. If you are building an agent that needs to “understand sticker meanings” and “does not send bad memes randomly”, this plugin is a pragmatic choice.