Violet-Evergarden-Xiya/deepseek-AutoReview0

deepseek-autoreview

「替我审核」(auto-review) permission preset for DeepSeek Harness: a fourth permission mode beside read-only / workspace-write / danger-full-access. Escalation asks run through a three-tier funnel — deterministic whitelist (zero-token fast approval), deterministic blocklist (zero-token interception), and an independent reviewer model for the gray zone. Safe operations auto-approve, unsafe or uncertain ones fall through to the human approval prompt, and the reviewer model is user-switchable in General settings at runtime. Fail-closed by construction.

包名
deepseek-autoreview
版本
1.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Violet-Evergarden-Xiya/deepseek-AutoReview

Usage

Switch a session to「替我审核」:

  • workspace edits run silently;
  • escalations pass the funnel: structurally verifiable commands (npm/pnpm/pip install, git clone/pull/fetch, no shell metacharacters) fast-approve with zero tokens; catastrophic shapes and sensitive paths (rm -rf /, curl | sh, writes to /etc …) intercept with zero tokens; the gray zone is judged by the reviewer model;
  • auto-approvals are rate-limited (5/min, 30/hour by default) — over-budget asks delegate to the human.

Configuration (profile cordis.patch.yml)

- id: permission-review
  name: deepseek-autoreview
  config:
    provider: deepseek-official   # optional deployment-level fallback route (paired with model)
    model: deepseek-v4-flash
FieldDefaultMeaning
presets['review']Preset table keys that activate the reviewer.
provider / modelunsetComposition-level fallback route, supplied together.
maxInputBytes1024Byte budget for the current-turn user context.
maxOutputTokens256Judgment response token cap.
timeoutMs10000End-to-end judgment deadline; timeout delegates.
maxConcurrent4In-flight judgment cap; over-capacity asks delegate.
whitelisttrueZero-token fast approval for structurally verifiable commands.
whitelistVerbs[npm,pnpm,yarn,pip,pip3,poetry,cargo,git]Whitelisted command verbs.
preflighttrueDeterministic blocklist interception.
blocklist26 built-in rules{id, pattern, tools?} string-pattern rules.
staticDenyfalseBlocklist hits reject (deny) instead of delegating.
denytrueAllow the model to decide deny.
maxAutoPerMinute / maxAutoPerHour5 / 30Auto-approval budget; overflow delegates.
retryTransienttrueRetry transient failures once (rate limits/network); timeouts and invalid outputs never retry.
reasoningEffortoffJudgment reasoning effort (off skips reasoning; degrades automatically when unsupported).
rubricbuilt-inFull replacement for the reviewer system prompt.