huajikano/claude-on-dsh ↗★ 2

claude-on-dsh

Claude on DSH: Claude Code CLI or Desktop plans a project, hands it to DSH, and adds editable opening questions, handoffs, post-turn Claude review, and a reviewed development document.

Package
claude-on-dsh
Compatibility
Unverified
Version
2.1.4
Last updated
Nov 12, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:huajikano/claude-on-dsh

配置

在 cordis.patch.yml 的本插件行里覆盖任意字段(全部有默认值):

- id: claude-on-dsh
  config:
    claudeCliPath: ''          # 原生 claude.exe;空则自动探测
    desktopAppPath: ''         # 桌面版 claude.exe;空则自动探测 WindowsApps
    ccSwitchPath: 'D:\CC Switch\cc-switch.exe'
    permissionMode: plan       # plan | dontAsk | acceptEdits | bypassPermissions | auto
    permissionPreset: danger-full-access  # 新会话权限预设;完全权限
    model: ''                  # 传给 CLI 的 --model;空则沿用 Claude 原生设置
    timeoutMs: 240000          # 单次 Claude 调用超时

两种使用方式

  1. 派发给 DSH:Claude 提问 → 你回答 → DSH 执行整案。这个入口不会打开 Claude 终端。
  2. Claude 直接验收:在派发记录或派发成功卡片里点「交给 DSH 验收」,在对话框选择「Claude 直接验收」,插件会按该会话的原始事实生成报告;也可以运行 node bin/acceptance.mjs run 在终端查看完整过程。

自动验收默认 off;只有同时设置 acceptance.legacyGate: true 与 gatePolicy: ask|auto,才会在 DSH turn 结束后跑隐藏验收。手动入口 /acceptance run 与 node bin/acceptance.mjs 在 lean 模式下始终可用。

配置

- id: claude-on-dsh
  config:
    acceptance:
      legacyGate: false        # true 才启用 turn 结束后的自动验收
      gatePolicy: off          # off | ask | auto(仅 legacyGate: true 时生效)
      timeoutMs: 180000        # 单次验收总预算
      askTimeoutMs: 120000     # ask 等待用户回答的上限
      judgeTimeoutMs: 180000   # Claude 判定上限
      judgeRetries: 2          # schema 校验失败重试次数
      reportDir: .dsh/acceptance
      allowedPaths: []         # 空 = 工作区内全部允许;写 workspace 外交付物时加白名单