xarleyn/dsh-plugins--plugins-dsh-kv-persist ↗★ 1

@yadsh/dsh-kv-persist

为 llama.cpp 会话提供 KV 缓存持久化与插槽快照恢复能力 适合长时会话与上下文复用场景,需配置后端地址和 provider 列表

包名
@yadsh/dsh-kv-persist
兼容性
待验证
Harness 依赖范围
catalog:dsh
Cordis 依赖范围
catalog:dsh
版本
0.2.2
许可证
MIT
最近更新
2026年9月13日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xarleyn/dsh-plugins#fd3cdd95651ec4eafe52d510751ba3aba3c9248d&path: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.
restore.enabledbooleantrueRestore compatible snapshots lazily.
restore.verifybooleantrueReject restores reporting n_restored /cache/dsh-kv-persist
logging.level"debug" | "info" | "off""info"Structured kv.* event verbosity.

Full configuration rationale: design doc §35.