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

wanbinyu/dsh-error-lens

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

Read-only, redacted model request error diagnostics for DeepSeek Harness, with one-click copy of a report.

Turn vague 'this run failed' messages in DeepSeek Harness into actionable information, with one-click copy of redacted diagnostic reports.

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 failuresCategorize error typesCopy redacted reportAuto-hide on success

Listed on dsh-plugin.org

dsh-error-lens Repo Summary

dsh-error-lens is a read-only, redacted error diagnostics DSH plugin for DeepSeek Harness, maintained by Wanbinyu under the MIT license, last updated in 2026-08. It addresses the issue of third-party OpenAI-compatible gateways returning ambiguous errors, turning vague "this run failed" messages into actionable information, and offering one-click copying of redacted diagnostic reports. Core capabilities include displaying the most recent unresolved request failure above the message input area, distinguishing authentication, rate limiting, compatibility, and other error types, showing provider error messages and Request IDs, and never reading credentials, saving full prompts, or auto-retrying. This DSH plugin is built on official session projection and Web UI slots, with no DOM injection and clear privacy boundaries.

What core features does dsh-error-lens support as a DSH plugin?

  • Displays the most recent unresolved request failure, auto-hiding after a successful next turn while retaining limited in-session error statistics.
  • Distinguishes authentication (401), forbidden (403), rate limiting (429), context overrun, compatibility, timeout, network, and server errors.
  • Shows provider error messages and Request IDs persisted by DSH, preserving status codes, error codes, provider, and model.
  • One-click copy of redacted diagnostic reports in both Chinese and English, suitable for GitHub Discussions.
  • Does not read credential storage, save full prompts, auto-retry, or modify model requests.

How to install dsh-error-lens?

Requires Node.js >=22.19 and DeepSeek Harness 0.1.0-rc.6 or higher. Install with:

bash
dsh plugin --profile web add github:wanbinyu/dsh-error-lens

Restart the web service after installation or update:

bash
dsh web

To uninstall:

bash
dsh plugin --profile web remove dsh-error-lens

How to configure dsh-error-lens?

Default configuration is in the Web profile's cordis.patch.yml, allowing maxRecords (recent errors kept per session projection, default 10, range 1-50) and maxMessageLength (max characters per redacted error, default 2000, range 256-8000).

What are the privacy boundaries of dsh-error-lens?

The plugin only processes terminal failure records already present in DSH session logs, and attempts to remove API keys, Bearer tokens, URL key parameters, and user directories before data enters the browser. It does not read keys from settings.yaml, log request bodies or full prompts, send telemetry to external services, or automatically change configuration, retry, or switch models. Manual review is still advised before copying or publishing reports, as text-rule redaction cannot guarantee coverage of all sensitive formats in vendor-specific errors.

Which DeepSeek Harness versions are compatible with dsh-error-lens?

v0.1.1 has been verified with DeepSeek Harness 0.1.1-rc.1 for types, tests, build, and packaging, while retaining compatibility branches for 0.1.0-rc.6 through rc.8.

View more DSH plugins at dsh-plugin.org

DSH Plugin FAQ