/kitty-plugin:kitty-show-imagefrom kitty-plugin
Displays images to the user when Claude Code cannot render them inline, using kitty tabs or file-send tools with explanatory notes for judgment tasks.
Ships in kitty-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Claude Code cannot draw images inside the chat. Kitty's graphics protocol
needs escape codes written to a real terminal, and both the Bash tool and the
user's ! commands run without /dev/tty. A plain kitty +kitten icat from
either fails with open /dev/tty: device not configured.
| Use this skill when... | Use something else when... |
|---|---|
| The user should look at a screenshot, render or diagram | Only Claude needs to see the image: Read it directly |
| A visual gate needs the user's verdict on an image | Running other kitty @ commands: kitty-remote-control |
kitty +kitten icat fails with open /dev/tty: device not configured | A keybinding does nothing in kitty: macos-plugin:tui-keybinding-debug |
The user should never have to switch back to the chat to find out what they are looking at. Whichever channel you use, send the explanation with the image:
For the kitty tab, write the note to a file and pass --note. For a file-send
tool, put the same text in its caption. Send one image per question.
| Situation | Channel |
|---|---|
Default, when the session has a tool that sends a file to the user (for example SendUserFile) | That tool, rendered inline, with the note as its caption. It does not touch the terminal, and the file can reach the user's other devices. |
| The user wants it in kitty, or asked to see it "here" | show-image.sh. It opens and focuses a tab, so it needs the user's ask; one ask covers the rest of that session's images. |
No file-send tool, not in kitty ($KITTY_WINDOW_ID unset), and the user is at this machine | The desktop viewer: open <file> on macOS, xdg-open <file> on Linux. Print the note in the chat. |
bash "${CLAUDE_SKILL_DIR}/scripts/show-image.sh" [--note FILE] IMAGE [IMAGE...]
It needs kitty remote control: allow_remote_control and listen_on set in
kitty.conf, so $KITTY_LISTEN_ON is exported into the shell. Check with
kitty @ ls (read-only) before the first use.
Opens a tab titled Claude: image viewer with a banner saying it is
Claude Code's image viewer. Under the images it prints their file names and
then the --note text, just above the key prompt. With several images, only
the last stay on screen above the note; earlier ones scroll off the top. One
key press closes the tab, after which kitty returns focus to the previous tab.
The script prints the new window id. To confirm the tab rendered, read it
without touching it: kitty @ get-text --match id:<id>.
| Exit | Meaning | Next step |
|---|---|---|
| 0 | Tab launched | Tell the user which tab to look at and that a key press closes it |
| 1 | Bad arguments or missing file | Fix the path |
| 2 | Not in kitty, or remote control unreachable | Fall back to a file-send tool or the desktop viewer |
! kitty +kitten icat …. The ! shell has no TTY,
so it fails the same way the Bash tool does.kitty @ launch --hold, or --type=overlay without a banner.
--hold leaves an interactive shell prompt behind. An unlabelled overlay with
a prompt looks exactly like Claude Code has exited; a user who hit this tried
fg before discovering that ctrl+d got them back.close-window is on the destructive list in kitty-remote-control.| Context | Command |
|---|---|
| Is remote control reachable? | kitty @ ls >/dev/null && echo ok |
| Did the tab render? | kitty @ get-text --match id:<id> |
| Script contract test | bash "${CLAUDE_SKILL_DIR}/scripts/tests/test-show-image.sh" |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub laurigates/claude-plugins --plugin kitty-plugin3 skills in this plugin
/kitty-remote-controlSafe kitty remote control from an agent — read panes with kitty @ ls/get-text, notify, and never mutate the live terminal unasked. Use when running inside kitty./kitty-session-persistenceSnapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.Other plugins' skills for the same job