shot-inline

Reviewed at commit 0e4c0dd New version, not yet reviewed

Draws each PNG or JPG the model saves or reads under its tool row: pixels in kitty and Ghostty, quadrant block cells in every other terminal.

Made by
Kerem Gok
What we checked

Draws a picture under the tool row whenever Claude reads or saves a PNG or JPG: real pixels in kitty and Ghostty, block characters in other terminals. It reads only the image files that tool calls name, uses the macOS sips tool to resize them, and keeps small converted copies in a temp folder. No network calls.

Review details

Static review of the source at the pinned commit; not run. Hooks: session.start (registers the /shot-inline command, reads the on/off and glyph settings, session cwd, and TERM, TERM_PROGRAM and KITTY_WINDOW_ID), command.run for /shot-inline (status, on, off, glyphs half|quadrant), tool.call for Read, Bash and the Playwright screenshot tool (after the call has run, via next(e); result is returned unchanged), and ui.render for ToolUse rows (wraps the row in a Box with an Image or Raster). Runtime calls: $.fs.exists, $.fs.stat, $.fs.read (bytes, PNG up to 4 MB, and the BMP it made), $.process.run with fixed argv arrays (sips for size, JPG-to-PNG and BMP conversion; mkdir -p for the temp folder TMPDIR/shot-inline), $.store get and set for enabled and glyphs, $.ui.invalidate and $.ui.log. Image paths come from the Read file_path, from png or jpg names found in a Bash command by regex, and from the Playwright result link; only existing files with those extensions are opened, and nothing is run from them (paths are passed as separate argv entries, no shell). Converted copies in the temp folder are not cleaned up. Pixels are drawn locally; no fetch, sockets or other hosts. sips exists on macOS only, so on other systems conversion of JPGs and large PNGs fails and is logged. Companion files eslint.config.js and Makefile are dev tooling and not loaded; no npm dependencies are imported.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for shot-inline

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/shot-inline.svg)](https://modsforclaude.com/mods/shot-inline/)

← All mods