Dinosaur-MC/dsh-decision-tools ↗★ 0
dsh-decision-tools
本地决策模型分类、判断与打分工具 适合需要利用本地模型进行批量分类、判断和打分任务的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Dinosaur-MC/dsh-decision-tools說明文件
閱讀完整 README ↗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)
| Key | Default | Meaning |
|---|---|---|
baseUrl | http://localhost:11434 | Ollama endpoint; path prefixes are preserved; GUI-editable. |
defaultModel | tev1:0.8b | Model used when a tool row has no modelOverride; GUI-editable. |
timeoutMs | 120000 | Per-request budget, including cold model load; GUI-editable. |
keepAlive | unset | Passed as keep_alive; unset uses the server default; GUI-editable. |
apiKey | unset | Optional Bearer token for remote / System One-compatible endpoints; GUI-editable. |
modelsPath | /api/tags | Model discovery path; use /v1/models for OpenAI-compatible endpoints; GUI-editable. |
systemOnePath | v1/systemone | Judgement endpoint path relative to baseUrl; GUI-editable. |
modelOrder | unset | Comma-separated model priority; model@numCtx sets context; unknown models use 8192; GUI-editable. |
escalationEnabled | true | Allow automatic escalation on context overflow; GUI-editable. |
ladder | unset (DEFAULT_LADDER) | Ordered {model,numCtx}[]; YAML only; reload the core row after editing. |
toolName | decision | Model-visible decision tool name; reload the decision row after editing. |
monitorToolName | monitor | Model-visible monitor tool name; reload the monitor row and the decision row after editing (both snapshot the name). |
spillDirCap | unset (16 MiB) | Byte cap for the plugin's spill directory; YAML only. |
decision row — decision-tools-decision
| Key | Default | Meaning |
|---|---|---|
modelOverride | unset (core default) | Blank uses the core defaultModel; GUI-editable. |
defaultDepth | normal | quick / normal / deep; used when the call omits depth; GUI-editable. |
bodyWarning | true | false suppresses size/text-shape notes; GUI-editable. |
softBodyBytes | unset (4096) | Body size above which notes[] carries a size note; 0 warns every call; GUI-editable. |
minConfidence | unset (0.25) | choice/score confidence below this (or missing) is named in notes[]; 0 disables; GUI-editable. |
maxChoiceOptions | unset (255) | Upper bound on choice options; GUI-editable. |
escalationMaxAttempts | 3 | Extra escalation attempts after the first call; deep adds 2; blank = 3; GUI-editable. |
scanFirstChunkBytes | unset (4096) | First scan chunk byte budget; GUI-editable. |
scanMaxChunks | unset (32) | Maximum chunks per scan; GUI-editable. |
scanMaxTotalBytes | unset (4 MiB) | Cumulative byte cap per scan; GUI-editable. |
scanDeadlineMs | unset (180000) | Wall-clock budget per scan; GUI-editable. |
scanAggregate | none | none / any; any adds a provisional cross-chunk max probability; GUI-editable. |
monitor row — decision-tools-monitor
| Key | Default | Meaning |
|---|---|---|
modelOverride | unset (core default) | Blank uses the core defaultModel; GUI-editable. |
minProbeIntervalMs | unset (1000) | Lower bound for the monitor probe interval; GUI-editable. |
notifyCoalesceWindowMs | unset (5000) | Same-kind notice coalescing window; 0 disables coalescing; GUI-editable. |
maxNotificationsPerMinute | unset (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.