← Catalog

@tian.zuo/pi-image-cache

Temporary pasted-image cache with compact placeholders for the pi coding agent.

Extension

Install

Install with PiG

pig install npm:@tian.zuo/pi-image-cache

Install with Pi

pi install npm:@tian.zuo/pi-image-cache
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.3 (README.md). PiG does not review it.

@tian.zuo/pi-image-cache

Release notes: changelog · GitHub releases

Temporary pasted-image caching with compact placeholders for the pi coding agent.

pi install npm:@tian.zuo/pi-image-cache

How it works

Caches pasted images so they survive as compact [Image#NNN] placeholders and are re-attached to the model on send.

On macOS, Ctrl+V pastes the clipboard image directly — both raw image data (screenshots, "Copy Image") and image files copied in Finder, including multiple files at once. File references win over pasteboard image data, because Finder also puts a generic 1024×1024 document icon on the clipboard next to the file it copied.

The cache lives under ~/.pi/agent/cache/image-cache/ with a 24h TTL, alongside a small PNG rendition per non-PNG image so inline previews work in Kitty-protocol terminals (Ghostty, Kitty, WezTerm) and after a session resume.

Commands

  • Ctrl+V — paste a clipboard image (macOS).
  • /images — list cached images.
  • /image-cache-clear — clear the cache.

License

MIT © Tian Zuo