Dinosaur-MC/dsh-decision-tools ↗★ 0

dsh-decision-tools

本地决策模型分类、判断与打分工具 适合需要利用本地模型进行批量分类、判断和打分任务的用户。

套件
dsh-decision-tools
相容性
待驗證
Harness 依賴範圍
>=0.2.0-rc.2
Cordis 依賴範圍
>=4.0.1
版本
0.4.0
授權
MIT
最近更新
2026年10月19日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Dinosaur-MC/dsh-decision-tools

Configuration

The plugin is four rows: a core row, a decision row, a monitor row and a skill row. Each row has its own switch in the Plugins page; the core/decision/monitor rows also have their own Configure page. GUI-editable fields are declared .volatile() and apply to the next call without reloading the row. toolName / monitorToolName / ladder / spillDirCap are registration-time or advanced YAML fields: edit them in cordis.patch.yml and reload that row.

Core row — decision-tools-plugin (shared model & runtime)

KeyDefaultMeaning
baseUrlhttp://localhost:11434Ollama endpoint; path prefixes are preserved; GUI-editable.
defaultModeltev1:0.8bModel used when a tool row has no modelOverride; GUI-editable.
timeoutMs120000Per-request budget, including cold model load; GUI-editable.
keepAliveunsetPassed as keep_alive; unset uses the server default; GUI-editable.
apiKeyunsetOptional Bearer token for remote / System One-compatible endpoints; GUI-editable.
modelsPath/api/tagsModel discovery path; use /v1/models for OpenAI-compatible endpoints; GUI-editable.
systemOnePathv1/systemoneJudgement endpoint path relative to baseUrl; GUI-editable.
modelOrderunsetComma-separated model priority; model@numCtx sets context; unknown models use 8192; GUI-editable.
escalationEnabledtrueAllow automatic escalation on context overflow; GUI-editable.
ladderunset (DEFAULT_LADDER)Ordered {model,numCtx}[]; YAML only; reload the core row after editing.
toolNamedecisionModel-visible decision tool name; reload the decision row after editing.
monitorToolNamemonitorModel-visible monitor tool name; reload the monitor row and the decision row after editing (both snapshot the name).
spillDirCapunset (16 MiB)Byte cap for the plugin's spill directory; YAML only.

decision row — decision-tools-decision

KeyDefaultMeaning
modelOverrideunset (core default)Blank uses the core defaultModel; GUI-editable.
defaultDepthnormalquick / normal / deep; used when the call omits depth; GUI-editable.
bodyWarningtruefalse suppresses size/text-shape notes; GUI-editable.
softBodyBytesunset (4096)Body size above which notes[] carries a size note; 0 warns every call; GUI-editable.
minConfidenceunset (0.25)choice/score confidence below this (or missing) is named in notes[]; 0 disables; GUI-editable.
maxChoiceOptionsunset (255)Upper bound on choice options; GUI-editable.
escalationMaxAttempts3Extra escalation attempts after the first call; deep adds 2; blank = 3; GUI-editable.
scanFirstChunkBytesunset (4096)First scan chunk byte budget; GUI-editable.
scanMaxChunksunset (32)Maximum chunks per scan; GUI-editable.
scanMaxTotalBytesunset (4 MiB)Cumulative byte cap per scan; GUI-editable.
scanDeadlineMsunset (180000)Wall-clock budget per scan; GUI-editable.
scanAggregatenonenone / any; any adds a provisional cross-chunk max probability; GUI-editable.

monitor row — decision-tools-monitor

KeyDefaultMeaning
modelOverrideunset (core default)Blank uses the core defaultModel; GUI-editable.
minProbeIntervalMsunset (1000)Lower bound for the monitor probe interval; GUI-editable.
notifyCoalesceWindowMsunset (5000)Same-kind notice coalescing window; 0 disables coalescing; GUI-editable.
maxNotificationsPerMinuteunset (6)Per-minute notice cap; GUI-editable.

Override an existing row with a bare id and no insert; fields go under config. config is replaced wholesale, never deep-merged, so restate every field the row needs.

- id: decision-tools-plugin
  config:
    baseUrl: 'http://localhost:11434'
    defaultModel: 'tev1:0.8b'
    timeoutMs: 180000
    keepAlive: '30m'
- id: decision-tools-decision
  config:
    modelOverride: 'tev1:0.8b'
    defaultDepth: normal
- id: decision-tools-monitor
  config:
    modelOverride: 'nimble:latest'

The three Config schemas live in lib/configs.js.