Soulize/dsh-continue-on-limit-host ↗★ 1

dsh-continue-on-limit-host

全局最大 Token 限制自动续写工具 适合需要解决模型因 Token 限制中断并实现自动继续输出的用户。

套件
dsh-continue-on-limit-host
相容性
待驗證
Harness 依賴範圍
>=0.1.7-rc.1
Cordis 依賴範圍
^4.0.1
版本
0.4.2
最近更新
2026年9月28日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Soulize/dsh-continue-on-limit-host

配置

enabled: true
continuationMode: followup   # followup | steer
steerToolCallPolicy: discard  # discard | passthrough
continueText: 继续
maxConsecutive: 3
minIntervalMs: 0
includeSubagents: true
debugLogging: false

字段说明:

字段默认值说明
enabledtrue总开关
continuationModefollowupFollow-up 或透明 Steer
steerToolCallPolicydiscardSteer 遇到 max-tokens + tool-call 时:discard=0.4.1 暂存并丢弃;passthrough=0.4.0 兼容透传
continueText继续自动 Steer / Follow-up 的文本
maxConsecutive3最多连续注入多少次续写;0 不限
minIntervalMs0自动注入之间的最小间隔
includeSubagentstrue是否处理 Subagent
debugLoggingfalse详细日志

Steer 模式中,maxConsecutive 限制的是插件主动注入的 agent.steer() 次数。discard 每次截获 max-tokens 都会尝试 Steer;passthrough 在已经有 closed tool-call 时改走原生工具执行,不额外消耗一次 Steer 计数。

配置为 volatile,可在 Plugins 页面热更新;模式切换会清空上一模式的连续计数和已处理状态。