DSH API Revise: API Regression and Acceptance After Agent Backend Modifications

Introduction

When using DeepSeek Harness (DSH) to let models modify backend code, a common problem is: after modifications, verifying whether the responses of each HTTP interface remain consistent with the pre-modification state, and identifying which fields or status codes have changed, often relies on manually clicking through interfaces or writing temporary scripts for comparison. DSH API Revise (npm package dsh-apirevise) is a workflow-oriented DSH plugin maintained by Lostforest7. It provides an “API Interface Acceptance Bench” within DSH Web: it takes baseline snapshots of monitored endpoints before changes, reruns them with one click after changes to generate a structured diff, and then facilitates item-by-item manual acceptance and report export. It is not a traffic capture proxy (the README indicates v2 direction for this), nor is it a frontend acceptance tool (see dsh-revise for similar scenarios) or a general test framework runner.

What is this

  • Positioning: An API regression & acceptance workbench for DeepSeek Harness.
  • Maintainer: Lostforest7; Repository https://github.com/Lostforest7/dsh-apirevise, Community Directory Page https://www.skillhub.cn/plugins/Lostforest7/dsh-apirevise.
  • Version & Validation Environment: Pre-release v0.1.0; README states validation on DSH Web 0.2.0-rc.2, Windows, Node 24; Interface and reports are in Chinese. Documentation dated 2026-10-01 records a real model closed loop (Baseline → Real DeepSeek V4-Flash modifies backend → Rerun → Structured Diff → Item-by-item Acceptance → Report); model steps were not mocked. See docs/real-model-validation.md in the repository for details.
  • Credentials: Configure Harness according to official DSH documentation; the plugin itself does not require a separate API Key.

Core Features

The following capabilities listed in the README are introduced below. All can be operated within the DSH Web panel (Endpoint method, URL, and optional headers/body are entered manually; no traffic capture is performed).

  1. Register Endpoints: Fill in request information for the interfaces to be monitored in this round.
  2. Baseline Snapshot: When creating an acceptance round, request each endpoint once. Save the responses (status codes, headers, JSON or text body) to .dsh-apirevise/ in the project directory, and save snapshots of backend source files within a bounded scope.
  3. Session Integration: The change targets and monitored endpoint list are sent to the current DSH session via the standard DSH prompt queue for the model to modify code.
  4. Rerun & Compare: After the model finishes modification, rerun all endpoints with one click to generate a structured diff: JSON field-level changes (additions, deletions, types, values, and old → new), status code change highlighting, and text patches for plain text bodies; view this side-by-side with the source code diff.
  5. Item-by-item Acceptance: Each endpoint can be accepted, or marked as “Rework Required” with feedback to enter the next round; if the source code changes again after a rerun, the comparison becomes stale, requiring a rerun before acceptance; the round can only be completed after all endpoints are accepted under the current rerun.
  6. Portable Reports: Export Markdown and single-file HTML (embedded diff, XSS escaping, strict CSP); the report only presents facts and does not replace human judgment to declare “the interface is definitely fine”—acceptance conclusions are made by humans.

The plugin explicitly is not: a traffic capture proxy, a frontend tool, or a test framework runner; nor does it automatically claim the API is correct, only displaying status codes, field, and value changes.

Installation & Activation

Environment requirements: Node 22.19+ (22.x) or Node 24. First, install and configure DSH according to the DeepSeek Harness official documentation.

Install from npm (command provided in README):

dsh plugin --profile web add dsh-apirevise

The package is published as dsh-apirevise@0.1.0; GitHub v0.1.0 also includes a pre-release tarball.

If loading from a source directory: After npm ci and npm run build within the checkout, stop DSH, register the Web profile using the absolute path, and then start dsh web (the README example command is dsh plugin --profile web add /absolute/path/to/dsh-apirevise). The repository contains the built lib/, so DSH can load it without running the build.

Note: DSH plugins run with the permissions of the current DSH process; please review the repository source code and the MIT license yourself before installation, and confirm compatibility with your local DSH / Node version (peerDependencies includes @deepseek-ai/cordis ~4.0.4 and DSH Web 0.2.0-rc.2 related client packages).

Typical Usage

The reproducible workflow provided in the README is as follows.

  1. Start the backend locally (e.g., node server.mjs in the repository’s examples/api-server, port 3000).
  2. Open a DSH session with the working directory set to this backend project, and click API Interface Acceptance Bench in the bottom right corner.
  3. Create a round: Fill in the title (description of this change), target (will be sent to the session), and endpoints to monitor; a baseline snapshot will be taken immediately upon creation.
  4. Click Generate Request, confirm, and Send to Current Session to let the model modify the backend.
  5. After the model finishes, click Rerun & Compare to view the structured diff and source code diff; accept endpoints individually or attach feedback to send back to the session.
  6. After all endpoints pass acceptance, click Complete Round Acceptance, then Export Report.

It is recommended to add .dsh-apirevise/ to the project’s .gitignore.

For local plugin development, you can use npm run dev to preview the standalone workbench at http://127.0.0.1:4320 (working with examples/api-server); the full check is npm run check (typecheck, unit tests, build). Unit tests are in tests/unit; fixtures are offline and use loopback HTTP only, requiring no DSH or external network.

Use Cases & Boundaries

Suitable for: You are iterating on backend APIs with agents in DSH and need a repeatable loop of “pre-modification snapshot / post-modification comparison / manual sign-off style acceptance,” and are willing to manually maintain the list of monitored endpoints (rather than automatically capturing traffic).

Boundaries: v0.1.0 is a pre-release; compatibility with DSH Web 0.2.0-rc.2 is subject to the repository’s docs/compatibility.md. The community directory skillhub.cn is an independent ecosystem site and has no official affiliation with DeepSeek / Hithink RoyalFlush (Huanfang); plugin star counts are based on the directory/GitHub display at the time (current clues indicate 0).

Conclusion

DSH API Revise consolidates the question “did the interface actually change after the model modified the backend” into a single workflow: baseline, rerun, field-level diff, item-by-item acceptance, and report export. It leaves the decision on whether to accept differences to the developer rather than making conclusions for you. To learn more, please check the SkillHub Directory Page and the GitHub Repository (including the Chinese description README.zh-CN.md).

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye