r/PiCodingAgent • • 17m ago

Plugin pi-present - Let your agent show you something — without bloating the context

Post image

Hi people who love pi,

tldr; an extension allows pi to present a file, either url or file path, inline. and you check the markdown plan without leaving pi.

Introducing something i built for myself, and hope it helps others who are facing similar problems.

Background, I use pi heavily on my homelab and side projects. I was bothered by that pi can't easily show me its work in place, either a screenshot or a markdown plan when it finishes. I have to switch back and forth between pi and vscode, file manager or sometimes other tools.

So i built this extension, it shows you image / file inline with a present tool, image rendered 75% of the terminal width, text based content as markdown with syntax highlighting.

I know some models can "read" the image, then it appear in the chat, however it consumes tokens, similarly it can generate the same content as what it writes again in reply. But with this you are free from worries about the context window and tokens.

Install:

pi install npm:pi-present
# or from a local checkout
pi install ./pi-present

Links:

https://pi.dev/packages/pi-present
https://github.com/zaypen/pi-present

Please have a try and give me feedback if you have

4 Upvotes

0 comments sorted by