dsh-image-amnesia
文件与数据 活跃维护

dsh-image-amnesia

Choco-Zz/dsh-image-amnesia

在多模态请求中继环节自动过滤历史图像数据,仅保留最新上传图像的原生视觉识别能力,避免冗余视觉信息干扰模型判断,保障多轮视觉交互的准确性与响应效率。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
56 KB
仓库大小
22 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Choco-Zz/dsh-image-amnesia
git clone https://github.com/Choco-Zz/dsh-image-amnesia.git
git clone git@github.com:Choco-Zz/dsh-image-amnesia.git
README.md main

dsh-image-amnesia

A DeepSeek Harness profile bundle that keeps native vision (Grok, Claude, GPT, …) while stopping historical images from being re-uploaded to relay providers on every turn.

The local session still stores every original image. Only the outbound model request is projected. Every agent in the profile — including subagents and task-board jobs — shares the same wrap.

Why

DSH's built-in visual offload defaults are about 20MB / 600 images. Relays (OpenAI-compatible gateways) usually die long before that. Each read_image or paste stays in history and is sent again on the next turn.

This plugin drops oldest images first, and always keeps the newest keepAtLeast image so the current look still reaches a native vision model.

Install

pnpm dsh plugin --profile web add github:Choco-Zz/dsh-image-amnesia
pnpm dsh plugin --profile desktop add github:Choco-Zz/dsh-image-amnesia

Local checkout:

pnpm dsh plugin --profile web add "link:D:/CodexProjects/dsh-image-amnesia"

Install once per profile. You do not install it per agent. Subagents, task-board cron jobs, and new chats in that profile are covered automatically. See AGENTS.md.

Defaults

Key Default Meaning
enabled true Master switch
maxImages 6 Images kept in the outbound request
maxBytes 6291456 Byte budget for kept images
keepAtLeast 1 Never drop the newest N images

Edit image-amnesia.maxImages in settings.yaml or this package's cordis.patch.yml. Do not add a dsh.client half unless it is a real lazy-CJS client bundle — a stub card prevented DSH Desktop from starting.

Verify

Paste seven images in one session. Host log:

dsh-image-amnesia: dropped 1/7 image(s); kept 6

node --test

License

MIT