AI Agent Hub
Back to plugins
⚙️

dsh-session-integrity

Workflow Updated 2026.08.20

Run the following command in DeepSeek Harness:

dsh plugin install DON738110198/dsh-session-integrity

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install DON738110198/dsh-session-integrity inside DeepSeek Harness to install this plugin; the full source code is available at https://github.com/DON738110198/dsh-session-integrity .

About this plugin

A single internal scheduler exception in DeepSeek Harness can permanently poison a session: the tool call is persisted but the matching tool result never arrives, and every subsequent model request replays that broken pair, causing the provider to reject it with a protocol error. No amount of follow-up user messages can fix it, because the defect is durable in the event log.

dsh-session-integrity addresses this with three layers of capability. A host plugin scans live sessions at load and after each turn-end, flagging provider-visible transcript defects. An offline CLI inspects exported JSON or uncompressed JSONL without issuing any model request. A web plugin adds a "Continue from here" branch button beside historical assistant turns, creating and opening a child session through the Harness public fork API while preserving the original session intact. Both the analyzer and the recovery planner are strictly read-only; the plugin never mutates, deletes, or replaces events in the source session.

It is built for developers running agent workflows on DeepSeek Harness who rely on non-idempotent external tool calls such as payments, deploys, or writes. No upstream merge or npm publish is required. Install from GitHub and you gain a safety net that diagnoses, reports, and enables safe recovery of poisoned sessions without a single destructive operation.

Use Cases

  • Diagnosing and recovering sessions stuck on unmatched tool-call defects
  • Offline auditing of exported JSON or JSONL session files for transcript integrity issues
  • Forking from a safe completed prefix to continue work after a poisoned session

Best For

  • Developers building agent workflows on DeepSeek Harness
  • Application engineers relying on non-idempotent external tool calls
  • Ops or SRE teams needing session fault diagnosis and safe recovery