paste-view
Reviewed
at commit 63c541d
See what you paste into Claude Code: image thumbnails and long-text previews above the prompt instead of bare [Image #1] and [Pasted text #2] tags
0 upvotes
Log in to upvote or save- Made by
- Clément Décou
- Pinned commit
-
63c541d7e92f1d6157af919b62e3a2067bd7ddf5 - What we checked
-
Shows a preview above the prompt for images and long text you paste: thumbnails in terminals that can draw them, otherwise a button that opens the image in your system viewer, and a pane with the full pasted text. It reads your system clipboard when a new paste tag appears. It makes no network calls and stores nothing on disk.
Review details
Static review of the source at the pinned commit; not run. Delta review of the changes since a71ba10; the rest carries over from the review at that commit. The only code change is the message shown when a text paste has no preview: if no clipboard tool was found it now says to install wl-clipboard or xclip. Carried over: hooks session.start, ui.close, ui.render (AbovePrompt and Pane). Every 200 ms it reads the draft with $.prompt.read and looks for [Image #n] and [Pasted text #n] tags. For a new text tag it runs pbpaste, wl-paste or xclip (1 s timeout) and keeps the clipboard text in plugin state if its line count matches the tag. For images it lists the session's image cache under CLAUDE_CODE_TMPDIR or /tmp/claude-<uid> (runs id -u), reads the first bytes of a PNG for its size, and draws it with the Image element. A button runs open or xdg-open (after uname) on a cached image path when the user presses it. Env vars read: terminal identification variables, TMUX, STY, CLAUDE_CODE_TMPDIR. No file writes, no network, no model calls. The import ../types is a type-only file.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: no
- Shows something on screen: yes
- Hooked events
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/paste-view/)