Icstick/dsh-context-maid ↗★ 1

dsh-context-maid

自动上下文策展:tool 输出瘦身 + 无效日志清理 + 工作流/记忆钉扎保护 + 先归档后压缩 适合需要优化大模型上下文、清理无效日志并保护工作流记忆的用户。

パッケージ
dsh-context-maid
互換性
未検証
Harness ピア範囲
>=0.1.0-rc.8 <1.0.0
Cordis ピア範囲
^4.0.1
バージョン
0.3.0
ライセンス
MIT
最終更新
2026/09/21

インストール

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

ドキュメント

README 全文を読む ↗

配置(用户可调)

键默认说明
trigger.userRatio0.4主旋钮:上下文阈值(占模型窗口比例)。映射官方 thresholdRatio,0.05-0.95
trigger.eventSlimtrue落地即瘦身(M5):step 边界对新增超预算 tool 结果增量瘦身;关掉 = 仅官方折叠压力路径内瘦身
slim.thresholdChars4000tool 输出超过即内容感知瘦身(eventSlim 与官方折叠压力路径)
slim.headChars / tailChars800 / 800瘦身保留预算
sweep.enabled / aggressivefalse / false垃圾清扫(M6):开启后 step 边界节流识别并 stub 结构性垃圾(aggressive 档规则未扩展,保留开关)
fold.retainRatio0.16压缩保留尾比例
pin.enabled / extratrue / []钉扎软保护:折叠摘要注入高权威事实(M3);逐轮注入由 ACP Composer 单轨承担(pin.inject 已删 0.3.0)
archive.enabledtrue先归档后压缩(需 ACP)
summarization.provider / model'' / ''摘要模型可配(空=跟随对话模型;可填便宜模型或本地 OpenAI 兼容网关)
auditDir$DSH_HOME/context-maid审计库位置