po-et/dsh-session-guard0

dsh-session-guard

DeepSeek Harness plugin that prevents the concurrent-write session corruption family: per-session advisory locks with stale takeover, so two dsh processes can no longer corrupt one session log

AI 分析

核心用途是防止两个 DSH 进程同时写入同一个会话日志导致数据损坏。适合经常多开 DSH 实例、需要保障会话日志安全的用户。

パッケージ
dsh-session-guard
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/09/05

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:po-et/dsh-session-guard

ドキュメント

README 全文を読む ↗

Configuration

All optional, set on the plugin row in your profile patch:

- id: session-guard
  name: dsh-session-guard
  config:
    mode: enforce        # 'enforce' (default) fails conflicting steps; 'warn' only logs
    heartbeatMs: 15000   # heartbeat refresh for held locks
    staleAfterMs: 90000  # unverifiable owners expire after this silence
    # lockDir: /custom   # default: $DSH_HOME/session-locks