Preface¶
When modifying the frontend with DSH, the common workflow is to describe changes in chat, such as “make the title bigger” or “change the button color to blue,” and the model then searches for files and modifies the CSS or JSX. The problem is that natural language rarely corresponds precisely to a specific DOM block on the page; after modification, you also often have to manually compare it in the browser and check the git diff to confirm if the correct location was changed.
dsh-revise (repository Lostforest7/dsh-revise) turns this step into a visual revision workbench: select elements on the local development page, write specific modification instructions, hand them over to the agent via the current DSH session to modify code, and then use fixed-viewport screenshots and source code diffs for manual acceptance. Maintained by Lostforest7, it is classified as a Client plugin in the DSH community directory.
What is this¶
In one sentence: It adds a workflow to DeepSeek Harness for “Selecting frontend elements -> Sending revision requests -> Comparing screenshots and code diffs -> Accepting or providing feedback item by item.”
The plugin does not apply for an API Key independently; model credentials are still configured by DSH officially. Code editing is still performed by the agent in the DSH session; Revise is responsible for collecting context, screenshots, recording, and exporting reports.
The README states: Currently verified only on DSH Web 0.2.0-rc.2, Vite 8.3.1 / React 18.3.1, Windows, and Node 24.19.0; the interface and reports are in Chinese. Simple examples have been tested on DeepSeek V4 Pro / Max; complex projects, other frameworks or models, Desktop, and other DSH versions are unverified.
Core Features¶
The following capabilities are derived from the project README and package.json descriptions.
- Request upon Selection: Collects element selectors, page summaries, viewport coordinates, and JSX source hints together.
- Current Session Handoff: Preview requests on the workbench, then send via the DSH regular prompt queue.
- Before/After Evidence: Screenshots at Desktop 1280×800 and Mobile 390×844, plus a diff of the collected text source code.
- Manual Acceptance: Accept each item, or Continue Modifying and send again; re-collection clears previous acceptance status; old candidates cannot be accepted after source code changes.
- Local History: Revision records are written under the project directory
.dsh-revise/, separated by DSH session. - Portable Reports: Downloadable single-file HTML; locally saves
report.html,report.md, and PNGs. Pixel change percentage only describes image differences and cannot solely prove whether the requirement was implemented correctly.
On the Vite side, injection is done via the revise() bridge, effective only in development server (apply: 'serve'), and does not participate in production builds.
Installation and Activation¶
Environment requirements: Node 24, or 22.x and ≥22.19.0 (see engines in package.json). You must first install and configure Harness according to the official DSH documentation.
The distribution package is not published to npm. You can download dsh-revise-0.1.0.tgz from v0.1.0-pre.
1. Register DSH Web Plugin and Configure Browser¶
Register the tarball to the Web profile and specify the Chromium/Chrome executable file; if there is no local Chrome, you can use Playwright to install Chromium:
# Windows example: Set Chrome path first, then start DSH Web
$env:REVISE_CHROMIUM_PATH = "C:\Program Files\Google\Chrome\Application\chrome.exe"
dsh web
Register the plugin (change the path to the local absolute path):
dsh plugin --profile web add /absolute/path/to/dsh-revise-0.1.0.tgz
Documentation requirement: Configure REVISE_CHROMIUM_PATH before starting DSH, or execute:
npx playwright-core@1.63.0 install chromium
2. Install and Integrate in Frontend Vite Project¶
Install the same local package as a development dependency in the frontend project directory, and add .dsh-revise/ to .gitignore:
npm install -D /absolute/path/to/dsh-revise-0.1.0.tgz
Add revise() to vite.config.ts, and it is recommended to fix the local development address (consistent with the URL used when creating a round in the workbench):
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { revise } from 'dsh-revise/vite'
export default defineConfig({
plugins: [revise(), react()],
server: { host: '127.0.0.1', port: 5173, strictPort: true },
})
.dsh-revise/
3. Start Collaborative Debugging¶
Start the frontend development service, then run dsh web, select this Vite project in DSH, and click Revise Workbench at the bottom right of the interface.
If developing from a source code directory, the README allows running dsh plugin --profile web add /absolute/path/to/dsh-revise on the checkout path (the repo contains the built lib/). The user task requires not expanding the git clone process; refer to the Source checkout section of the repository README if needed.
Typical Usage¶
According to the “Use it” steps in the README, a round of revision roughly looks like this.
- Open the directory in DSH as a session for the Vite project, and start the project’s development server.
- Click Revise Workbench, create a round with a real local development URL; the plugin first collects the baseline.
- Click Select Element, select the DOM node and save specific modification instructions; you can repeat for multiple elements or mobile viewports.
- Click Send to DSH, read the generated request and confirm sending; close the workbench to follow up on the agent’s reply in the session.
- Wait for the modification to complete and Vite hot updates to stabilize, reopen the round, click Collect After Modification, and compare screenshots and code changes.
- Accept each item, or Continue Modifying and send the request again; when finished, click Complete This Round Acceptance.
- Use Export Report (HTML) when archiving is needed; Markdown and screenshots are still retained in the project’s
.dsh-revise/.
The repository includes examples: After building the source code, you can run npm run dev:example and npm run dev:workbench separately in the terminal to experience element selection, collection, and export without connecting to DSH (providing copy request instead of sending to the agent). Full DSH integration requires registering the plugin and using examples/vite-react as the DSH project directory.
Use Cases and Notes¶
More Suitable For: Local loopback, HTTP development servers with explicit ports; Vite + React frontends; teams or individuals who want to use fixed-viewport screenshots and text file diffs within directories like src/, app/, pages/, components/ for acceptance before and after revisions.
Boundaries and Limitations (README Boundaries):
- Accepts only explicit-port loopback HTTP targets; screenshots use a fresh context with no login cookies and only load same-origin resources; pages relying on remote APIs, CDNs, logins, or iframe blocking may require additional adaptation.
- Source code snapshots have quantity and size limits (e.g., 500 files, 512 KB per file, 5 MB total); binaries and environment files do not participate in diff; JSX hints do not guarantee mapping to a unique CSS rule.
- This version has no automatic rollback, full-page screenshots, multi-person review, or hosted report services; exported HTML contains page screenshots and source code diffs, please review the content yourself before sending it out.
Security and Trust: DSH plugins run under the permissions of the current dsh process. Please read the source code and MIT license of the GitHub Repository before installing, and understand that requests, screenshots, and report metadata will be written into .dsh-revise/.
The DeepSeek Harness ecosystem emphasizes “Everything is a plugin”; the SkillHub Directory Page is a community site with no official affiliation with DeepSeek / High-Flyer, and this article does not describe it as an “Official App Store.”
Conclusion¶
dsh-revise connects “Point and Modify” and “Screenshot + diff Acceptance” to the existing DSH session, reducing the cost of describing frontend locations purely in text. The current package version is 0.1.0, pre-release package see v0.1.0-pre; for compatibility and troubleshooting, see docs/compatibility.md in the repository.
- Community Directory: https://www.skillhub.cn/plugins/Lostforest7/dsh-revise
- GitHub: https://github.com/Lostforest7/dsh-revise