cd /news/developer-tools/show-hn-cc-preview-browse-images-pas… · home topics developer-tools article
[ARTICLE · art-39080] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Show HN: Cc-preview – Browse images pasted into Claude Code sessions

A developer released cc-preview, an open-source macOS tool that extracts and displays images pasted into Claude Code sessions, replacing placeholder text with a native preview interface. The tool uses Hammerspoon to provide keyboard-driven browsing and copying of images from AI coding sessions.

read2 min views1 publishedJun 25, 2026
Show HN: Cc-preview – Browse images pasted into Claude Code sessions
Image: source

Browse and preview images pasted into Claude Code sessions — directly from your Mac.

Claude Code displays pasted images as [Image #N]

placeholders. cc-preview extracts those images and lets you browse, preview, and copy them with a keyboard-driven native UI powered by Hammerspoon.

brew install Watari995/tap/cc-preview
cc-preview install

Then press Cmd+Shift+R in Hammerspoon to reload, and open cc-preview with Cmd+Shift+I.

brew install Watari995/tap/cc-preview

Download the latest binary for your Mac from Releases, then place it in your PATH

:

curl -L https://github.com/Watari995/cc-preview/releases/latest/download/cc-preview_darwin_arm64.tar.gz | tar xz
sudo mv cc-preview /usr/local/bin/

curl -L https://github.com/Watari995/cc-preview/releases/latest/download/cc-preview_darwin_amd64.tar.gz | tar xz
sudo mv cc-preview /usr/local/bin/
go install github.com/Watari995/cc-preview@latest

After installing the binary, run the one-time installer:

cc-preview install

This automatically:

  • Registers a SessionStart

hook in~/.claude/settings.json

  • Deploys the Hammerspoon script to ~/.hammerspoon/

  • Updates ~/.hammerspoon/init.lua

Then reload Hammerspoon (Cmd+Shift+R).

Action Shortcut
Open cc-preview Cmd+Shift+I
Filter sessions / images Type to search
Preview image Enter or Space
Close preview Esc or Space
Copy image to clipboard ⌘C while previewing
Go back Esc
Close everything Click outside the window
  • A SessionStart

hook records each Claude Code session to~/.claude-preview/sessions.json

cc-preview sessions

lists sessions that contain imagescc-preview images <session-id>

extracts base64-encoded images from the JSONL transcript and caches them under~/.claude-preview/image-cache/

  • The Hammerspoon script calls these commands and renders a native macOS chooser UI

Edit the config

table at the top of ~/.hammerspoon/cc-preview.lua

:

local config = {
    copyMods = {"cmd"},  -- modifiers for copy shortcut
    copyKey  = "c",      -- key for copy shortcut
}

To change the global shortcut (default Cmd+Shift+I):

hs.hotkey.bind({"cmd", "shift"}, "I", showSessions)

MIT — see LICENSE

── more in #developer-tools 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-cc-preview-b…] indexed:0 read:2min 2026-06-25 ·