dsh-tool-round-limited-target
Manifest validAdd round limit to DSH's /goal: /goal 3 organize documents means it will run automatically for at most 3 rounds, and once used up, it will be automatically marked as blocked (round-limit), without running an extra round.
dsh-tool-round-limited-target(限轮目标)
中文 | English
给 DSH 的 /goal 加一个轮数上限:写在最前面的数字就是最多自动执行的轮数,用完自动停。
/goal 3 整理文档 # 最多 3 轮
用法
/goal 3 整理文档 # 最多 3 轮
- 轮数写在最前面才是上限,
轮/次/rounds可省:/goal 3轮 整理文档等价。 - 写在末尾不算:
/goal 整理文档 3里的 3 属于目标文本,按官方语义不设上限。 - 子命令同内置
/goal:rounds <n>只改上限、edit [轮数] 目标改目标、pause/resume/clear,不带参数查看状态。
轮数用完,目标自动变成 blocked(code=round-limit),不会多跑。要接着做:
/goal rounds 8 # 先提高上限
/goal resume # 再恢复
安装
要求:Node.js 20+,且已装好 DSH。
跟随 main(会随仓库最新提交变化):
dsh plugin --profile web add git+https://github.com/Fireawa/dsh-tool-round-limited-target.git
锁定版本(推荐,行为可预期):
dsh plugin --profile web add github:Fireawa/dsh-tool-round-limited-target#v1.0.3
也可以 Web → Plugins → 添加插件 → 粘贴上面的地址(或本地路径)。装完重启 dsh web。
本地开发用 link: 指向 checkout 即可。
工具
round_limited_goal(target, rounds?, replace?):给模型用的自然语言入口。target="3 整理文档" 或 rounds=3 就是 3 轮;没有显式轮数时直接拒绝,避免模型在普通对话里凭空建出一个限轮目标。
配置
cordis.patch.yml 可改,括号内是默认值:
commandName: goal # 主命令名
aliasCommandName: target # 别名,'' 关闭
shadowGoalPerAgent: true # false = 退回内置 /goal
trailingRounds: false # 只认「3 目标」;末尾数字按官方语义算目标文本
defaultRounds: 3 # 仅在 requireExplicitRounds=false 时兜底
maxAllowedRounds: 500
requireDirectHuman: true # 只允许真人回合创建
requireExplicitRounds: true # 没有显式轮数就拒绝建目标(防模型误触发)
自检
node selftest.mjs # 136 项,离线
node verify-live.mjs # 20 项,需要本机 DSH(没有会跳过)
node mutate.mjs # 变异测试
npm run check # 全跑
实现只有 index.js + lib/{parse,command,tool,config}.js,零依赖。
许可证
MIT © Fireawa。发布流程见 PUBLISHING.md。
Comments
Loading…
Similar plugins
by zchuxi
DSH Web 插件:三段式回合恢复(同轮静默重试 / 输出超限同轮续写 / 可选新一轮继续),输入框为空时发送键变成「继续」。A three-tier recovery policy for broken turns for DSH.
★ 0
MIT
JavaScript
Oct 3, 2026
dsh plugin --profile web add dsh-restart-taskby mengge237
嘻嘻,我一定要用 DeepSeek harness - dsh-auto-continue: max-tokens 截断、429 限流、上下文压缩吞轮三种断档自动补一枪
★ 0
NOASSERTION
JavaScript
Oct 1, 2026
dsh plugin --profile web add @mengge237/dsh-auto-continueby Shuffle-1992
DSH 上下文智能压缩 + 智能思考:每轮注入用量、模型自主决定压缩并自动续跑;可选让模型按任务难度自主调整思考强度档位
★ 4
↓ 35/wk
MIT
JavaScript
Nov 6, 2026
dsh plugin --profile web add dsh-context-pilotHard stop for runaway turns: blocks repeated identical tool calls and ends the turn when per-turn step or time budgets are exceeded.
★ 0
dsh plugin --profile web add dsh-loop-breakerby tmeeli
Automatically resumes active goal sessions after DSH restart; long-running tasks continue without a manual nudge.
★ 0
↓ 41/wk
MIT
JavaScript
Aug 16, 2026
dsh plugin --profile web add auto-goal-resumeby mmojie
Emit a user-source message so the next turn can pass the create_goal human-turn guard. DEFAULT OFF; read the README first.
★ 0
MIT
JavaScript
Nov 13, 2026
dsh plugin --profile web add dsh-goal-autostart