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。

閱讀全文