ADkun/dsh-auto-stop ↗★ 0

dsh-auto-stop

在达到输出上限前截断并由父代理继续 适合需要处理超长文本输出、避免因截断导致信息丢失的用户。

包名
dsh-auto-stop
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年9月30日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ADkun/dsh-auto-stop

Configuration

Every field is editable live from the Plugins page; the plugin re-reads its resolved config before each model call, so a saved value applies to the very next response.

optiondefaultwhat it does
enabledtruemaster switch
reserveRatio0.05fraction of the ceiling to leave unused
reserveMin256floor for that reserve, for small ceilings
charsPerToken3.5characters per token outside the CJK ranges
cjkTokensPerChar0.8tokens per CJK character
minBudget1024ceilings below this are not touched at all
notifyParenttruehand a truncated child back to its parent
parentPrompt(Chinese, two lines)the notice; {agentId}, {tokens}, {continueMessage}
continueMessage继续(从断点接着写,不要重复已写内容)what the parent is told to send back

The cutoff lands at ceiling - max(reserveMin, ceiling * reserveRatio). The reserve pays for the estimator's error, for the block-closing chunks, and for whatever the provider counts that no delta ever carried. Ending a response a few hundred tokens early is harmless; overshooting the real ceiling is the failure this plugin exists to prevent — hence 3.5 rather than DSH's own flat 4 characters per token.