arthur-fontaine/nixconfig/tree/main/modules/home/programs/claude/mods/image-view

Claude Code에 붙여 넣은 이미지를 확인하세요. 단순한 [Image #1] 태그 대신 프롬프트 위에 미리 보기를 표시합니다.
arthur-fontaine/nixconfig/tree/main/modules/home/programs/claude/mods/image-view

Claude Code 모드로, 붙여 넣은 이미지를 표시해 프롬프트 위에 단순한 [Image #1] 태그 대신 미리 보기를 보여 줍니다. Zed 반 블록 폴백, 레이블을 클릭할 때의 macOS Quick Look, kitty 그래픽 프로토콜이 필요한 로컬 전용 동작을 포함합니다.
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add arthur-fontaine/nixconfig claude plugin install image-view
Local copy of jarrodwatts/claude-image-view at
b3c412b, managed by nixconfig. Three changes:
- Tiles also show in the transcript: under each sent prompt with
[Image #n]tags, and under each image Claude reads with Read (a "Read image" row, or a folded "Read N files" line) or sends you with SendUserFile or SendUserMessage (a "› [image] …" row). A JPEG, GIF or WebP is shown from a PNG copysipsmakes, sinceImageonly reads PNG files.- In Zed's terminal (
TERM_PROGRAM=zed), which has no graphics protocol, tiles are drawn as half-block pixel art (hooks/halfblock.ts) instead of the alt text. Every other terminal still gets the kitty-protocolImage.- Clicking a tile's
#nlabel opens the image in macOS Quick Look, throughbin/quicklook(built fromquicklook/main.swiftby nixconfig): no Dock icon, and on the display under the pointer. Without it, the mod falls back toqlmanage -p. The picture itself can't take a click: Claude Code'sImageandRasterelements don't accept presses.
A Claude Code mod that shows the images you paste, so you see thumbnails above your prompt instead of bare [Image #1] tags.

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.
<details> <summary><strong>Prefer the terminal?</strong></summary>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.
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]
Claude Code saves every pasted image to a cache folder for the session, as <tmp>/<project>/<session>/images/<n>.png, and puts an [Image #n] tag in the prompt. Claude Image View is a mod:
[Image #n] tags. It checks on a timer because pasting an image doesn't raise an edit event.Image element. The terminal reads the file itself, so the image data never passes through the mod.Claude Image View is local-only. It makes no network requests and, outside Zed, writes no files. In Zed it runs /usr/bin/sips to scale each pasted image into a mktemp -d folder as a BMP, and reads its pixels back. Clicking a tile's label runs bin/quicklook (or /usr/bin/qlmanage -p) on that image. It reads the prompt box, lists Claude Code's temp folder to find the current session's image cache, and reads the first bytes of each pasted image. If CLAUDE_CODE_TMPDIR isn't set, it runs id -u once to find the default temp folder.
Run claude plugin validate on the repo to see every event it hooks and every call it makes.
Zed shows each picture as colored half blocks, two pixels per cell, so a thumbnail is a rough preview. Other terminals show [Image #n] in each tile instead of the picture. The Claude Desktop app already previews pasted images, so the mod draws nothing there.
Nothing appears when I paste. Run /plugin and check the dim line under the tabs lists image-view as an active mod. If it isn't listed, run /reload-plugins.
The tile says "no preview". The mod couldn't find the cached file. Claude Code may have moved where it stores pasted images. Please open an issue with your Claude Code version.
The tile shows [Image #1] text instead of the picture. Your terminal doesn't support the kitty graphics protocol. See Requirements.
The tile shows [Image #1] text in agent view or a background session, even in Ghostty or kitty. Claude Code turns terminal images off for background sessions. If you attach from a terminal with the kitty graphics protocol, turn them back on in the env block of ~/.claude/settings.json, then start a new session:
"env": { "CLAUDE_CODE_FORCE_TERMINAL_IMAGES": "1" }
git clone https://github.com/jarrodwatts/claude-image-view
cd claude-image-view
# Load it for one session without installing
claude --plugin-dir .
# Check it and run the tests
claude plugin validate .
claude plugin test .
Claude Code writes the API types into .claude-plugin/types/ the first time it loads the mod, and tsc -p . type-checks it from then on.
MIT. See LICENSE.