dsh-anthropic-image-clamp:多图 Claude 请求前的图片尺寸钳制

在 DeepSeek Harness 中,会话内联图片超过 20 张时 Anthropic 会将单边最大像素限制为 2000px,易触发 messages 图片尺寸错误。host 插件 dsh-anthropic-image-clamp 包装对 api.anthropic.com/v1/messages 的 fetch,在出站前按 maxDimension(默认 2000)缩小超长边的 base64 内联图,结果确定性并可按内容哈希缓存。安装:dsh plugin --profile desktop add github:noahchalifour/dsh-anthropic-image-clamp,重启 DSH 后生效;可在 cordis.patch.yml 中配置 maxDimension 与 hosts。经 subscriptions-plugin HTTP 代理的请求可能绕过包装。MIT,Node >= 22。

阅读全文