dsh-auto-review
Second-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent returns structured allow/deny verdicts with reasons, fail-clos
What is dsh-auto-review?
Second-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent returns structured allow/deny verdicts with reasons, fail-closed by default, fully auditable from the session log (approval/asked -> autoReview/verdict -> approval/decided).
Overview of dsh-auto-review
What it is
dsh-auto-review is a second-model AI auto-review plugin for DeepSeek Harness approval requests. It acts as a read-only reviewer subagent that returns structured allow/deny verdicts with reasons. The system is fail-closed by default and fully auditable from the session log.
Key features
- Second model on the approval/request chain, using a read-only reviewer subagent with an allow-list of tools (read, glob, grep).
- Fail-closed: reviewer crash, timeout, or schema mismatch resolves through fallbackPolicy (default rejected).
- Config-driven routing: per-tool policies (ai, human, never) plus regex risk rules, changeable from cordis.yml.
- Deny reasons reach the model: the reviewer's reason is injected into the denied tool result, with auditable markers for fallback and never-policy rejections.
- Full audit trail: log-only autoReview/verdict and autoReview/rejection session events, plus an optional invariant companion.
- Safety knobs: a rejection circuit breaker (3 consecutive denials or 6 of last 10 per turn), risk-level policy, one-shot /auto-review approve override, and a never-policy hard disable.
- Optional reviewer context: a bounded compact transcript (contextBudget) and a Codex-style Markdown ruling policy (reviewerPolicyText).
Use cases
When an action crosses the sandbox boundary, a second model reads the evidence and returns a verdict. This reduces human oversight while maintaining safety, and every decision reconstructs from the session log: approval/asked → autoReview/verdict (or autoReview/rejection) → approval/decided.
Getting started
sh dsh plugin --profile web add github:PerryLink/dsh-auto-review Or from npm: sh dsh plugin --profile web add dsh-auto-review After installation, restart and verify with: sh dsh --profile web --dump-config | grep -A4 'id: auto-review'
License and pricing
Licensed under Apache-2.0. Open source and free to use.
Based on the project's public README and repository metadata.