PerryLink/dsh-session-sync4

dsh-session-sync

Cross-device sync for DeepSeek Harness sessions: a dedicated git mirror of the session store, append-only three-way merge with keep-both + fork conflict resolution, /sync command, sync_pull/sync_push/sync_status tools, and configurable auto push/pull

包名
dsh-session-sync
版本
0.2.14
许可证
Apache-2.0
最近更新
2026年9月12日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PerryLink/dsh-session-sync

Configuration

All tunables are Schemastery Config fields (changeable from cordis.yml). An id-targeted override replaces the whole row — restate every key you need. cordis.patch.yml documents each key inline.

KeyDefaultMeaning
enabledtrueMaster switch; false unregisters the command, tools, listeners, and auto modes
backendgitSync backend: git (plaintext mirror) or encrypted (age-encrypted mirror content)
sessionRoot''Session store root; empty = $DSH_HOME/sessions (both missing fails load)
repoDir''Sync worktree root; empty = $DSH_HOME/dsh-session-sync/repo
remote''Remote address (required before pull/push; status/diff work without one)
branchmainRemote branch name
gitBingitgit executable path
ageBinageage executable path (probed for backend: encrypted; missing degrades to plaintext)
ageRecipient''age recipient (public key or identity string); empty = cannot encrypt, degrades to plaintext
ageIdentity''Path to a passphrase-less age secret key for decryption; empty = cannot decrypt, degrades to plaintext
autoPullOnStartfalsePull once when the plugin mounts (config is the grant; no re-confirm)
autoPushOnTurnEndfalsePush after every closed turn
pullIntervalMinutes0Periodic pull every N minutes (0 = off, max 10080)
confirmViaautoConfirmation channel: auto (userQuestions first, then approval), userQuestions, approval
graceMs10000Grace period for git kills (ms)
commandTimeoutMs120000Per-command timeout (ms)
maxOutputBytes262144Per-stream collected-output cap (bytes)
commitNamedsh-session-syncCommit author name
commitEmaildsh-session-sync@localhostCommit author email
registerCommandtrueRegister the /sync command
registerToolstrueRegister the sync_* tools when the tools service is present

Example override in your profile patch:

- insert:
    - id: session-sync
      name: dsh-session-sync
      config:
        remote: git@github.com:you/your-dsh-sessions.git
        branch: main
        autoPushOnTurnEnd: true
        pullIntervalMinutes: 30
        confirmVia: userQuestions