dsh-Context-Drawer:上下文到阈值先落盘,再腾出模型可见空间
dsh-Context-Drawer 是 yue7ye 维护的 DeepSeek Harness 插件,版本 0.1.0,MIT。它只做一件事:当上下文达到阈值(默认 50%)时,先把更早消息追加到与会话关联的存档目录(默认 ~/上下文存档/{sessionShort}/{date}.md),落盘后再释放最旧的已结束轮次。最近 6 轮保留,单次最多释放 40 轮,释放到接近 0.45 停止。聊天记录与会话日志不改,状态写在 ~/.dsh/context-drawer/state/state.json。安装用 dsh plugin --profile <profile> add dsh-context-drawer。
阅读全文