dsh-memes: Providing Natural Meme Reactions for DeepSeek Harness

Preface

In DeepSeek Harness, agents typically interact with users through standard tool cards. The dsh-memes plugin provides agents with a pick_meme tool, enabling them to select reaction GIFs based on semantic tags. This allows for a more natural “meme reply” effect in conversations, avoiding the stiffness associated with tool invocation.

Core Capabilities

  • Semantic Image Selection: Supports alias, exact category, and multi-word tag matching. For example, it can recognize proud, good morning, or frieren cringe.
  • Natural Conversational Integration: In the Web client, selected GIFs appear as compact reaction images rather than tool cards, hiding the tool name and execution status.
  • Proactive yet Retrained: Agents can proactively send memes during emotional moments like celebration or surprise, but will refrain from sending them in serious scenarios.
  • Automatic Profile Injection: Upon installation, the bundle patch is automatically added to the specified DSH profile, eliminating the need to manually edit cordis.patch.yml.
  • Lightweight Package: The plugin contains no image files; it only includes the Host plugin, Web client, and configuration, relying on a remote directory.
  • Reliable Remote Directory: The tag directory is pinned to a specific revision, verified and cached for one hour. Concurrent calls share the same request, with a timeout of 10 seconds per request.

Installation & Activation

Install the plugin to the DSH Web profile:

dsh plugin --profile web add github:kagura-agent/dsh-memes

After starting or restarting the profile, you can use it immediately by creating a new session.

Usage

Agents can respond to natural language commands or invoke the tool directly.

Natural Language Examples:
* Send a celebration meme.
* React to that bug with a facepalm.
* 用一个开心的表情包回复。

Tool Invocation Example:

pick_meme({ mood: "frieren cringe", count: 1 })
  • mood is a required parameter.
  • count defaults to 3 and has a maximum of 10.

The selection logic parses aliases, matches exact categories, checks multi-word tags, and falls back to a random selection if no semantic match is found.

Technical Details

  • Network Requests: During the first invocation after startup, the Host fetches tags.json from raw.githubusercontent.com and re-fetches it after a one-hour cache expiration. The browser loads the selected GIF from media.githubusercontent.com.
  • Image Source: Image links are sourced from the kagura-agent/memes repository; the plugin code itself does not contain image files.
  • Configuration: The default configuration is ready to use. For private mirrors or testing, you can override tagsUrl in the profile patch.

Conclusion

Through semantic matching and a lightweight design, this plugin equips agents with the ability to express emotions without disrupting the conversational atmosphere.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye