JasonFreeLab/dsh-command-code-review ↗★ 2

dsh-command-code-review

/code-review slash command for DeepSeek Harness — multi-agent review of pull requests and local code, with configurable confidence scoring 通过 /code-review 自动审查代码。适合需要对本地代码或 GitHub PR 进行快速质量把控的开发者。

Package
dsh-command-code-review
Compatibility
Unverified
Harness peer range
^0.1.1-rc.2
Cordis peer range
^4.0.1
Version
0.4.0
License
MIT
Last updated
Sep 5, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JasonFreeLab/dsh-command-code-review

Usage

In the DSH web UI

  1. Start the web UI and open the printed URL: dsh web (alias of dsh --profile web).
  2. Start a new session and type /code-review in the composer. The command is registered automatically — no extra setup.
  3. For pull requests the result is posted back to the PR via gh; for local review, findings are reported directly in chat.

Examples

/code-review 123                                  # review a pull request by number
/code-review https://github.com/owner/repo/pull/123
/code-review review src/auth                      # local review of a named scope
/code-review review the whole project             # local review of the entire repository
/code-review                                      # local review of the current uncommitted changes
/code-review review src/auth --out reports        # save the report under reports/
/code-review --out docs review src/auth           # --out may come first or last

Empty input first probes the current branch's open PR, then falls back to reviewing uncommitted changes.

For local reviews, the report is also written to a Markdown document — under doc/ by default, or wherever --out (or config.outputDir) points. The filename is code-review--.md in a git repo (is the current HEAD's short sha, is derived from the review scope), and code-review-.md outside a git repo.

Configuration

  • Confidence threshold: the workflow drops findings scored below a threshold (default 80). Override it in your profile cordis.patch.yml:

    - id: command-code-review
      config:
        threshold: 90
    
  • Report output directory: where local-review reports are saved (default doc). Override per profile:

    - id: command-code-review
      config:
        outputDir: reports
    

    or per invocation with --out: /code-review --out reports review src/auth.

  • Review lenses: available lens ids are guidance, bugs, history, security, comments, and perf. The default set is guidance, bugs, history, security, comments. Choose a subset per profile:

    - id: command-code-review
      config:
        lenses: [guidance, bugs, security]
    
  • Adaptive lenses: with autoLenses: true (the default), the security lens is auto-enabled when the scope touches security-sensitive files and the performance lens when it touches hot paths — if they are not already enabled. Disable with autoLenses: false.