Hanochhu/dsh-context-offload ↗★ 0

dsh-context-offload

将历史工具调用替换为简短存根的上下文卸载插件 适合长对话中需要精简上下文、节省Token并防止超出限制的任务。

套件
dsh-context-offload
相容性
待驗證
Harness 依賴範圍
^0.1.5-rc.3
Cordis 依賴範圍
4.0.2
版本
0.1.0
授權
MIT
最近更新
2026年9月24日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Hanochhu/dsh-context-offload

Configuration

All fields are optional.

FieldDefaultMeaning
enabledtrueSet false to keep only the model-facing tool.
retainUnits8Most recent complete tool units kept verbatim. Counted in units, not steps — step restarts at 1 for every turn, so a step delta across a turn boundary is meaningless.
minUnitChars4000A unit smaller than this many text characters is not worth a replacement.
flushChars20000Do not break the request prefix for less than this much releasable backlog.
flushEverySteps10At most one automatic flush per this many steps.
maxUnitsPerFlush40Upper bound on replacements appended in a single flush.