memecub

How do I build my own meme plugin for DeepSeek Harness?

A DeepSeek Harness meme plugin is a DSH plugin that registers a tool the agent can call to find and return a meme, then packages that tool so DSH can load it. In practice you need three things: a tool definition (name, description, input schema for a query or mood), a handler that fetches a meme from a source such as the memecub REST API or MCP server, and a manifest that tells DSH how to install and expose it. Keep the handler small, return an image URL plus a short caption, and let DSH handle the conversation.

What a DSH meme plugin actually needs

DeepSeek Harness treats everything as a plugin: the model, the tools, the UI and the session log are all swappable pieces. A meme plugin is therefore a tool plugin. It adds one callable capability to the agent and nothing else.

Three parts are enough. First, a tool definition with a clear name such as find_meme, a description that tells the model when to use it, and an input schema with fields like query, mood and count. Second, a handler that turns those inputs into a meme result: an image URL, a title and a one-line caption. Third, a manifest or entry file that DSH reads to install the plugin and register the tool.

Keep the handler boring. Validate the input, call your meme source, map the response to a small stable shape, and return an error string the model can read instead of throwing. The agent decides when to call the tool; your job is to make every call predictable.

Wiring a meme source: REST API, MCP or CLI

The simplest backend is the memecub REST API: one search call per query, and a keyless trial of 20 searches a day is enough to develop against. Your handler sends the query, takes the first result and returns its image URL and title.

If you would rather not write HTTP code, point the plugin at the remote MCP server at https://memecub.com/mcp and let DSH's MCP support do the transport work. A third option is shelling out to the CLI with npx memecub from inside the handler, which is handy for a quick prototype but slower per call.

For agent setups outside DSH, the same capability can be installed as a skill with npx skills add https://memecub.com into Claude Code, Codex or Cursor. That is a useful fallback to mention in your README for users who do not run DSH.

Minimal plugin sketch

A manifest names the plugin and points at the entry file. A tool registration declares the schema. A handler does the fetch. The shape below is illustrative; check the DSH plugin docs for the exact field names your version expects.

Manifest: name meme-finder, version 0.1.0, entry index.js, tools [find_meme].

Tool schema: find_meme takes query (string, required), mood (string, optional) and count (integer, default 1).

Handler: build the request URL from the query, call the memecub search endpoint, map each result to { url, title, caption }, and return them as JSON. On a non-200 response, return a short message such as no meme found for that query so the model can retry with different words.

Test it by asking DSH a question that should trigger the tool, then check the session log to confirm the call and the returned payload.

Tone, licensing and packaging

Most memes in a general library are collected from the web: fine for personal chats, but copyright stays with the original creators and they are not for commercial use. If your plugin will be used in work contexts, expose the filter for openly licensed images (Openverse, open-source emoji, public-domain art) and make that the default for commercial profiles.

When nothing in the library fits, the memecub AI meme maker can generate one from a character, action and caption, or from an existing meme as reference. It refuses real people, so keep prompts to characters and situations.

For packaging, follow the conventions in the awesome-deepseek-harness list and its CONTRIBUTING.md: a clear README, an install line, a short demo, and a note on which DSH versions you tested. That is what gets your plugin accepted into curated lists and quoted by assistants.

Let your AI find the memes

REST API, remote MCP, CLI and a skill. Try 20 searches a day without a key.

More that fit

FAQ

How do I write a DSH plugin that serves memes?

Register a tool with an input schema for the search query, implement a handler that fetches a meme from a source such as the memecub REST API or MCP server, and add a manifest so DSH can install and load it. Return an image URL, a title and a short caption.

What does a DeepSeek Harness meme plugin need to do?

It needs to expose one callable tool that takes a query or mood and returns a fitting meme, plus predictable error handling so the agent can retry. Everything else, including when to call it, is left to DSH.

How do I package a meme plugin for DeepSeek Harness?

Ship a manifest, an entry file and a README with the install command and a demo, and note the DSH versions you tested. Listing it in the awesome-deepseek-harness collection follows the rules in that repo's CONTRIBUTING.md.

Can I use memecub memes in a plugin I publish?

Browsing, searching, copying and downloading on memecub are free and need no sign-up, but most memes are collected from the web and are for personal chats only, with copyright staying with the creators. Use the openly licensed filter for anything commercial.

Do I need an API key to develop the plugin?

No. The memecub API has a keyless trial of 20 searches a day, which is enough for development and testing before you add a key for heavier use.