PerryLink/dsh-phocinae ↗★ 0

dsh-phocinae

提供本地非生成式决策与审批网关 适合DSH系统管理员,用于本地轻量级决策与工具调用安全控制。

包名
dsh-phocinae
兼容性
待验证
Cordis 依赖范围
^4.0.5-alpha.1
版本
0.2.2
许可证
Apache-2.0
最近更新
2026年10月8日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PerryLink/dsh-phocinae

Configuration

Defaults live in cordis.patch.yml and are documented in lib/config.mjs. Every key has a default, so the bundle patch can be reduced to enabled: true.

keydefaultmeaning
endpointhttp://127.0.0.1:8155/v1/systemonedecision service. Loopback only — the decision state carries raw tool-call text, so a remote host is a load-time error unless allowRemoteEndpoint: true.
modelPhocinae-Largha-150M-v1served model name
timeoutMs3000per request; one attempt, no retry
escalateAt0.6confidence below this marks an answer escalate: true
maxStateChars4096cap on the rendered decision state
permuteChoicefalsepermutation-average choice questions (4x forwards)
gate.enabledtruearm the pre-execute gate
gate.modeharmharm / tri-state / noul / off
gate.threshold0.8noul mode only: P(risky) that counts as a positive signal
gate.minConfidence0.45below this, an allow becomes a review
gate.autoAllowsee DEFAULT_AUTO_ALLOWcommands passed without asking the model
gate.tools['*']tool names to screen: exact, * globs, or *
gate.failModeclosedclosed = unreachable service asks a human; open = allow
gate.riskyDecisiondenynoul mode only: deny or ask on a positive finding
gate.audittruelog every verdict through the host logger

To screen nothing and only use the tools:

- id: phocinae
  config:
    gate:
      mode: off

To screen only the shell, and only ask:

- id: phocinae
  config:
    gate:
      tools: ['pwsh', 'bash']
      riskyDecision: ask