dsh-anthropic-image-clamp: Image Size Clamping for Multi-Image Claude Requests

In DeepSeek Harness, when a session exceeds 20 inline images, Anthropic restricts the maximum pixel dimension to 2000px, which can easily trigger image dimension errors in messages. The host plugin **dsh-anthropic-image-clamp** wraps the `fetch` for `api.anthropic.com/v1/messages`, resizing Base64-encoded inline images with dimensions exceeding the limit before outbound transmission, based on a configurable `maxDimension` (default: 2000). The result is deterministic and can be cached by content hash. **Installation:** Run `dsh plugin --profile desktop add github:noahchalifour/dsh-anthropic-image-clamp` and restart DSH to activate. You can configure `maxDimension` and hosts in `cordis.patch.yml`. Note that requests proxied via the **subscriptions-plugin** over HTTP may bypass this wrapping. **License:** MIT, Node >= 22.

Read More