kanjyo-hirako/break_out_of_the_loop ↗★ 0

dsh-loop-guard

Structural loop-breaking guard for DSH agents: blocks zero-information repeat tool calls and injects actionable escapes.

套件
dsh-loop-guard
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年10月27日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kanjyo-hirako/break_out_of_the_loop

配置参考

- name: 'dsh-loop-guard'
  config:
    repeatLimit: 2          # 同结果执行几次即认定零信息量
    escapeRuns: 1           # 逃生口次数(拒绝后坚持重试的放行额度)
    noticeOnly: false       # true = 安全模式,只提醒不阻断
    include: []             # 仅跟踪这些工具(通配符);空 = 全部
    exclude: [job_output, job_kill, job_list, ask_user_question, 'schedule_*', todo_write]
    searchTools: [grep, search, search_file_content]   # D5 搜索类工具
    scopeFields: [path, include]                       # D5 必带作用域字段
    unscopedSearch: deny    # deny | allow
    argumentsPreviewChars: 300
    overlapThreshold: 0.9   # D2 行集合 Jaccard 阈值
    overlapWindow: 10       # D2 滑动窗口
    errorWatchSteps: 3      # D3 失败后 N 步无对症动作则提醒
    remedialTools: [read]   # D3 视为对症动作的工具
    anchorWindow: 5         # D4 连续 N 次无新结果注入锚点
    replayDetection: true   # D1' step 级重放
    minReplayChars: 100     # D1' 签名最小长度
    circuitBreakAfter: 6    # I5 连续干预无进展的熔断阈值

非法配置在装入时抛出明确错误(沿用内置守卫的 fail-loud 约定,绝不静默回退)。