pi-present
Let your agent show you something — without bloating the context. Render files, URLs, and images inline in the terminal: markdown image citations via the graphics protocol, and a present tool that pulls and renders referenced content for the user while th
Package details
Install pi-present from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-present- Package
pi-present- Version
0.3.0- Published
- Dec 6, 2026
- Downloads
- not available
- Author
- zaypen
- License
- MIT
- Types
- package
- Size
- 504.5 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"image": "./assets/preview.png"
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-present

Let your agent show you something — without bloating the context.
Let the user read, the model doesn't pay.
Long coding sessions burn context on content the user needs to see: a
screenshot, a log dump, a generated diagram. pi-present surfaces that
content in the terminal while the model only ever receives a short text
reference — the bytes never enter the conversation.
Two surfaces, one purpose:
- The
presenttool — point the model at a file or URL; it pulls the content, sniffs its mime type, and appends a custom session entry that the transcript renders inline, flowing with the messages: images through the graphics protocol (converted to PNG on Kitty terminals), text/code as syntax-highlighted lines, markdown as rendered markdown. Custom entries are excluded from the model context, so the pulled content never enters the conversation. - Citations inside presented markdown —
in a presented file (e.g. a README) is expanded into a realImagecomponent, so the terminal draws it and reserves its height natively. Relative paths resolve against the presented file's directory. Citations in normal messages stay as alt text.
When rendering isn't possible — a terminal without graphics support, a
failed pull, text larger than 200 KB — the tool falls back to a clickable
file:// / https:// URI (OSC 8 hyperlink) you can open yourself.
Install
pi install npm:pi-present
# or from a local checkout
pi install ./pi-present
Use
- Ask the model to "present the image at …" or "present https://…".
- Present a markdown file whose
citations point at images the terminal can draw (Kitty, Ghostty, WezTerm, Warp, iTerm2…) to see them inline.
Limits
- The inline-citation transformer is synchronous, so it only renders local files (no URL fetching) and, on Kitty terminals, PNG only.
- Text over 200 KB falls back to the URI instead of flooding the transcript.