linbin-mk/dsh-session-sync--packages-session-sync ↗★ 0

@linbin-mk/dsh-session-sync

Git-backed session sync plugin for DeepSeek Harness: keeps sessions of mapped projects in sync across machines through one git repository, served to the web settings page through its own same-origin HTTP API 适合需要在多设备间无缝同步DSH会话和工作区状态的用户。

Package
@linbin-mk/dsh-session-sync
Compatibility
Unverified
Harness peer range
^0.1.7-alpha.1
Cordis peer range
^4.0.3
Version
0.2.1
License
MIT
Last updated
Sep 22, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:linbin-mk/dsh-session-sync#3c3966569ebe42efb306092d0a687f0a0c3b5d05&path:packages/session-sync

组合配置

- id: session-sync
  name: '@linbin-mk/dsh-session-sync'
  config:
    startupSyncDelayMs: 3000

config 里的 startupSyncDelayMs 是部署项;enabled、remote、branch、intervalMinutes、mappings、cleanup 是设置页可写的活字段,写入由 harness 的 settings 服务落到 profile patch 文档。要求 settings 与 sessionPersistence 服务;workspaceRegistry 可选(存在时导入的会话会挂到工作区,仓库里每个项目的 archived.json 标记也会应用到本机归档集合,让其他电脑上归档的会话在本机同样隐藏)。webServer 同样可选——没有它时插件以 headless 运行,只是不提供 Web 路由。切换提醒监听 harness 的 agent/pre-step 事件(dsh-agent/dsh-llm 依赖):没有 agent 服务的部署只是永远不会触发注入。

配置项

session-sync 这一行 profile 条目的 Cordis Config:startupSyncDelayMs(部署项,默认 3000)与用户可改的 enabled、remote(SSH 地址)、branch(默认 main)、intervalMinutes(默认 5)、mappings: [{ key, path }]、cleanup。设置页通过 harness 的 config form 读写这些字段(ctx.configForms.get('session-sync')),写入持久化在 profile patch 文档里。完整表格见仓库 README。