sailoflight/dsh-tui-compact-carry ↗★ 0
dsh-tui-compact-carry
TUI-only DeepSeek Harness plugin: compaction count and live progress in the status line, plus /carry to bring a cached compaction summary into the current session. 适合使用 TUI 界面、需要监控和管理上下文压缩状态的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sailoflight/dsh-tui-compact-carry配置项(index.js 顶部 CONFIG)
| 键 | 默认 | 含义 |
|---|---|---|
carryMode | 'merged' | 命令参数可覆盖;'merged'=最后一条全量,'all'=每一次压缩按序 |
maxCarryChars | 0 | 注入正文字符上限,0=不截断 |
maxKeepSessions / maxItemsPerSession | 8 / 64 | 内存缓存上限 |
statusKey / showStatus | 'compact-carry' / true | 状态行 key 与开关 |
showProgress / progressElapsed | true / true | 压缩进行中的进度态;是否带秒数 |
progressMaxMs | 900000(15 min) | 进度兜底上限:超过视为 compaction/end 丢失,回到计数行 |
useCheckpointMarker | true | 用官方 kind:'compact-checkpoint' 标记(渲染成原生压缩检查点行)。设为 false 则改用 plugin:dsh-tui-compact-carry(代价:不折叠成检查点行) |
showNextStepToast | true | 关键节点弹一条 tuiToast(拿不到该服务则静默跳过) |
autoArmOnManualCompact | true | 用户按官方 /compact 后自动缓存摘要(等 /carry 带入) |
autoArmWindowMs | 1800000(30 min) | 缓存的有效窗口;超过就不带。0/负数 = 不过期 |
autoCarryOnNew | false | 自动版:新会话出现后自动写入。默认关 |
autoCarryDelayMs | 1500 | 自动版的延迟:等 /new 的切换事务落定后再写 |