blake-r/dsh-plugins--packages-dsh-compaction-micro ↗★ 0

@blake-r/dsh-compaction-micro

Per-request trajectory re-composition for the kb preset. 适合使用kb预设并需控制会话压缩的用户,可配置异常结束时跳过压缩或保留最后一段会话。

パッケージ
@blake-r/dsh-compaction-micro
互換性
未検証
Cordis ピア範囲
^4.0.1
バージョン
0.2.0
最終更新
2026/10/07

インストール

$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, default false): 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 to true to enable that keep-last-session behavior. When false (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