shuxidemosheng/dsh-plan-mode-plus ↗★ 0

dsh-plan-mode-plus

ZCode-style plan mode for DeepSeek Harness: model-initiated enter_plan_mode tool, hard read-only enforcement while planning, and the four-phase planning workflow — builds on the official @deepseek-ai/dsh-plan-mode 适合需要在计划模式期间硬拦截写操作或破坏性工具,确保安全性的用户。

パッケージ
dsh-plan-mode-plus
互換性
未検証
Harness ピア範囲
0.2.0-rc.2
Cordis ピア範囲
^4.0.4
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/10/06

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:shuxidemosheng/dsh-plan-mode-plus

ドキュメント

README 全文を読む ↗

配置

cordis.patch.yml 的 insert 行携带默认配置(denylist 逐名核实自 app.asar 内各官方 dsh-tool-* 的 defineTool 定义):

- insert:
    - id: plan-mode-plus
      name: dsh-plan-mode-plus
      config:
        enforce: true          # false = 回到官方"纯引导"行为,只留工具与提示词节
        denyTools:             # 计划模式期间被硬拦截的模型侧工具名
          - bash               # ZCode 的 Bash(write + destructive)
          - pwsh
          - write              # ZCode 的 Write
          - edit               # ZCode 的 Edit
          - str_replace_editor # ZCode 的 ApplyPatch 对应物

覆盖方式:在你的 profile 层(~/.dsh/profiles//cordis.patch.yml)加同名 id 的 config 行,或直接改本插件 bundle 行的 config。未知配置键会在启动时报错(风格对齐官方 plan-mode 的 resolveConfig)。

放行侧(对齐 ZCode 的只读分类):read / read_image / glob / grep、web_search / web_fetch、todo_write、ask_user_question、skill、present、goal 系列、subagent、send_message / interrupt_agent,以及全部 MCP 工具(ZCode 放行非破坏性 MCP)。想要更严的部署把 subagent、subagent_fork 加进 denyTools 即可堵住"子代理代写"的口子。