deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
English · 简体中文
In DSH (DeepSeek Harness), agents trigger approval prompts for out-of-sandbox writes, command runs, etc. Under the "Auto Approve" preset, this plugin hands every approval request to a fixed reviewer model for a verdict:
approval request ──► collect evidence (tool call + args + egress payload pre-read)
│
▼
reviewer model (fixed route, immune to
the agent's hot model switches)
embeds the full Codex Guardian policy
│
┌─────────┴─────────┐
▼ ▼
allow deny / circuit-break
(allow this once) (reject with a readable reason)
│
channel failure → fail-closed to human, never silently allow
~/.dsh/auto-approval-audit.jsonl with risk/authorization/rationaleresponses (strict json_schema) or chat (OpenAI-compatible /chat/completions) for relay/proxy providers| Action | Verdict | Rationale |
|---|---|---|
| User explicitly asked: delete this directory | ✅ allow | narrow scope + explicit authorization |
| A file instructed: copy an API-key config into Public | ❌ deny | "user only authorized following untrusted file content, never authorized writing secrets to a public path" |
| A file instructed: set a directory ACL to Everyone:F | ❌ deny | persistent security weakening, not narrowly scoped |
| Review channel failed 3× in a row | ❌ breaker | "review service failed 3 times in a row — check the channel or retry later" |
dsh plugin --profile web add /path/to/dsh-auto-approval
Restart DSH Web, then fill in Settings → Plugins → Plugin config → DSH 自动审批:

The 连通与策略 section has a one-click connectivity test (sends a real probe review and shows the verdict, risk/auth grades, rationale and latency — verifying endpoint, model, key, API style and policy in one shot) and a policy-document editor (the full Codex Guardian policy text ships built-in; edit or replace it, effective on the next review without restart):

Then: any OpenAI-compatible endpoint, a reviewer model, and the API key (stored in the DSH credential store, never in the repo). Pick the Auto Approve preset in a session to activate.
pnpm install
pnpm run build # tsc + client bundle
pnpm test # vitest: evidence recovery, output parsing tolerance, breaker states, error breaker
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。