DSH Plugins Marketplace

DSH Plugins

Plugins

/

Models & Providers

/

dsh-plugin-ollama-bridge

d

dsh-plugin-ollama-bridge

Identified

Local Ollama worker tools for DeepSeek Harness: model inventory, a single unverified ask, and a batch runner that chunks long text, checks every item deterministically, returns a small verbatim sample

dsh-plugin-ollama-bridge

English | 简体中文

Hand the bulk low-difficulty long-text work to the Ollama models on this machine, and keep the leading model on scheduling and review.

A DeepSeek Harness plugin that registers four tools covering the whole loop: see what is installed → try one call → run a batch over long text → fill metadata gaps over the web when needed. Long source text never enters the conversation: only counts, failure distribution and a review sample come back, so the saving is on main-model tokens.

Tools

ToolWhat it does
ollama_modelsLists installed models with parameter count, quantization, context length, capabilities, and roles hints (code / reasoning / vision / embedding / long-context …)
ollama_askOne question, unverified answer — for probes or a few high-value judgements
ollama_batchChunking + concurrency + retries + a deterministic check on every item + review sample + optional result file
ollama_lookupWeb lookup of model capability, after the user approves the exact queries

Recommended flow: look before you choose

  1. Call ollama_models for the inventory and metadata hints.
  2. Summarise what each model is good for. roles are metadata hints, not measured quality.
  3. When metadata is not enough (benchmarks, known weaknesses), call ollama_lookup — it hands the exact queries to the user for approval, and returns approved: false without searching when they decline.
  4. Run ollama_batch with the chosen tag. An unknown tag fails immediately and names the installed models.

ollama_batch returns only: item count, passed/failed, failure-reason counts, at most 20 failure snippets, and a verbatim review sample (2% of the items by default, at least one and at most eight). The source text stays inside the plugin process.

Install

From GitHub (recommended, updatable)

In DSH, open Plugins → + Add plugin and enter:

github:wth373737/dsh-plugin-ollama-bridge

From a local directory

pnpm add file:/path/to/dsh-plugin-ollama-bridge

Restart DSH after installing. The plugin appears under Plugins → Installed plugins as “本地 Ollama 桥”.

Configuration

The config block of cordis.patch.yml:

baseURL: http://127.0.0.1:11434
model: qwen2.5:7b
numCtx: 8192
concurrency: 2
timeoutMs: 180000
  • numCtx: context available per chunk, and the main driver of memory use.
  • concurrency: parallel requests. 1–2 is sensible on one machine; lower it for larger models.
  • If Ollama keeps its models outside the default directory, set OLLAMA_MODELS to the model root.

How far to trust the output

Every item carries one of three states, in the written file and in the returned sample:

LabelMeaning
okPassed every deterministic check, but not read one by one
*抽样待复核*Sampled and returned; the leading model read it
!!校验失败(原因)Malformed: empty, too long, not JSON, outside the allowed choices, missing a required substring, regex miss, or refusing

Deterministic checks verify form, never meaning. Report “all items are well-formed” separately from “the content is correct”, and raise sample_rate for small batches.

Boundaries

  • Reads: any absolute path the host process can read.
  • Writes: only inside the session workspace. A path outside it is refused with the workspace root in the message; an unresolvable workspace refuses the write rather than guessing.
  • Network: only the configured baseURL; ollama_lookup reaches the host's configured search provider only after the user approves.
  • Approval: with no answerer available, ollama_lookup refuses to look up instead of silently skipping approval.

Development

npm test     # offline smoke test: stubs fetch/web/userQuestions and checks
             # verification, sampling, labels, write confinement, approval gate

No Ollama needed, and nothing is written outside the workspace.

License

MIT © 2026 wth373737

Comments

Loading…

Similar plugins

dsh-local-ai

by PerryLink

Local-model (Ollama) integration for DeepSeek Harness: discover, pull, remove, and inspect local models, route requests to them by task type or keyword with automatic fallback to the cloud, and get a

Models & ProvidersManifest valid

★ 24

↓ 1k/wk

Apache-2.0

TypeScript

Nov 4, 2026

dsh plugin --profile agent add dsh-local-ai

by Movingelated

DSH (DeepSeek Harness) plugin: delegate read-only collection tasks to a local Ollama model — zero cloud token cost, zero API key. 把只读采集任务交给本机 Ollama 模型:含设置面板 + 选型尺 + AI 可读说明书。

Models & ProvidersManifest valid

★ 3

MIT

JavaScript

Oct 1, 2026

dsh plugin --profile web add @local/dsh-localmodels-tokensavior

Local tool guard that scores every DeepSeek Harness tool call with an Ollama decision model before it runs; risky calls come back as an approval prompt, and an unreachable model stops all calls. Requi

Security & AuditManifest valid

★ 0

dsh plugin --profile web add dsh-ollama-tool-guard

by Asheblog

Ollama Cloud provider for DeepSeek Harness: one-click provider setup with per-model reasoning-effort control and account usage in the Models page and sidebar.

Terminal & ClientsModels & ProvidersManifest valid

★ 4

MIT

TypeScript

Nov 3, 2026

dsh plugin --profile web add dsh-ollama-cloud

DeepSeek Harness plugin that manages local inference engines (llama.cpp, NInfer, Hyper-Qwen, Strata): configure, size, launch, and publish a local engine as a DSH model. Installable bundle that mounts the localInfer service, engine providers, model-facing tools, and the Web UI as one profile layer.

Terminal & ClientsModels & ProvidersManifest valid

★ 1

MIT

TypeScript

dsh plugin --profile web add dsh-plugin-local-infer

DeepSeek Harness plugin: on task send, pick a different model for subagents and an independent reviewer that validates each subagent's work before it reaches the main agent

Terminal & ClientsModels & ProvidersManifest valid

★ 0

MIT

TypeScript

dsh plugin --profile web add dsh-orquestrator