slhssb/dsh-advisor0

@slhssb/dsh-advisor

DeepSeek Harness 的独立模型顾问审查插件。

AI 分析

核心用途是在每个工具执行步骤后,调用一个独立的审查者模型审计 Agent 的操作,并将指导意见注入下一步。适合需要对 Agent 行为进行双重审计和安全把关的复杂任务。

套件
@slhssb/dsh-advisor
版本
0.1.0
授權
MIT
最近更新
2026年8月14日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:slhssb/dsh-advisor

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
KeyDefaultMeaning
providerdeepseek-officialReviewer provider route (any OpenAI-compatible adapter works).
modeldeepseek-v4-flashReviewer model.
maxTokens512Reviewer output cap.
maxHistoryMessages40Most recent derived messages sent to the reviewer.
interval1Review every N steps that contain tool results (1 = every step).
timeoutMs30000Per-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).