DSH Plugins Marketplace

DSH Plugins

Plugins

/

dshx-image-clamp

c

dshx-image-clamp

Manifest valid

Clamp every image sent to the model to a maximum side length (default 2000px) so Claude's many-image limit is never exceeded.

hasBundlePatch

dshx-image-clamp

Downscales every image sent to the model so its long edge is at most 2000px (and under a byte budget), avoiding Claude's many-image limit that otherwise breaks the whole session.

Claude 在一次请求里图片超过 20 张时,任何一张边长超过 2000px 就会整条请求被拒。DSH 的附件归一化只限制总像素,单边仍可能超过 2000(例如 2730×1536),之后每一轮都会重放这张图,整个会话就卡死了。

本插件包装 attachments.readImage,在图片发给任何 provider 之前实时缩小到长边 ≤ maxSide,并压到单张 maxBytes 以内。磁盘上的原图不改动,停用插件即完全还原。

配置(cordis.patch.yml)

字段默认说明
maxSide2000长边上限(像素)
maxBytes184320单张编码后字节上限(180 KB)

依赖宿主已有的 sharp(DSH 自带);找不到时插件会记录警告并不做处理。

安装

# Web profile
dsh plugin --profile web add github:callaumyan-design/dshx-image-clamp
# Desktop(用 DSH Desktop 自带的 dsh 命令,先从托盘完全退出 Desktop)
dsh plugin --profile desktop add github:callaumyan-design/dshx-image-clamp

安装后重启 DSH。卸载:dsh plugin --profile <profile> remove dshx-image-clamp。

兼容性

在 DeepSeek Harness 0.2.0-rc.2(desktop / web profile)上开发和使用。纯 JavaScript,无构建步骤,无安装脚本。

License

MIT

Comments

Loading…

Similar plugins

dsh-image-edge-cap

by mrbeandev

DeepSeek Harness plugin that caps the longest side of images sent to chosen providers or models (default 2000 px), with its own Settings tab

Manifest valid

★ 0

MIT

JavaScript

Oct 5, 2026

dsh plugin --profile web add dsh-image-edge-cap

by antonio-mastropaolo

DeepSeek Harness plugin: Sign in with Claude Pro/Max (no Anthropic API key). Also caps Anthropic request images at 2000px and slims /compact so a 1M context can still summarize.

Terminal & ClientsModels & ProvidersManifest valid

★ 4

MIT

JavaScript

Sep 16, 2026

dsh plugin --profile web add dsh-anthropic-membership

by zoumutou

DSH 插件:图片附件超限自动降级(2000px / 3.5MB / 4000万像素)

Development & InfrastructureManifest valid

★ 0

↓ 50/wk

MIT

JavaScript

Aug 22, 2026

dsh plugin --profile web add dsh-attachment-downscale

Trims historical images in outgoing chat requests down to a recent-image count, learns the provider per-prompt image cap from HTTP 400 responses, and retries with fewer images so image-heavy sessions

Vision & MultimodalManifest valid

★ 0

dsh plugin --profile web add dsh-image-guard

by Tiko9527

DSH high-resolution image tiler: slices large images into <=800x800 tiles before sending to DeepSeek. Highly AI-native, only DeepSeek participation.

Manifest valid

★ 0

BSD-3-Clause

TypeScript

Aug 23, 2026

dsh plugin --profile web add @dsh-external/dsh-image-tiler

by 940842546

Claude Code-style permission rules engine: hard/deny/ask/allow tiers with a hard tier above full access, workspace-scoped rules, wildcard path protection, and a visual staged editor; rules persist in

Security & AuditDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 4

↓ 134/wk

MIT

JavaScript

Sep 22, 2026

dsh plugin --profile web add dsh-permissions