Introduction¶
When performing agents or workflows on DeepSeek Harness (DSH), code reviews on Pull Requests often occur in a separate system: hosted Codex/Claude-style reviewers are good at posting inline comments and summaries, but usually cannot modify code, engage in thread conversations, or directly give APPROVE or request-changes. If you want the review to happen in the DSH Desktop sidebar on your local machine, and for blocking items to be automatically fixed, re-run checks, pushed, and re-reviewed, you need to connect the GitHub webhook with the DSH Session. dsh-github-review is a community plugin, maintained by qikairo7, categorized as a workflow, aiming to implement this set of PR review bot within DSH.
What is this¶
dsh-github-review is a GitHub PR review bot running inside DeepSeek Harness. When a PR is opened, a signed webhook starts a review Session in the Desktop sidebar within seconds: it reads the diff, posts inline comments based on P0–P3 severity levels, attempts to automatically fix blocking issues in a temporary worktree, pushes them, and re-reviews. It replies and resolves in the review thread, and finally approves or requests changes with a bot identity. The plugin is released under the MIT license; the current bundle version is 0.1.1 (see repository package.json).
The difference from hosted reviewers is summarized in a table in the README regarding capability boundaries: besides auto-trigger, inline comments, and commit status, this plugin also supports APPROVE/blocking before merge, auto-fix and push, two-way thread conversation, and an optional lessons ledger; models and skills are configured by you in DSH, not locked to the hosted side.
Core Features¶
Webhook Trigger and Deduplication¶
GitHub sends events to the host running DSH via signed webhooks (default listening at 127.0.0.1:3081/github). One delivery corresponds to at most one Session; retries for the same head are deduplicated, and a new push replaces the old review, releasing the bot’s final review slot immediately. The rule layer supports allowlist and dedupe ticket (see architecture details).
P0–P3 Severity Levels and PR Gatekeeping¶
Inline comments and summaries use [P0]–[P3] prefixes to indicate severity levels. The plugin sets dsh-review commit status and can work with ai-review:* tags. The documentation suggests setting dsh-review as a required check in branch protection and retaining at least 1 approval so the bot’s approve can satisfy the merge strategy.
Auto-fix and Re-review¶
If there are blocking findings, the bot modifies code in a temporary worktree, runs the checks configured by you, pushes to the PR branch, and reviews again. Auto-fix does not modify CI workflow files; fork PRs will skip auto-fix. The bot only writes to the PR branch, PR body, reviews, and review threads; it does not perform merges, close PRs, or approve its own PRs.
Review Threads and Round Limits¶
Unlike hosted reviewers that only post comments in one direction, this plugin can reply and resolve within the review thread; after reaching the round limit, it hands off to a human.
Lessons Ledger (Optional)¶
If AI-REVIEW-LESSONS.md exists in the target repository’s root directory, it will be read before review; each P0/P1 finding appends a line (rule, reason, evidence, Seen count). The same rule appearing three times will be elevated into the repository’s own coding standards. Repositories without this file can skip this process.
Installation and Enablement¶
Requirements¶
- DSH Desktop
0.2.2-rc.3+, containingdsh-webhookanddsh-webhook-github(this bundle declares them as dependencies) ghCLI andpwsh(PowerShell 7) available in PATH- A dedicated GitHub bot account with Write permissions to the repository, using a classic PAT (
reposcope); fine-grained tokens cannot write to repositories where the bot collaborates - HTTPS ingress to the local machine (any reverse proxy, or e.g.,
tailscale funnel 8443 --https=3081)
Node engine requirement is ^22.19.0 || >=24.0.0 (see package.json).
Credentials and Keys¶
Place the bot token on the machine running DSH:
~/.dsh/github-review/bot-token.txt # File should contain only the classic PAT
Can also point to other paths via environment variable DSH_GITHUB_REVIEW_TOKEN (file path) or the helper’s -TokenPath.
Configure the webhook secret in ~/.dsh/.credentials.yaml:
refs:
DSH_GITHUB_WEBHOOK_SECRET: <64+ random hex>
Installing the Bundle¶
The official README provides two ways; choose one.
In the directory where you have obtained the plugin source code, install the local path to a specified Desktop profile:
dsh plugin --profile <name> add .
Or download the tarball from GitHub Releases and install:
dsh plugin --profile <name> add ./dsh-github-review-<version>.tgz
After installation, you need to wire the patch layer according to cordis.patch.yml: set repository, workspacePath, allowedAuthors, and botLogin for rules. The webhook service binds to 127.0.0.1:3081.
Configuring GitHub Webhook¶
Add a webhook to the target repository:
- URL:
https://<your-ingress>/github - Content type:
application/json - Secret: Same as
DSH_GITHUB_WEBHOOK_SECRET - Events:
pull_request,pull_request_review,pull_request_review_comment
Default values and meanings of rule fields are concentrated in docs/configuration.md.
Typical Usage and Workflow¶
The overall data flow can be summarized as:
GitHub ──(signed webhook)──> your DSH host (127.0.0.1:3081/github)
└─ rule: allowlist + dedupe ticket ──> review Session in the Desktop sidebar
├─ gh-bot / review-threads / post-review helpers (bot identity)
├─ findings P0–P3, inline comments, review body
├─ blocking? ── fix in tmp worktree ── run your check ── push ── approve
└─ threads replied & resolved; round cap hands off to a human
The developer experience is: submit a PR to a repository configured with webhooks and branch protection -> keep the DSH host running -> a Session appears in the sidebar -> see inline comments with [P0]–[P3] and the bot’s review conclusion on GitHub. If the lessons file is enabled, the team can consolidate recurring P0/P1 issues into repository standards.
In a multi-repository scenario, one rule instance on a single host can specify workspace, commands, and options for each repository via the repos list in the configuration; each installation corresponds to one bot account.
Suitable Scenarios and Notes¶
Who is it for: Teams already using DSH Desktop who want a unified interface for PR reviews and local agent Sessions, and need auto-fix, thread conversation, and the optional “elevation to standards upon repeated occurrence.”
Runtime and Security: The plugin runs with the current dsh process permissions; you should read the repository source code and MIT license yourself before installing. Webhooks are verified via HMAC, and the listener is bound to loopback only; PR text, comments, and diff are considered untrusted data. Tokens are read from files or environment variables and should not appear in the command line, logs, or prompts.
Limitations (from README): The DSH host must run continuously; delivery will fail during downtime. Helper scripts are in PowerShell; POSIX hosts can run rules, but helpers cannot be used as-is. Only one rule instance per host.
DSH ecosystem follows “everything is a plugin”; the community directory site SkillHub Plugin Page and DeepSeek / HFH have no official affiliation; this article relies solely on the repository README and package.json.
Conclusion¶
dsh-github-review connects GitHub PR events to review Sessions on DSH, forming a closed loop between graded comments, status gates, auto-fix, and optional lessons. It is suitable for self-hosted workflows that want review depth to be “able to approve, modify, and converse.” For further details, see the repository Architecture Documentation and the Chinese README.zh.md.
- Community Directory: https://www.skillhub.cn/plugins/qikairo7/dsh-github-review
- GitHub: https://github.com/qikairo7/dsh-github-review