
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
pi-image-paste
Advanced tools
Pi extension that turns pasted image paths into first-class image attachments with automatic optimization.
First-class image attachments for the Pi coding agent.
Paste, drop, or clipboard-paste images — auto-optimized and attached instantly.
Terminal image workflows are awkward. Dragging a screenshot into a terminal inserts a raw file path. Pasting from clipboard requires special handling. Even when the model could inspect a file through tools, that adds friction and wastes context budget.
Pi Image Paste makes image input feel native in pi interactive mode — paste a path, get a placeholder, submit with the image already attached and optimized.
[#image 1] placeholder immediately~/), quoted, shell-escaped, Windows, and WSL paths[#image N] block, not character-by-characterpi install npm:pi-image-paste
That's it. The extension auto-loads in pi interactive mode — paste any image path and it gets replaced with a placeholder. On submit, the image is attached alongside your text.
flowchart LR
A[Paste / Drop path] --> B[Ingest Pipeline]
B --> C[Path Parser]
C --> D[File Loader]
D --> E[Attachment Store]
E --> F[Placeholder in editor]
D -.->|fire-and-forget| G[Optimizer]
G -.->|JPEG q95→60, resize| E
F --> H[Submit]
H --> I{Await pending optimizations}
I --> J[Attach images to message]
Optimization runs at ingest time (fire-and-forget async), so images are already compressed by the time you submit. The submit handler just awaits any stragglers.
pnpm install
vp check
vp test run
vp run build
pi -e .
Built for the Pi coding agent.
FAQs
Pi extension that turns pasted image paths into first-class image attachments with automatic optimization.
The npm package pi-image-paste receives a total of 67 weekly downloads. As such, pi-image-paste popularity was classified as not popular.
We found that pi-image-paste demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.