Select elements, draw arrows or frame areas in DSH previews, send visual feedback to chat and compare before-and-after snapshots.
Install
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/Han-1413141/dsh-visual-edit/releases/download/v0.5.2/dsh-visual-edit-0.5.2.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Han-1413141/dsh-visual-edit
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Select an element, draw an arrow, or frame an area in DSH's preview. Add feedback and compare the updated page automatically.
中文说明 · Download v0.5.2 · Report a problem
A visual feedback plugin for DeepSeek Harness, integrated into its existing HTML preview and desktop Browser. It follows the host's typography, colors, radii, and light/dark preference. The entry lives in the preview toolbar; no conversation-header shortcut is added.
Use it
- Open an HTML file in the right sidebar, or load a website in the desktop Browser.
- Click Visual Edit in the preview toolbar. Choose Element, Arrow, or Rectangle.
- Describe the change and click Add to chat & compare. The request is inserted into the current composer, preserving its existing draft.
- Send the draft in DSH. When the agent changes the page and the preview updates, before/after snapshots appear automatically.
- Enlarge or overlay the snapshots, inspect measured changes, and Confirm result when satisfied.
| Mode | Gesture | Context |
|---|---|---|
| Element | Click an element | Locator, text, styles, available source location, and image |
| Arrow | Drag toward a target | Arrow, target element, and surrounding area |
| Rectangle | Drag any rectangular area | Area image, text, and document coordinates |
Ctrl / ⌘ + Enter activates the comment form's primary action; Esc cancels selection. Save feedback keeps a draft without adding it to chat. Save & pick another and batch selection let you collect several requests first.
Automatic comparison watches queued and unconfirmed review notes. HTML reloads and browser DOM updates are supported. Unrelated changes outside the selected element do not recapture it. Closing the feedback overlay keeps monitoring active; switching away from the preview pauses it until the tab becomes visible again. Confirming a result stops further automatic updates to that note.
“Added to composer” records insertion, not model completion. Page changes are evidence for your review, not proof that the request was implemented correctly.
Install
Targets DSH 0.2.0-rc.2. The package includes its inspector and client dependencies. Native HTML and desktop Browser integration require no changes to the web project's configuration. The DSH plugin manager handles package dependencies during installation.
For the desktop app, fully exit through its application menu, then run the bundled DSH CLI:
dsh plugin --profile desktop add https://github.com/Han-1413141/dsh-visual-edit/releases/download/v0.5.2/dsh-visual-edit-0.5.2.tgz
Reopen DSH. On Windows, the bundled launcher is resources/runtime/cli/bin/dsh.cmd inside the application directory. DSH Web users substitute --profile web, restart the server, and refresh the client.
Distribution is through GitHub Releases, using the complete package URL. A bare npm install dsh-visual-edit is not the release installation path. No desktop application files are patched; removing the plugin restores the host's original preview registrations.
Upgrade
Reinstall from the new URL and restart DSH. Existing IndexedDB notes, images, and older JSON backups remain compatible. Use the same client profile, DSH origin, and session to access existing records. Imported queued notes become drafts, since the destination composer may not contain their requests.
Version 0.5.2 fixes capture on pages containing HTML divider comments. Rectangle captures include complete intersecting content blocks, and saved targets follow layout changes and wrapping. Failed or old result images are refreshed once per preview load. If a historical before image is missing, choose Restore from original HTML below it and provide the actual earlier file (up to 2 MB). The isolated renderer disables page scripts and network access, checks the recorded text and target, preserves the original timestamp, and labels the recovered image. It never infers an earlier page from the current one.
Optional Vite / React source locations
Native HTML records original file line/column locations. The desktop Browser can inspect loaded HTTP(S) pages directly. For JSX/TSX locations, install the development bridge in your web project:
npm install -D https://github.com/Han-1413141/dsh-visual-edit/releases/download/v0.5.2/dsh-visual-edit-0.5.2.tgz
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { visualEdit } from 'dsh-visual-edit/vite';
export default defineConfig({
plugins: [visualEdit(), react()],
});
Restart Vite. Instrumentation is development-only and absent from production builds.
The standalone Visual Edit sidebar remains available for local Vite apps in DSH Web. That compatibility view retains element selection and manual comparison, requiring a separate page origin. Allowed DSH origins default to localhost port 3080; customize other ports with visualEdit({ allowedOrigins: ['http://127.0.0.1:3086'] }). Use the native preview toolbar for the three annotation modes and automatic comparison.
Review and storage
- The original baseline is retained; later page updates replace the after snapshot until confirmation.
- If an element is removed or its identity no longer matches, native comparison captures the original area and labels the fallback. Changed viewport dimensions are also labeled.
- Capture result remains available for immediate manual refresh.
- Search, status filters, batch insertion, JSON backup/restore, and revision conflict detection remain supported.
- IndexedDB holds up to 50 notes per session. Backups are limited to 70 MB; duplicate IDs are skipped after a restore preview.
Only the request and reference metadata reach the agent draft: source, selector, text, measured styles, and annotation coordinates. PNG images stay local. Normal submission uses the model configured in DSH.
Form controls, editable content, and data-private / data-visual-edit-private elements are excluded from captured text and imagery. URL query/hash values are omitted from feedback. Native HTML retains DSH file permissions and interactive-preview settings; static mode permits the bundled inspector while blocking the page's own scripts.
Scope
| Area | Behavior |
|---|---|
| Native HTML | DSH 0.2.0-rc.2; real DSH Web verification includes selection, original HTML locations, file refresh, composer insertion, and automatic comparison |
| Desktop Browser | Electron webview injection into the current page; see validation for actual desktop verification scope |
| Images | DOM-rendered PNG, up to 1600 × 1600 and 650,000 data-URL characters |
| Regions | Document coordinates; arrows and rectangles retain the same region across comparison |
| Legacy Vite tab | Local Vite 6.4 / React; manual comparison requires the same address, viewport, and valid element identity |
Cross-origin child iframes, Shadow DOM, canvas/WebGL, and external fonts are outside reliable image reconstruction. Remote assets and CSP can prevent a PNG; available metadata remains with an explanation. These are review snapshots, not pixel-exact browser screenshots. Stable IDs or data-testid are recommended for reordered list items.
Develop
npm ci
npm run build
npm run typecheck
npm test
npx playwright install chromium
npm run test:browser
npm run demo:build
npm run demo serves the included page at http://127.0.0.1:5179. On Linux, use npx playwright install --with-deps chromium.
Validation · Architecture · Troubleshooting · UI design · Research
MIT. Dependency licenses are listed in THIRD_PARTY_NOTICES.md.
Links
More in this category
yjh051108/dsh-routing-suite★ 7028
One repository, three parts: a runtime injector for DSH plugin packages (inject, hot-reload, unload, promote a dev staging tool to the front, route self-heal, plus a settings-page plugin manager that lists, unloads and drags folders in to internalize), a task-aware reasoning-mode router agent preset (router-standard / router-spec / router-react), and a graded two-level task protocol whose six tools (commit_star, lock_stage, revise_do, edit_plan, mark_task, redteam_verdict) pin task state to disk. The injector implementation ships in-tree, so the install carries its own behaviour rather than a dependency list.
strukto-ai/mirage#dsh★ 3946
Swaps the filesystem and bash providers for a mirage virtual workspace: file tools and shell commands run over mounted resources (RAM, S3, Redis, Slack, Gmail, Notion, Postgres) instead of the host disk, with per-mount read/write/exec modes, per-command sandbox routing (monty, pyodide, quickjs in process; docker, e2b, daytona remote), and installed CLIs (git, gh, slack, linear, ntn, gws, or one you register) as head words in the virtual terminal.
first-fluke/oh-my-agent#dsh★ 1488
Runs project OMA checks before and after tool execution and when a turn tries to finish. Installs its OMA CLI dependency and initializes unconfigured projects on first use. Requires Node.js 22+; initial setup needs network access and project write access.
MichengAI/dsh-skills-manager★ 627
Manages local DeepSeek Harness skills in Settings and shows shared Agent skills as read-only.
hust-open-atom-club/oh-dsh★ 326
Community distribution: TUI, desktop, and Web UI as one bundle with layered installation.
Fishquito7/dsh-skill-mcp-panel★ 292
Manages DSH skills and MCP servers from the web settings: skill cards with hot enable/disable, workspace scopes, groups, batch migration and drag-and-drop import, plus stdio/HTTP MCP CRUD with connection tests, secret redaction and the unified dsh-panel CLI.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.