washengru/dsh-remember-approval ↗★ 0

dsh-remember-approval

DeepSeek Harness 插件:同一会话内,已经人工批准过的同类审批请求不再重复询问(按 会话 + 工具 + 动作前缀 记忆)。 适合频繁执行同类工具操作、希望减少重复审批弹窗打扰的用户。

Package
dsh-remember-approval
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Oct 19, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:washengru/dsh-remember-approval

配置

在 profile 的 cordis.patch.yml 里该 insert 行下加 config::

- insert:
    - id: remember-approval
      name: dsh-remember-approval
      config:
        enabled: true
        rememberEmptyReason: false   # 无理由的请求是否也记忆(默认否)
        minHumanDelayMs: 200         # 下游耗时低于此值视为自动批准,不记忆
        maxKeysPerSession: 200       # 单会话最多记多少条
        maxSessions: 64              # 最多跟踪多少会话
        skipTools: [pwsh]            # 这些工具不记忆
        neverRemember:               # reason 命中即永不记忆
          - 'danger-full-access'
          - '删除|rm -rf|format'
        log: true                    # 控制台打印命中/记忆日志
        debug: false                 # 把每次审批的调用/reason/命中写到 debugLogPath
        debugLogPath: ''             # 调试日志路径;默认系统临时目录下的 dsh-remember-approval.debug.log