dsh-anthropic-image-clamp
Manifest validDeepSeek Harness plugin: downscale images on Claude requests so many-image requests never hit the 2000px limit
dsh-anthropic-image-clamp
Stops this Claude error in DeepSeek Harness:
messages.N.content.M.image.source.base64.data: At least one of the image
dimensions exceed max allowed size for many-image requests: 2000 pixels
Cause. Anthropic allows up to 8000px per side, but a request carrying more than 20 images is capped at 2000px per side. DSH normalizes attachments to a 2048×2048 pixel budget (8192px long edge), so a phone screenshot such as 1080×2400 is stored as-is. Once a session's history holds more than 20 images, every request fails.
Fix. This host plugin wraps fetch for api.anthropic.com/v1/messages
requests and downscales any inline base64 image whose longer side exceeds
maxDimension (default 2000). The results are deterministic and cached by
content hash, so re-sent history stays byte-identical and the prompt cache
still hits.
Install, then restart DSH:
dsh plugin --profile desktop add github:noahchalifour/dsh-anthropic-image-clamp
Config override (profile cordis.patch.yml):
- id: anthropic-image-clamp
config: { maxDimension: 1568, hosts: [api.anthropic.com] }
Limitation: requests routed through a subscriptions-plugin HTTP proxy use undici's own fetch and bypass the wrapper. No proxy is configured on this machine.
Comments
Loading…
From the same category
DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.
★ 41.7k
↓ 270/wk
MIT
Aug 24, 2026
dsh plugin --profile web add dsh-plugin-reactive-resumeby Tencent
Let AI agents use your real, logged-in browser without interrupting your work. CLI + extension for browser automation across any shell-capable AI agent.
★ 8.1k
↓ 7k/wk
MIT
TypeScript
Sep 30, 2026
dsh plugin --profile terminal add @wxg-prc-cpg/browser-skill-dsh-pluginby yjh051108
dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).
★ 7k
MIT
JavaScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby Q00
Agent OS: the agent gets smarter on its own. We just hold the line: Interview-gated, staged evaluation, budgeted evolution loop. MCP server, 14 runtimes: Claude Code, Codex CLI, Gemini CLI, OpenCode,
★ 6.2k
MIT
Python
Oct 4, 2026
by dsh-market
The plugin market inside DeepSeek Harness — browse, search, one-click install · DSH 可视化插件市场
★ 5.5k
↓ 161.7k/wk
MIT
TypeScript
Oct 3, 2026
dsh plugin --profile web add dshmarketby superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
★ 4.2k
NOASSERTION
Python
Oct 4, 2026
dsh plugin --profile web add treg-dsh