sky-unicorn/dsh-sub-agent2

dsh-sub-agent-toggle

Web settings switches for the Claude Code and Codex subagent tools in DeepSeek Harness

包名
dsh-sub-agent-toggle
版本
0.1.0
最近更新
2026年8月18日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sky-unicorn/dsh-sub-agent

手动配置

仅在不使用本包的 dsh.bundle.patch,或需要自定义 Consumer 作用域时手动组合。与 bundle 默认行为等价的宿主 cordis.yml 配置为:

- id: subagent-codex
  name: '@deepseek-ai/dsh-subagent-codex'

- id: subagent-claude-code
  name: '@deepseek-ai/dsh-subagent-claude-code'

- id: subagent-product-toggles
  name: dsh-sub-agent-toggle/host
  config:
    claudeCode: false
    codex: false

- id: subagent-product-toggle-tools
  name: dsh-sub-agent-toggle/preset

- id: ui-subagent-product-toggles
  name: dsh-sub-agent-toggle

上面的 subagent-product-toggle-tools 位于宿主根层,负责全局注册工具。若只想让指定预设获得这两个工具,应从宿主根层删除或禁用这一行,再在需要受控的每份 agent.cordis.yml 中加入:

- id: subagent-product-toggle-tools
  name: dsh-sub-agent-toggle/preset

全局 Consumer 与预设内 Consumer 不要同时加载。两种布局使用同一个 subagent-products namespace,所以按预设挂载只控制工具出现在哪些预设中,不会为每个预设创建独立开关。同时删除或保持禁用同一作用域内原来的 tool-subagent-codextool-subagent-claude-code 行,避免重复注册同名工具。