spyfree/dsh-media-guard

spyfree★ 0TypeScript最后同步: 2026-08-20

在 GitHub 打开

Deterministic aggregate media budgets and safe request projections for DeepSeek Harness (dsh)

README 摘要

dsh-media-guard Request image optimization, intelligent retention, and observability for DeepSeek Harness (DSH). dsh-media-guard optimizes the provider-bound image view before every agent-loop model call. It inventories attachment references, compresses oversized images, deduplicates by content address, preserves current-turn and user media first, and replaces media that still cannot fit with factual Evidence Notes. The durable session log and original attachments are never modified; compressed variants are added through DSH's immutable attachment store. DSH 0.1.0-rc.8 already supplies the baseline safety layer this plugin originally filled: attachment admission rejects unsafe per-image/per-message inputs, and offloadRequestImages() lets the official Pi AI and DeepSeek adapters cap aggregate Base64 image payload at 20 MiB by replacing the oldest images. Media Guard is therefore an optimization, retention-policy, and observability layer , not a claim that DSH lacks request-size protection. Its remaining advantages are compression instead of immediate removal, content-address deduplication, current-turn/source-aware retention, tighter configurable budgets, Evidence Notes, reporting, …

在 GitHub 查看完整 README →
工具/开发cordis-plugindeepseek-harnessdshdsh-pluginimage-compressionmultimodalagent

分类