@slhssb/dsh-advisor
Independent-model advisory review for DeepSeek Harness: after each tool step, a reviewer model audits the agent's operations and injects concerns/guidance into the next step.
AI Analysis
核心用途是在每个工具执行步骤后,调用一个独立的审查者模型审计 Agent 的操作,并将指导意见注入下一步。适合需要对 Agent 行为进行双重审计和安全把关的复杂任务。
Install
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:slhssb/dsh-advisorREADME
Read the full README ↗Configuration
Defaults target the DeepSeek official API (deepseek-official provider) with
the cheap deepseek-v4-flash model. The API key is not handled by this
plugin: the deepseek-official adapter resolves it per request from the
DEEPSEEK_API_KEY environment variable or the credentials store.
The defaults need no override — they already target the DeepSeek official
API (deepseek-official/deepseek-v4-flash). To point the reviewer
elsewhere, override in the profile's cordis.patch.yml (last write per row
wins). This example routes the reviewer through a third-party relay: the API
key is resolved by that provider's adapter (here the TOKENRHYTHM_API_KEY
environment variable, per its apiKeyEnv in settings.yaml) — this file
never holds keys:
- id: advisor
config:
provider: tokenrhythm
model: deepseek-v4-pro
maxTokens: 512
maxHistoryMessages: 40
interval: 1
timeoutMs: 30000
| Key | Default | Meaning |
|---|---|---|
provider | deepseek-official | Reviewer provider route (any OpenAI-compatible adapter works). |
model | deepseek-v4-flash | Reviewer model. |
maxTokens | 512 | Reviewer output cap. |
maxHistoryMessages | 40 | Most recent derived messages sent to the reviewer. |
interval | 1 | Review every N steps that contain tool results (1 = every step). |
timeoutMs | 30000 | Per-review timeout; a timeout degrades silently. |
Disable entirely with disabled: true on the row, or set an empty
provider/model to fall back to the current request route (agent/session
request header, then agent options).