dsh-session-doctor: Locate bad events without opening a session
dsh-session-doctor is an admin-security DSH plugin maintained by aturzone, addressing issues similar to those discussed in deepseek-harness Discussions #11971, #11981, and #11121. It decodes session.vN.jsonl[.zstd] in read-only mode and replays the current V4 reader's turn/step/scope rules to identify the index, type, and rule of violation events, without writing or fixing anything. The article covers four types of checks, two installation commands (npm and git), two usage methods (bundle and CLI), output formats and exit codes, as well as important notes such as defaulting to scanning only the highest generation and keeping rules in sync with the reader version.
Read Moredsh-session-doctor: Scan and Losslessly Repair DSH Session Log Corruption
DSH session history is persisted as zstd frames. If checks are not performed on write and only on load, the entire history can become unavailable. dsh-session-doctor (imtokenxinluo) scans for corrupted sessions using the same rules as the loader; before repair it automatically backs up and performs lossless repairs for supported shapes such as tool-result content not being an array. v1.1 adds real-time alerts via watch; v1.2 introduces blame to determine whether a sudden shutdown was caused by the agent. Since 0.2.2, safeguards and a settings panel are provided. Standalone Node >= 22 CLI (npm link), MIT license.
Read Moredsh-session-doctor: Diagnose, Unblock, and Read DeepSeek Harness Session
dsh-session-doctor is a DSH plugin developed by maintainer mayf3, positioned as the "Session Doctor" and designed to extend the capabilities of the DSH environment. The current version is 1.0.0 and is licensed under the MIT license, integrating five core functions: listing sessions, reading records, diagnosing status, recovering stuck sessions, and sending messages. `list_sessions` allows viewing session details, `session_status` is used to diagnose the running status, and `read_session` supports reading text messages sequentially. For sessions stuck in the `running` state, `session_recover` can send cancellation signals to terminate activities while preserving queued messages; `send_session_message` enables delivering messages to target sessions.
Read More