yunxiyang/dsh-loop-continue ↗★ 0
dsh-loop-continue
DSH 智能体回合续航插件:当模型仅口头描述下一步行动而忘记调用工具时,自动引导其继续执行。
AI 分析
核心用途是纠正 Agent 运行中“光说不做”的遗忘行为。适合在使用复杂 Agent 任务时,减少因模型幻觉或中断导致的任务半途而废。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yunxiyang/dsh-loop-continue说明文档
阅读完整 README ↗dsh-loop-continue
Continue a DeepSeek Harness agent turn when the model only narrated its next action and forgot the tool call.
The agent loop closes a turn as completed the moment a step emits text and no
tool call. A model that writes "now I will re-apply the change" and stops looks
finished to the loop, even though the work is half done.
This plugin listens on agent/turn-stopping, replays the current turn's own
session log, and only asks a judge model one strict true/false question
when the shape matches that failure mode. true steers the same turn to run one
more step; false (or an unparseable answer) lets the turn close.
Config
| field | default | meaning |
|---|---|---|
maxContinuations | 10 | hard cap on steering per turn (no infinite loop) |
maxSteps | 10 | newest steps shown to the judge |
maxTailChars | 2000 | trailing-text budget split across the first and last halves |
judgeProvider | null | override provider; null = follow session route |
judgeModel | null | override model; null = follow session route |
judgeMaxTokens | 64 | judge output cap |
judgeTemperature | 0 | judge sampling temperature |
steerText | built-in | message that resumes the turn |
debug | false | log every evaluation |
Deterministic gates
No model call runs unless the turn both:
- ended on a text-only step (no tool call), and
- called at least one tool earlier (so a plain one-shot answer is untouched).
This keeps the extra judge call off ordinary finished turns and only spends it where the model plausibly dropped a pending action.