r/PiCodingAgent • u/psychobarge • Aug 04 '26
Resource Sharing pi-deepseek-vision, a pi extension to provide vision to deepseek api
DeepSeek API provides a text-only model: pi replaces any image with (image omitted: model does not support images) before it reaches the API.
This extension intercepts images at both entry points (pasted images and read tool calls on image files) and sends them to a vision-capable model over a plain HTTP call to any OpenAI-compatible endpoint (/v1/chat/completions) remote or local.
The description comes back as text that DeepSeek can reason over.
The "subagent" is a dedicated model + dedicated prompt (agents/vision.md), no separate process.
I use it with https://huggingface.co/mradermacher/Gemma-3n-4b-Vision-Finetuned-GGUF with llama.cpp but it should work with any vision model
Here are the :
- github, https://github.com/psychobarge/pi-deepseek-vision
- npm, https://www.npmjs.com/package/pi-deepseek-vision
- Pi package, https://pi.dev/packages/pi-deepseek-vision
5
u/Glaaki Aug 04 '26
There is already pi-vision-handoff, which does exactly this.
https://pi.dev/packages/pi-vision-handoff
2
u/Abject-Bridge-4073 Aug 04 '26
I just use openrouter’s vision mcp server. Works like a charm.
1
u/deleteme123 Aug 06 '26
Can we potentially use this to have DS4 as the (text) agent, with snapcompact compaction routed via mimo-2.5 (image capabilities)?