DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Kv Persist — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@yadsh/dsh-kv-persist

Kv Persist

DeepSeek Harness 的持久化 KV 缓存/会话状态管理器(llama.cpp 插槽快照)

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @yadsh/dsh-kv-persist@0.2.6
README兼容性版本

兼容性与来源证明

Kv Persist 以 @yadsh/dsh-kv-persist 发布,当前版本为 0.2.6。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.2.6stable
2026/9/17
0.2.5stable
2026/9/15
0.2.4stable
2026/9/13
查看其余 5 个版本收起版本
0.2.3stable
2026/9/12
0.2.2stable
2026/9/6
0.2.1stable
2026/8/31
0.2.0stable
2026/8/30
0.1.0stable
2026/8/30

相关插件

正在加载相关插件…

最新版
0.2.6
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
239.5 kB
文件数
85
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 2
周下载
314
安全扫描
✓ v0.2.6 扫描通过
最近提交
2026/9/18
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

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.

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Weknora@wxg-prc-cpg/dsh-weknora适用于 DeepSeek Harness (dsh) 的 WeKnora 知识检索工具:通过自有知识库进行语义搜索、文档阅读以及 RAG/代理回答。Memsearch Dsh@zilliz/memsearch-dsh适用于 DeepSeek Harness 的 MemSearch 插件:在多个代理之间共享 Markdown 记忆,支持捕获、步骤前上下文注入、记忆召回技能和技能候选审核面板。