AI Agent Hub
Back to plugins
🖥️

dsh-clipboard-history

Client Updated 2026.08.19

Run the following command in DeepSeek Harness:

dsh plugin install kuangre123/dsh-clipboard-history

Paste the following prompt into your AI chat to install this plugin:

Install this plugin in DeepSeek Harness by running dsh plugin install kuangre123/dsh-clipboard-history; the source is available at https://github.com/kuangre123/dsh-clipboard-history — restart dsh web after installation to load it.

About this plugin

The system clipboard holds only one entry at a time, so earlier copies vanish the moment something new is pasted. dsh-clipboard-history polls the system clipboard in the background (pbpaste on macOS, xclip on Linux, PowerShell on Windows) and persists every text change into a local JSON file, giving the agent a genuinely recallable clipboard memory. It runs inside the host process, so it can read the logged-in user's pasteboard without any native addon, and history survives restarts.

The plugin exposes five agent-facing tools: list recent entries with id, timestamp, size, and a short preview; recall the full text of a specific entry by id; read the live clipboard content at any moment; write text to the system clipboard while automatically recording it; and clear the stored history without touching the current clipboard. Together these let an agent reference text a user copied moments ago in an earlier turn, rather than relying on repeated manual pasting.

It suits developers who work with dsh agents for code review, document assembly, or cross-window collaboration. Note that it is text-only: image and file clipboard items are ignored because they read as empty text. macOS is the primary target; Linux requires xclip, and Windows relies on PowerShell.

Use Cases

  • User copied a code snippet earlier and the agent recalls the full text by id mid-conversation
  • In multi-window workflows the agent lists recent clipboard entries so the user can confirm what was last copied
  • Agent writes its generated output to the system clipboard and records it in history for instant pasting

Best For

  • Developers who use dsh agents daily for code review and document assembly
  • Cross-platform users who switch text between multiple applications frequently
  • Automation users who want the agent to retain context without repeated manual pasting