DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-infer-kit

t

dsh-infer-kit

Discovered

Inference toolkit for DeepSeek Harness — semantic cache, draft cascade, and JSON validation

dsh-infer-kit

Inference toolkit for DeepSeek Harness — semantic cache, draft cascade, and JSON validation.

Three model-agnostic tools (work with any provider DSH routes to):

ToolWhat it does
infer_cache_lookupSemantic cache for answers and tool results. Jaccard similarity ≥ 0.62 triggers a hit. Retention: agent = 3 days, chatbot = 7 days.
infer_draft_cascadeCheap-draft → expensive-verify cascade (client-side analog of speculative decoding). Any OpenAI-compatible endpoint works.
infer_json_validateValidate JSON against JSON Schema before presenting structured output. Supports type, properties, required, additionalProperties, items, enum, min/max, minLength/maxLength.

Built on ideas from DeepInfer (DeepSeek's open-source inference engine, Apache 2.0, October 2026).

Install

dsh plugin --profile web add dsh-infer-kit

Then restart dsh web (or the desktop app). The plugin activates on next start.

For manual / source install:

dsh plugin --profile web add github:YOUR_USERNAME/dsh-infer-kit

Quick start

After installing and restarting, three tools become available to any model:

Semantic cache

{
  "mode": "lookup",
  "key_text": "What is the capital of France?",
  "kind": "chatbot"
}
{
  "mode": "store",
  "key_text": "What is the capital of France?",
  "value": "Paris is the capital of France.",
  "kind": "chatbot",
  "tags": ["geography", "quick-facts"]
}

Draft cascade

{
  "task": "List all files in the project root",
  "context": "TypeScript monorepo with packages/api, packages/web, packages/shared",
  "accept": true
}

Returns a draft (typically 100–600 tokens) from the configured cheap model; you verify and finalize. If the draft endpoint is unavailable, falls back to full-quality self-completion — no errors raised.

Configure the draft endpoint in your profile's cordis.patch.yml:

config:
  draftEndpoint: 'https://inference.dahl.global/v1/chat/completions'
  draftModel: 'deepseek-ai/DeepSeek-V4-Flash-0731'
  draftTimeoutMs: 90000

The API key is read from the DAHO_API_KEY credential (set it in Settings → Models like any other provider key). It resolves fresh on every draft call — rotating keys are picked up automatically.

JSON validation

{
  "json": "{\"id\": 42, \"name\": \"Alice\"}",
  "schema": {
    "type": "object",
    "required": ["id", "name"],
    "properties": {
      "id": { "type": "integer" },
      "name": { "type": "string", "minLength": 1 }
    }
  }
}

Returns ok: true or a list of concrete errors to fix before presenting the output.

Configuration

All config lives in cordis.patch.yml under config::

KeyDefaultDescription
storePathstore.json next to index.jsPath to the persistent cache file
maxEntries512Max cache entries; oldest are evicted on overflow
similarityThreshold0.62Jaccard threshold for cache hits (0–1)
ttlAgentDays3TTL for kind=agent entries (days)
ttlChatDays7TTL for kind=chatbot entries (days)
draftEndpointnullOpenAI-compatible draft endpoint URL
draftModelnullModel name passed to draft endpoint
draftMaxTokens600max_tokens for draft calls
draftTimeoutMs25000Timeout per draft call (ms)

Architecture

DSH process (host half)              Web GUI (client half)
─────────────────────────            ─────────────────────
index.js                             client.js
├── inject: ['credentials']          ├── inject: ['slots']
├── inject: ['tools']                └── registers ⚡ InferKit
├── inject: ['webServer']                button in sidebar footer
│   └── GET /infer-kit/status
└── ctx.effect() cleanup
  • Host half (index.js): Node.js built-ins only (node:fs, node:path, node:crypto, fetch). No @deepseek-ai/* imports — verified contract.
  • Client half (client.js): React status button, no build step required.
  • The store is shared between web and desktop profiles (same storePath).

Live test results

Draft cascade tested against inference.dahl.global with deepseek-ai/DeepSeek-V4-Flash-0731:

RunDraft lengthLatencyNotes
194 tokens2139 msFirst call
2157 tokens4627 msSurvived a 429 retry
3146 tokens1369 msWith credentials resolver

Requirements

  • DSH >= 0.2.0-rc.2
  • Node.js built-in fetch (available in DSH's Node runtime)
  • No external runtime dependencies

Permissions

  • Reads/writes a JSON store file (path configurable, default next to the plugin)
  • Makes HTTP calls to the configured draft endpoint only
  • No telemetry, no external services beyond the optional draft endpoint

License

MIT

Comments

Loading…

Similar plugins

dsh-attestation-proof

by dongsheng123132

Offline content-addressed DSSE/in-toto attestation proof for DeepSeek Harness

Tools & CapabilitiesDevelopment & InfrastructureModels & ProvidersManifest valid

★ 0

MIT

JavaScript

Sep 7, 2026

dsh plugin --profile web add dsh-attestation-proof

by xuxucodepractice-code

A deterministic pre-write claim guard for supported DeepSeek Harness file tools.

Security & AuditManifest valid

★ 0

MIT

JavaScript

Sep 3, 2026

dsh plugin --profile web add dsh-claim-guard

by cyanseek

Deterministic fault injection and autonomous resilience tests for DeepSeek Harness tools

Security & AuditManifest valid

★ 4

MIT

JavaScript

Sep 28, 2026

dsh plugin --profile web add dsh-tool-chaos

by ax2

Deterministic, offline, bounded tools for DeepSeek Harness: 29 JSON/YAML/CSV, text, encoding and inspection tools, each returning a byte receipt.

Manifest valid

★ 0

MIT

TypeScript

Oct 13, 2026

dsh plugin --profile web add dsh-deterministic-tools

by LSAI2023

dsh-ide-context — DeepSeek Harness bundle: inject your IDE's open files and current selection into each turn (IntelliJ IDEA & VS Code).

Manifest valid

★ 0

MIT

TypeScript

Aug 16, 2026

dsh plugin --profile web add @deepseek-ai/dsh-ide-context

by itzsu123

给 DeepSeek Harness 加个插件:把信息整理成 Inline 能接入的文章

Manifest valid

★ 0

MIT

JavaScript

Oct 20, 2026

dsh plugin --profile web add dsh-inline-plugin