cs-images
Reviewed
at commit 8634f70
Draws pictures from absolute file paths inside replies, as pixels or coloured blocks.
0 upvotes
Log in to upvote or save- Made by
- cs
- Pinned commit
-
8634f70b8385ac217208b151b6a1d5eb16937d6e - What we checked
-
Draws a picture in the chat when a reply has a line like , as real pixels if the terminal supports them and coloured blocks otherwise. It uses macOS sips to read and convert the image, keeps short-lived temp files and makes no network calls.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (checks that sips exists, sweeps its own cs-images-tmp-* files older than 60 minutes in TMPDIR or /tmp with find -maxdepth 1 -delete) and ui.render for AssistantMessage. Only whole lines outside code fences matching an absolute path ending in png, jpg, jpeg, gif, heic, webp, tif, tiff or bmp are drawn. For each, $.process.run calls sips (argv, no shell) to read the size and to convert to bmp or png in a uniquely named temp file, $.fs.read reads the converted file, and rm -f deletes it afterwards. The picture goes only to the terminal through $.ui Image or Raster; $.ui.blit asks the terminal whether it shows pixels. Results are cached in memory (64 and 16 entries). Any file path a reply names can be drawn, so Claude can show an image from outside the project on your screen. Option drawImages=false turns it off. The skill show-image only tells Claude to write that line and to keep secrets out of image descriptions. No fetch, eval or encoded code.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- 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: no
- Shows something on screen: yes
- Hooked events
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/cs-images/)