blake-r/dsh-plugins--packages-dsh-compaction-micro ↗★ 0
@blake-r/dsh-compaction-micro
Per-request trajectory re-composition for the kb preset. 适合使用kb预设并需控制会话压缩的用户,可配置异常结束时跳过压缩或保留最后一段会话。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:blake-r/dsh-plugins#19ca874106b2a06e26147150bd6b544839d0e0a9&path:packages/dsh-compaction-microドキュメント
README 全文を読む ↗Configuration
The plugin reads its options from the plugin row's config in the profile
patch:
compactOnAbnormal(boolean, defaultfalse): when a turn ends abnormally (error,max-tokens,aborted,blocked) or reasoning-only, the plugin normally folds everything up to the previous turn and keeps only the last (problematic) session live so the interrupted reply / chain of thought survives a "Continue". Set this flag totrueto enable that keep-last-session behavior. Whenfalse(the default), compaction is skipped entirely on such turn ends, so past sessions are never compressed on a request failure.
Example:
- id: dsh-compaction-micro
config:
compactOnAbnormal: false