Claude Image View
A Claude Code mod that shows the images you paste, so you see thumbnails above your prompt instead of bare [Image #1] tags.


Install
Inside Claude Code, run:
/plugin marketplace add jarrodwatts/claude-image-view
/plugin install image-view
/reload-plugins
That's it. Paste an image into the prompt and its thumbnail appears above the input.
Prefer the terminal?
claude plugin marketplace add jarrodwatts/claude-image-view
claude plugin install image-view@claude-image-view
Then run /reload-plugins inside a session, or start a new one.
What You See
Paste one or more images and a row of thumbnails sits above the prompt, each labelled with the number of its tag:
╭────────────────────────╮ ╭────────────╮
│ │ │ │
│ (screenshot) │ │ (photo) │
│ │ │ │
│ #1 │ │ #2 │
╰────────────────────────╯ ╰────────────╯
❯ why is the header misaligned here [Image #1] vs [Image #2]
- Thumbnails appear as soon as you paste. You don't have to type another key first.
- Thumbnails keep their shape. Wide screenshots stay wide and phone shots stay tall.
- Always fits on screen. Tiles shrink to fit the space above the prompt, so the row never scrolls or gets cut off. If there are too many, the row ends with
+N for the rest.
- Clears on send. Once the prompt is sent (or the tags are deleted), the row goes away.
How It Works
Claude Code saves every pasted image to a cache folder for the session, as <tmp>/<project>/<session>/images/<n>.<ext> in the format it was pasted (.png, .webp, .jpg, ...), and puts an [Image #n] tag in the prompt. Claude Image View is a mod:
- Every 200ms it reads the prompt box and looks for
[Image #n] tags. It checks on a timer because pasting an image doesn't raise an edit event.
- For each tag it finds the cached file. Kitty graphics only draws PNG from a file, so on macOS anything else (WebP, JPEG, HEIC, GIF, TIFF) is converted once with
sips to <session>/image-view-<n>.png. It reads the size from the PNG header.
- It draws the thumbnails in the band above the prompt. Where Claude Code draws pictures (see Terminal Support) it uses Claude Code's
Image element, and the terminal reads the file itself, so the image data never passes through the mod.
- Anywhere else it decodes the PNG itself, averages it down to a small thumbnail, and draws it in colored half blocks (
▀) with Claude Code's Raster element. It's lower resolution than a real picture, but it's the picture.
Terminal Support
Claude Code, not the mod, decides whether a terminal gets real pictures. It draws them in kitty (0.28+) and Ghostty, and turns them off inside tmux and screen and in background sessions. Every other terminal gets half-block thumbnails.
| Terminal | Thumbnail |
|---|
| Ghostty, kitty | Real picture |
| iTerm2, Terminal.app, WezTerm, VS Code, Windows Terminal, Orca, most others | Half blocks |
| Inside tmux or screen, even in Ghostty or kitty | Half blocks |
| Agent view and background sessions | Half blocks, or real pictures with CLAUDE_CODE_FORCE_TERMINAL_IMAGES (below) |
Some terminals speak the kitty graphics protocol but still get half blocks, because Claude Code trusts terminals by name (anthropics/claude-code#99566), or because it doesn't wrap images for tmux passthrough yet (anthropics/claude-code#100146). Those are Claude Code limits, so a fix there brings real pictures to the mod with no change here.
CLAUDE_CODE_FORCE_TERMINAL_IMAGES=1 makes Claude Code draw pictures in any terminal. Only set it if your terminal supports the kitty protocol's Unicode placeholders. VS Code's terminal, for one, doesn't yet, and shows a grid of colored squares instead (xtermjs/xterm.js#5711).
Security
Claude Image View is local-only. It makes no network requests. It reads the prompt box, lists Claude Code's temp folder to find the current session's image cache, and reads each pasted image (up to Claude Code's 4 MiB read limit). For a non-PNG paste it runs sips and writes one PNG thumbnail into that session's temp folder. On macOS and Linux it runs id -u once to find that temp folder. It also reads a few terminal variables (TERM, TERM_PROGRAM, TMUX and similar) to tell which kind of thumbnail Claude Code can draw.