luomeii/dsh-review-squad0

dsh-review-squad

并行多角色代码评审小队:/review 一条命令派出安全/正确性/测试/风格四名只读评审员子代理(每人可单独指定模型与思考强度),汇总为按严重度分组的结构化报告。Parallel multi-role code review squad: /review dispatches security/correctness/tests/style reviewer subagents (each on its own model) and aggregates one severity-grouped report.

包名
dsh-review-squad
版本
0.1.1
许可证
MIT
最近更新
2026年8月30日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:luomeii/dsh-review-squad

Configuration

Override the review-squad row from a later patch layer (~/.dsh/profiles/ /cordis.patch.yml or a --patch overlay). Patch rows replace whole configs — restate everything you keep.

fielddefaultmeaning
providerspawnctx.subagents provider used for reviewers
commandNamereviewslash command name
toolNamecode_reviewtool name
toolFilterDeny['str_replace_editor','write','edit','subagent','subagent_fork','workflow','ralph','send_message','web_search']tools reviewers lose — includes every delegation tool (they must not spawn anything) and web search (cost); unknown names are healed automatically
timeoutMs600000per-reviewer wall-clock budget
maxConcurrent2reviewers run in batches of this many (gentler on API limits)
maxReportChars24000report hard cap
languageendescriptive text language (severity/file/line markers stay English so parsing works)
reviewersbuilt-in fourthe squad (see below)

Custom squad — the "strong brain, cheap hands" pattern

- id: review-squad
  name: dsh-review-squad
  config:
    language: zh
    reviewers:
      - key: security
        role: Security reviewer
        instructions: Hunt for injection, authz gaps, committed secrets, unsafe crypto.
        agentOptions:
          provider: deepseek-official
          model: deepseek-v4-pro
          reasoningEffort: max
      - key: style
        role: Style reviewer
        instructions: Naming, duplication, complexity, conventions.
        agentOptions:
          provider: my-cheap-gateway
          model: glm-4.6-flash

agentOptions needs a provider that supports the agentOptions subagent capability (the built-in spawn provider does).

Settings page (Web UI)

The plugin ships its own "Review Squad" section in the dsh web Settings page: edit each reviewer's model route (provider / model / reasoning effort / max tokens), report language, timeout, report budget, and the tool deny list. Saving goes through dsh's settings.update channel into the review-squad: section of settings.yaml and applies live (no restart).

Runtime overrides — settings.yaml (hot-reloaded)

Every field except the structural ones (commandName/toolName) can also be changed without restarting dsh via the review-squad: section of $DSH_HOME/settings.yaml (~/.dsh/settings.yaml). Values there override the bundle config at every invocation: