DeepSeek Harness plugin

dsh-error-lens

Read-only, redacted provider error diagnostics for DeepSeek Harness

Jump to install

Source facts

Repository
Wanbinyu/dsh-error-lens
Latest update
Aug 21, 2026
Category
Models & Providers
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/Wanbinyu/dsh-error-lens
Plugin: dsh-error-lens
Author: Wanbinyu

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.en.mdSource · read only
README language

dsh-error-lens

English | 简体中文

> Unofficial community plugin. It is not affiliated with or endorsed by DeepSeek.

Read-only, redacted model-request diagnostics for DeepSeek Harness Web. The plugin turns a generic failed-turn message into actionable facts and can copy a report suitable for a GitHub Discussion.

!dsh-error-lens showing a transport failure in DeepSeek Harness

Why

OpenAI-compatible gateways often expose different failures through similar UI messages:

  • 401: missing or invalid credentials;
  • 403: credentials may be valid, but a User-Agent rule, model permission, or gateway policy rejected the request;
  • 429: request or quota rate limiting;
  • 400: incompatible model id, developer role, tool calls, or reasoning options;
  • 5xx, timeout, and connection failures: provider or network problems.

Error Lens keeps the status, stable code, request ID, provider, and model while attempting to remove API keys, bearer tokens, secret URL parameters, and user home paths before data reaches the browser.

Features

  • Shows the latest unresolved request failure above the composer;
  • Shows the three most recent previous failures when expanded, making repeated faults easier to compare;
  • Classifies authentication, forbidden, rate-limit, context, compatibility, timeout, transport, and server failures;
  • Displays the provider message and Request ID already persisted by DSH;
  • Copies a redacted diagnostic report;
  • Hides the warning after a later turn succeeds while retaining bounded session statistics;
  • Does not read credential storage, save full prompts, retry requests, or mutate model traffic;
  • Uses the official session projection and Web UI slot APIs without DOM injection.

Install

Requires Node.js >=22.19 and DeepSeek Harness 0.1.0-rc.6 or newer. v0.1.2 is type-checked, tested, built, and package-validated against DeepSeek Harness 0.1.1-rc.2 while retaining compatibility with 0.1.0-rc.6 through rc.8 and 0.1.1-rc.1.

dsh plugin --profile web add https://github.com/Wanbinyu/dsh-error-lens/releases/download/v0.1.2/dsh-error-lens-0.1.2.tgz

Restart after installation or update:

dsh web

Remove:

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

Configuration

The default bundle entry in the Web profile's cordis.patch.yml is:

- insert:
    - id: error-lens
      name: dsh-error-lens
      config:
        maxRecords: 10
        maxMessageLength: 2000
OptionDefaultDescription
maxRecords10Recent failures retained per session projection, from 1 to 50
maxMessageLength2000Maximum redacted message length, from 256 to 8000 characters

Privacy boundary

The plugin processes only terminal failure records already present in the DSH session log. Review a copied report before publishing it: text-based redaction cannot guarantee coverage of every provider-specific secret format.

The plugin does not:

  • read keys from settings.yaml;
  • record request bodies or full prompts;
  • send telemetry to external services;
  • change configuration, retry, or switch models.

Development

npm install
npm run verify

verify runs Host/Web type checks, unit tests, the client build, and a package-content check.

Feedback

Open issues and suggestions in GitHub Issues. Before posting, use the copy button to generate a redacted diagnostic and review it once more for information you do not want to disclose.

License

[MIT](LICENSE)