explaingit

fivetaku/dd

19PythonAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A Claude Code plugin that adds a /dd slash command to share clipboard content (text or images) with your AI session without pasting it directly into the chat, saving context and cost.

Mindmap

mindmap
  root((dd plugin))
    What it does
      Read clipboard on demand
      Save text to local file
      Pass images directly
    Safety features
      Mask API keys and tokens
      Confirm if unrelated content
      Auto-delete after 7 days
    Performance
      Background analysis for large logs
      Short summary in chat
      Reduces re-read cost
    Platforms
      macOS
      Windows
      WSL
      Linux
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Share a long error log from your clipboard with Claude Code using /dd without dumping the full text into the conversation and slowing down every following turn.

USE CASE 2

Paste a screenshot directly into a Claude Code session with /dd to avoid the image-not-recognized problem that happens with normal clipboard pasting.

USE CASE 3

Protect sensitive clipboard content by letting the plugin automatically mask API keys and tokens before Claude Code sees them.

Tech stack

Python

Getting it running

Difficulty · easy Time to first run · 5min

Install by adding a plugin marketplace URL in Claude Code then running one install command, no external Python packages needed.

MIT License, use freely for any purpose including commercial use, as long as you keep the copyright notice.

In plain English

This is a plugin for Claude Code, the AI coding assistant command-line tool. It solves a specific friction point: when you are working in Claude Code and want to share something from your clipboard, such as an error log or a screenshot, pasting it directly into the chat has drawbacks. Long text takes up persistent space in the conversation and gets re-read on every turn, making sessions slower and more expensive. Images sometimes cannot be pasted at all depending on your setup. The plugin adds a slash command called /dd (also available as /ㅇㅇ for Korean input method users, since the same keys produce different characters in Korean mode). You copy or screenshot something, type /dd followed by your question or instruction, and the plugin reads the clipboard for you. Text gets saved to a local file rather than dumped into the chat, so Claude receives a short summary and fetches more only if the task requires it. Images are read directly from the clipboard, which avoids the problem of pasted images not being recognized. Several safety and convenience features are built in. Sensitive-looking strings such as API keys and tokens are masked in the preview before Claude sees them. The plugin asks for confirmation before acting if the clipboard content looks unrelated to the current task. Large logs or images are analyzed in a background process so only the conclusion enters the main conversation. Captured files are automatically deleted after seven days. Installation requires adding a plugin marketplace URL within Claude Code and then running a single install command. The plugin works on macOS, Windows, WSL, and Linux, with minor per-platform differences in how clipboard access is handled. No external Python packages are needed beyond the standard library. The project is released under the MIT License.

Copy-paste prompts

Prompt 1
I installed the dd plugin for Claude Code. Show me how to use /dd to share a long Python traceback from my clipboard and ask Claude to find the root cause.
Prompt 2
I copied a screenshot of a UI bug to my clipboard. How do I use /dd in Claude Code to share that image and ask for a CSS fix?
Prompt 3
The dd plugin is masking a string in my clipboard that is not actually a secret. How does it detect sensitive strings, and can I configure what it masks?
Prompt 4
My clipboard has a large log file. How does the dd plugin decide to analyze it in the background, and what does it send into the main chat conversation?
Open on GitHub → Explain another repo

← fivetaku on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.