dsh-image-once: Inlining Conversational Images Only in the First Request
dsh-image-once is a DSH workflow plugin maintained by senyayume, designed to address the issue where dsh-llm-pi-ai repeatedly inlines offloaded images in base64 format during each request, causing request body bloat and increased TTFT (Time To First Token) latency. The plugin maintains accounting records for each image occurrence based on session, message, path, and attachmentId: it inlines the image in the first request and registers the occurrence after the initial chunk, then replaces the image with a Harness placeholder text in subsequent requests. Re-reading an image via read_image is treated as a new occurrence. The plugin supports both flat and nested tool-result message structures and allows scope limitation by provider and model on the plugin configuration page. Installation: Use "dsh plugin --profile <profile> add <local package directory> or github:senyayume/dsh-image-once". Licensed under MIT; review the source code before installation.
Read More