dsh-codex-media
Run the following command in DeepSeek Harness:
dsh plugin install binsarjr/dsh-codex-media
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install binsarjr/dsh-codex-media in your terminal to add this plugin (source repo at https://github.com/binsarjr/dsh-codex-media) to your DeepSeek Harness.
About this plugin
Text-only models hit an awkward wall: DeepSeek Harness rejects image messages outright, and a naive document pipeline tends to dump the entire extracted text into the agent's context, blowing the token budget in one turn. dsh-codex-media takes a practical stance: instead of asking a language model to see, it hands the model a local file path and lets a local OpenAI Codex CLI or a compatible endpoint do the heavy lifting, returning only a concise answer to the agent. The plugin ships with zero runtime dependencies (Node 22+ built-ins only), deliberately omits any upload machinery, and pairs naturally with dsh-drop-to-path, which owns the drop-and-save UX.
Three capabilities sit behind one engine. analyze_image handles PNG, JPEG, WebP, and GIF for freeform description or targeted questions. analyze_document covers PDF, Office, RTF, and common text formats, and the engine extracts only the final assistant text so binary documents never flood the context window. generate_image turns a text prompt into a local file; by default it rides the Hermes Agent oneshot authenticated through an existing ChatGPT/Codex login, so no separate API key is required. Four transports are available on a single call interface, every request passes extension allow-lists, size caps, and a PDF magic-byte check, and a per-call timeout kills the process tree or aborts the HTTP request. Document contents are always treated as untrusted data, and the analysis prompt instructs the model to ignore any instructions embedded inside the file.
If you are building agent workflows on DeepSeek or another text-only model and occasionally need to glance at an image or read through a PDF, or if you want image generation to run entirely on a locally authenticated Codex CLI without juggling another API key, this plugin fills that gap. It does not change which model you use; it simply extends the model's reach to the files it cannot see natively.
Use Cases
- Have a text-only agent inspect and describe a local image
- Let an agent read a PDF or Office file and return only a targeted answer
- Generate an image file locally via Codex CLI without an extra API key
Best For
- Developers building agent workflows on text-only models like DeepSeek
- Teams that want a fully local inference path without juggling multiple API keys
- Integrators extending an agent's reach into vision and document understanding
Related Plugins
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.
An armor-breaking plugin for DeepSeek: rewrites instruction priority, expands refusal-blocked phrases, persists across sessions, and shows a green active indicator.