image-peek Claude Code mod

Previews pasted images in supported terminal environments.

  • session.start
  • prompt.edit
  • prompt.fill
  • command.run
  • session.end
  • session.compact
  • ui.render
  • ui.close

Install commands

Enter these two lines in the Claude Code prompt, in order.

1. Add marketplace   2. Install plugin
/plugin marketplace add karanb192/claude-code-mods
/plugin install image-peek@claude-code-mods

Review the source before installing. Installation guide →

Permissions Facts

Can read files
–
Can write files
–
Can access the network
–
Can read environment variables
Yes
Can change prompts
Yes
Can intercept tool calls
–

Capability evidence is not a security certification; “–” does not mean a capability is absent.

Source & updates

Last updated
2026-10-03
License
MIT
Plugin version
0.1.0
Claude Code
2.1.287+
Source
10617a9
Repository stars
37 · Repository contains 2 mods in this directory
Source files
Plugin manifest ↗Hooks configuration ↗Registered module ↗Marketplace manifest ↗

Source inventory

Declared events: session.start | prompt.edit | prompt.fill | command.run{command=image-peek} | session.end | session.compact | ui.render{component=AbovePrompt} | ui.render{component=Pane | requestId=image-peek} | ui.close{id=image-peek}

Declared API calls: $.clock.every | $.command.register | $.env.get | $.process.run | $.prompt.read | $.session.id | $.state.get | $.state.set (via save) | $.ui.close | $.ui.invalidate | $.ui.log | $.ui.open (via update) | $.ui.panes | $.ui.resolve

Can read environment variables evidence

image-peek:138 ↗

const terminal = await $.env.get('TERM_PROGRAM');

image-peek:139 ↗

const ghostty = await $.env.get('GHOSTTY_RESOURCES_DIR');

image-peek:140 ↗

const herdr = await $.env.get('HERDR_ENV') === '1';

image-peek:142 ↗

const forced = await $.env.get('CLAUDE_CODE_FORCE_TERMINAL_IMAGES');

Can change prompts evidence

image-peek:153 ↗

await $.prompt.fill({ origin: { kind: 'plugin', name: 'example' }, text: '[Image #1]', mode: 'replace' });

Review methodology · Source and updates · Runtime limits · Function hooks guide