dsh-error-lens: A Read-only Error Diagnostics Plugin for DeepSeek Harness

wanbinyu/dsh-error-lens

Development & OperationsVerified
Listed on 2026-08-22
Page last updated 2026-09-16

dsh-error-lens provides read-only, redacted model request error diagnostics for DeepSeek Harness Web, turning vague failures into actionable insights and enabling one-click copy of a diagnostic report suitable for GitHub Discussions.

dsh-error-lens is a read-only error diagnostics plugin for DeepSeek Harness that turns vague "this run failed" messages into actionable information. It handles various errors from third-party OpenAI-compatible gateways, such as 401, 403, 429, 400, and 5xx, showing redacted error details directly in the DSH Web UI and offering one-click copy of a diagnostic report in Chinese or English suitable for GitHub Discussions. Built on official session projection and Web UI slots with no DOM injection, it does not read credential storage or save full prompts.

How to Install

install
dsh plugin --profile web add github:wanbinyu/dsh-error-lens
Category
Development & Operations
Platform
DSH Plugin
Author
wanbinyu
Distribution
Plugin

dsh-error-lens Key Features

Show recent failuresExpand to view historyCategorize error typesCopy redacted reportAuto-hide on success
Listed on dsh-plugin.org

dsh-error-lens Repo Summary

What Does It Do?

dsh-error-lens is a read-only error diagnostics DSH plugin for DeepSeek Harness that turns vague "this run failed" messages into actionable information. It solves the problem of third-party OpenAI-compatible gateways returning different errors (like 401, 403, 429, 400, 5xx) that are hard to pinpoint, letting you see redacted error details directly in the DSH Web UI and copy a diagnostic report suitable for GitHub Discussions with one click. Maintained by Wanbinyu under the MIT license, it is built on the official session projection and Web UI slots with no DOM injection.

Core Features

  • Shows the most recent unresolved request failure above the message input area, expandable to view the last 3 failures for comparison.
  • Categorizes errors into authentication, forbidden, rate limit, context length, compatibility, timeout, network, and server errors, and displays the provider error message and Request ID persisted by DSH.
  • Copies a redacted diagnostic report in Chinese or English with one click, removing API keys, Bearer tokens, URL key parameters, and user directories.
  • Automatically hides the notice after the next successful turn while retaining limited in-session error statistics.
  • Does not read credential storage, save full prompts, auto-retry, or modify model requests.

How to Use This Plugin?

After enabling it in DSH Web, the plugin displays an error notice above the input area when a model request fails. Click to expand and view the last 3 failures, and use the copy button to generate a redacted diagnostic report. Default configuration is in cordis.patch.yml of the Web profile, where you can adjust maxRecords (default 10, range 1-50) and maxMessageLength (default 2000, range 256-8000) to control the number of retained errors and the maximum character length per error. Note that the plugin only processes terminal failure records already present in session logs; always manually review sensitive information before copying or publishing reports.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: wanbinyu/dsh-error-lens. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub

DSH Plugin FAQ