ADkun/dsh-auto-stop ↗★ 0

dsh-auto-stop

DSH plugin: end a response just before its output-token ceiling, and make a subagent's parent agent continue it. 适合需要处理超长文本输出、避免因截断导致信息丢失的用户。

패키지
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.