Soulize/dsh-continue-on-limit-host ↗★ 1
dsh-continue-on-limit-host
Host-side global max-tokens auto-continuation for DeepSeek Harness with Follow-up and selectable transparent Steer tool-call policies. 适合需要解决模型因 Token 限制中断并实现自动继续输出的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Soulize/dsh-continue-on-limit-hostドキュメント
README 全文を読む ↗配置
enabled: true
continuationMode: followup # followup | steer
steerToolCallPolicy: discard # discard | passthrough
continueText: 继续
maxConsecutive: 3
minIntervalMs: 0
includeSubagents: true
debugLogging: false
字段说明:
| 字段 | 默认值 | 说明 |
|---|---|---|
enabled | true | 总开关 |
continuationMode | followup | Follow-up 或透明 Steer |
steerToolCallPolicy | discard | Steer 遇到 max-tokens + tool-call 时:discard=0.4.1 暂存并丢弃;passthrough=0.4.0 兼容透传 |
continueText | 继续 | 自动 Steer / Follow-up 的文本 |
maxConsecutive | 3 | 最多连续注入多少次续写;0 不限 |
minIntervalMs | 0 | 自动注入之间的最小间隔 |
includeSubagents | true | 是否处理 Subagent |
debugLogging | false | 详细日志 |
Steer 模式中,maxConsecutive 限制的是插件主动注入的 agent.steer() 次数。discard 每次截获 max-tokens 都会尝试 Steer;passthrough 在已经有 closed tool-call 时改走原生工具执行,不额外消耗一次 Steer 计数。
配置为 volatile,可在 Plugins 页面热更新;模式切换会清空上一模式的连续计数和已处理状态。