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-modsReview the source before installing. Installation guide →
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
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
const terminal = await $.env.get('TERM_PROGRAM');const ghostty = await $.env.get('GHOSTTY_RESOURCES_DIR');const herdr = await $.env.get('HERDR_ENV') === '1';const forced = await $.env.get('CLAUDE_CODE_FORCE_TERMINAL_IMAGES');Can change prompts evidence
await $.prompt.fill({ origin: { kind: 'plugin', name: 'example' }, text: '[Image #1]', mode: 'replace' });Review methodology · Source and updates · Runtime limits · Function hooks guide