DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Kv Persist — DSH Plugin for DeepSeek Harness
← Plugins

@yadsh/dsh-kv-persist

Kv Persist

Persistent KV-cache/session-state manager for DeepSeek Harness (llama.cpp slot snapshots)

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add @yadsh/dsh-kv-persist@0.2.6
READMECompatibilityVersions

Compatibility and provenance

Kv Persist is published as @yadsh/dsh-kv-persist and currently resolves to version 0.2.6. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
9/20/2026

Versions

0.2.6stable
9/17/2026
0.2.5stable
9/15/2026
0.2.4stable
9/13/2026
Show 5 more versionsCollapse versions
0.2.3stable
9/12/2026
0.2.2stable
9/6/2026
0.2.1stable
8/31/2026
0.2.0stable
8/30/2026
0.1.0stable
8/30/2026

Related plugins

Loading related plugins…

Latest
0.2.6
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
239.5 kB
Files
85
Surface
any
License
MIT
Source
npm
GitHub
★ 2
Weekly downloads
314
Security scan
✓ v0.2.6 scan passed
Last push
9/18/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in memory-context.

Memory Plugin@openviking/dsh-memory-pluginOpenViking memory and context bundle for DeepSeek HarnessContextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Weknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.

README

@yadsh/dsh-kv-persist

dsh-kv-persist keeps local LLM sessions warm across session switches and restarts.

It maps DeepSeek Harness sessions to persistent inference-cache snapshots and restores them when a session becomes active again. The initial backend uses llama.cpp's slot save/restore API, allowing large agent contexts to resume without repeating a full prompt prefill.

KV state is treated strictly as an optimization: DSH's session log remains the source of truth, and any missing, stale, or incompatible cache automatically falls back to normal inference. The model never knows this plugin exists.

Features

  • Maps DSH sessions (sessionId + provider + model) to llama.cpp slot snapshots via GET /slots and POST /slots/{id}?action=save|restore|erase.
  • Lazy restore: nothing is loaded until the session's first managed request; resident sessions run with zero disk I/O and zero management calls.
  • Save-before-switch, idle checkpoints, and shutdown/flush checkpoints, with dirty generations and save coalescing instead of a naive boolean.
  • Runtime compatibility gate: snapshots restored only when the server instance, provider, model, and runtimeKey generation match; the rest are marked invalid and skipped, never deleted.
  • Cold fallback everywhere: persistence failures degrade to ordinary inference; optional strict mode is the only failure path.
  • Circuit breaker stops a broken backend from costing latency on every request.
  • Auxiliary requests (session titles, compaction) are coordinated so they never pollute or hijack a session's slot ownership.
  • Structured kv.* logging, in-memory metrics, status() and doctor() diagnostics on the service.

Requirements

  • DeepSeek Harness >= 0.1.5-rc.2 < 0.2.0
  • A llama.cpp llama-server started with --slots --slot-save-path <dir> and --parallel 1 for the single-slot mode (see the design doc §6). The server flag does not replace the plugin's local lease, which also serializes save, restore, erase, and terminal stream bookkeeping.
  • Node.js >= 22

Installation

Install the published npm package by name:

dsh plugin --profile <profile> add @yadsh/dsh-kv-persist

From sources, build the package and link the checkout:

pnpm nx run @yadsh/dsh-kv-persist:build
dsh plugin --profile <profile> add ./plugins/dsh-kv-persist

Configuration

Configure the plugin under the kv-persist key in the DSH profile. Only providers listed under providers are ever coordinated.

OptionTypeDefaultDescription
enabledbooleantrueMaster switch; false passes everything through.
backend.baseURLstringhttp://127.0.0.1:8080llama-server management endpoint.
backend.apiKeystring""Bearer key for the management API; never logged.
backend.requestTimeoutMsnumber15000Bounded timeout per persistence call.
providersstring[][]Managed provider routes; empty = plugin inert.
mode"single-slot""single-slot"v0.1 supports single-slot only.
slotIdnumber0Physical slot used in single-slot mode.
runtimeKeystring""Runtime identity escape hatch; changing it hides old snapshots (they are kept, not deleted).
checkpoint.onSwitchbooleantrueSave a dirty slot before reassignment.
checkpoint.onShutdownbooleantrueFinal checkpoint on plugin disposal.
checkpoint.onSessionFlushbooleantrueCheckpoint on the session flush event.
checkpoint.idleMsnumber30000Idle checkpoint delay; 0 disables.
checkpoint.onTurnEndbooleanfalseCheckpoint after every user turn.
checkpoint.onStepEndbooleanfalseReserved for per-step checkpoints.

Full configuration rationale: design doc §35.

Compatibility

  • DeepSeek Harness >=0.1.5-rc.2 <0.2.0 (see compatibility.json)
  • Node.js >= 22
  • llama.cpp server with the slots management API enabled

Development

pnpm nx run @yadsh/dsh-kv-persist:lint
pnpm nx run @yadsh/dsh-kv-persist:typecheck
pnpm nx run @yadsh/dsh-kv-persist:test
pnpm nx run @yadsh/dsh-kv-persist:build
pnpm nx run @yadsh/dsh-kv-persist:verify

Optional end-to-end check against a live server (no GPU in CI):

DSH_KV_TEST_LLAMA_URL=http://127.0.0.1:8080 pnpm --filter @yadsh/dsh-kv-persist test:llama

See SPEC.md for the product contract and implementation status.

License

MIT

restore.enabled
boolean
true
Restore compatible snapshots lazily.
restore.verifybooleantrueReject restores reporting n_restored <= 0.
failure.strictbooleanfalseTurn restore failures into request failures.
failure.maxConsecutiveFailuresnumber3Failures before the circuit opens.
failure.cooldownMsnumber60000Circuit open duration.
metadata.pathstring<DSH home>/cache/dsh-kv-persistManifest storage directory. DSH home is non-blank $DSH_HOME, otherwise ~/.dsh.
logging.level"debug" | "info" | "off""info"Structured kv.* event verbosity.