Perfirstvito/dsh-compaction-micro1

dsh-compaction-micro

Tiered micro-clear layer for DeepSeek Harness compaction: clears whitelisted re-runnable tool results to placeholders before the official summarization tier, freeing context with no model call.

AI 分析

核心用途是无损释放上下文空间。适合频繁运行只读、可重复执行工具(如文件读取、目录列出)的长对话任务,无需调用大模型即可高效缩减 Token 占用。

パッケージ
dsh-compaction-micro
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/09/01

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Perfirstvito/dsh-compaction-micro

ドキュメント

README 全文を読む ↗

Configuration

FieldDefaultMeaning
clearableTools[]Tool names whose results the micro tier may clear. Empty disables the tier. Only list read-only, re-runnable tools — the service does not verify that property.
retainRecent3Newest clearable results always retained visible.
microThresholdRatio0.85Clear at this fraction of the effective window. Must be in (0, 1].
reservedTokens0Tokens subtracted from the routed context window before scaling the threshold.
autotrueInstall the automatic listeners; false exposes only ctx.microCompaction.clearSession().

The whitelist is operator-owned and is the safety gate: read/glob/grep and read-only web tools are the intended members; write, edit, shell, subprocess, and workflow tools must stay out.