dsh-request-flight-recorder
Run the following command in DeepSeek Harness:
dsh plugin install abinzhao/dsh-request-flight-recorder
Paste the following prompt into your AI chat to install this plugin:
In DeepSeek Harness, run dsh plugin install abinzhao/dsh-request-flight-recorder to install the plugin; the source repository is at https://github.com/abinzhao/dsh-request-flight-recorder .
About this plugin
Debugging model requests inside DeepSeek Harness creates a tension: you need to inspect structural details of every request without leaving prompt text, tool arguments, or variable values in any log. dsh-request-flight-recorder resolves this by observing official Agent Loop requests through Cordis, correlating request assembly with stream completion, and retaining a bounded in-memory flight history that contains no message content.
The plugin delivers capability in three layers. Diagnostics: it records session, turn, and step coordinates alongside provider, model, generation settings, structural message counts, tool schema sizes, time-to-first-chunk, total duration, token usage, finish reason, and structured failure state. Privacy: an explicit field allowlist retains only structural names and counts; raw error messages, stacks, and thrown values are discarded. The bounded Ring Buffer clears on process exit and never writes to disk. Interaction: when the active profile exposes the Commands service, a /flight command lets you inspect the latest record, list retained entries, run an implicit diff between the two newest, and view session-scoped stats, with output capped at 4,096 UTF-16 code units.
It is aimed at Harness administrators and integration engineers who need to profile streaming latency, verify the structural impact of prompt changes, or audit request lifecycles across multiple profiles. The plugin registers no Tool, Skill, prompt section, or context provider, and does not alter Agent Loop semantics, offering a minimally invasive, process-local, read-only flight recorder.
Use Cases
- Diagnose time-to-first-chunk and timeout issues in Agent Loop streaming requests
- Verify message counts and tool schema sizes after prompt structure changes
- Demonstrate to auditors that retained records contain no body text or variable values
Best For
- Ops engineers diagnosing live request-path issues in DeepSeek Harness
- Compliance teams auditing prompt structure without accessing body content
- Harness admins integrating multiple profiles and comparing request coordinates across sessions
Related Plugins
A network security red-team benchmark plugin for DeepSeek-V4.1/Flash featuring dual-layer kernel injection and zero-tool architecture for controlled model safety assessment.
A security red-team prompt plugin for DeepSeek-V4 that uses code-formal mapping and zero-trigger system prompts to enable unconditional output, intended for authorized testing and research only.
Adds an Auto approval mode on the official workspace-write sandbox, classifying semantic risks, asking when ambiguous, and denying destructive operations.
Undo/rollback system for DSH: config & plugin snapshots, one-click undo/redo/restore, message-level revert, secret masking, safe mode, and offline WebUI/GUI/CLI rescue tools for when DSH won't start.