dsh-context-saver:在提交给模型前裁剪上下文,本地会话仍完整保留
dsh-context-saver 是 DaVinci-2nd 为 DeepSeek Harness 编写的 send-time 上下文裁剪插件。它在 llm/stream 拦截 outbound messages,按规则清空 thinking 文本、合并重复 read、可选去掉终端参数与对话中部轮次内容,本地 session 与 trajectory 仍保留全量历史;关闭插件时请求与未裁剪版本字节一致。文章介绍面板选项、中部裁剪规则、官方安装命令与 README 中的 token/KV cache 实测数据,并说明安装前需审阅源码与权限。
阅读全文