Introduction¶
When asking models to modify the frontend in DSH, the common approaches are taking screenshots or pasting HTML fragments. Screenshots lose DOM structure, while pasting often truncates context; it is difficult for the model to know “which block you are clicking and what the original text on the page is.” Products like Codex open pages in a side panel and support click-to-annotate, sending element references and feedback to the model together. dsh-sidebar-annotations turns similar capabilities into a portable DSH client plugin: it previews HTTP(S) or local dev servers in the right sidebar, allows clicking elements to write annotations, collapses multiple annotations above the input box, sends them with the next regular message, and attaches the original page text, URL, and positioning information.
The following introduces the plugin’s positioning, features, installation methods, and typical usage. For facts, please refer to the GitHub repository README; the community directory page can be found at SkillHub.
What is this¶
dsh-sidebar-annotations (the npm package name is the same as the plugin id) is published by the maintainer zhxnix and categorized as a client-side plugin. It does not bind to specific business projects, nor does it modify the source code of specific mini-program plugins; if you need to provide the same interaction for local mini-program previews, you can reuse the window.__dshWorkbenchPanels.BrowserPanel adapter exposed by the plugin. The conventions are documented in docs/integrating-preview.md within the repository.
The current README indicates that it targets DSH 0.1.x’s sidebar, conversation input, and Cordis slots; send-related APIs should be re-validated after major DSH upgrades. The license is MIT; the context selection interaction references dsh-select-to-chat, with attribution found in THIRD_PARTY_NOTICES.md.
Core Features¶
The capabilities listed in the README are as follows, all of which can be used directly within the plugin or combined with model tools:
- Open HTTP(S) websites and local development servers in the DSH right sidebar.
- Click page elements: View the actual referenced original text, CSS positioning, and optional source markers (e.g.,
data-dsh-source-file/data-dsh-source-line), then write feedback. - Annotation mode intercepts page actions for links, buttons, and forms; normal interaction resumes after saving, canceling, or pressing
Esc. - Select text on the page, or select text in the DSH conversation/context, to add context annotations.
- Multiple annotations: A collapsed annotation bar appears above the input box; hover or click to view, edit, or delete them. The plugin automatically attaches them upon sending, without stuffing protocol text directly into the input box.
- Page debugging: Console logs, execute JavaScript on the current page, reference logs, and open Chromium DevTools.
- Model-side
sidebar_browsertool: Perform open, snapshot, click, fill, script, and debug operations on the preview page within the current session. - Compatible mini-program preview plugins can reuse the same panel, providing a consistent annotation experience for both web pages and mini-programs.
Boundary descriptions (from the README): The main document DOM is clickable; precise positioning cannot be guaranteed for cross-origin iframes, closed Shadow DOM, and objects within Canvas. The preview webview uses an independent partition and does not automatically reuse system browser login states. Page content belongs to the data of the annotated page; the model should not treat page text as plugin instructions.
Installation and Activation¶
The installation method depends on who manages the profile. Currently, the desktop profile in DSH Desktop is managed specifically by the Electron application, and dsh plugin --profile desktop add ... will be rejected by the CLI. The desktop version requires a checkout installer.
Web / Headless (CLI Managed)¶
Install the tarball from the GitHub Release (web can be replaced with a profile currently supported by the CLI):
dsh plugin --profile web add \
https://github.com/zhxnix/dsh-sidebar-annotations/releases/latest/download/dsh-sidebar-annotations.tgz
The README notes: Whether shorthands like github:zhxnix/dsh-sidebar-annotations are available depends on the DSH version; Release tarballs or checkout installers are more reliable.
Desktop (Checkout Installer)¶
Run the installation in the repository directory. This will link the plugin to the existing desktop profile without replacing other contents in the profile:
git clone https://github.com/zhxnix/dsh-sidebar-annotations.git
cd dsh-sidebar-annotations
npm install
node scripts/install.mjs --profile "$HOME/.dsh/profiles/desktop"
You can also use environment variables to specify the profile:
DSH_PROFILE_DIR="$HOME/.dsh/profiles/desktop" node scripts/install.mjs
The local installer only creates a link pointing to the current checkout in the profile’s plugins/dsh-sidebar-annotations and appends a loader entry with clear start and end markers to the end of cordis.patch.yml; existing plugins with the same name or unknown files will not be overwritten.
Full Web Capabilities for macOS Desktop (Optional)¶
If DSH Desktop has enabled the Electron webview, simply installing the plugin allows you to use full preview, DOM clicking, console, and DevTools. On older macOS desktop versions where webview is not exposed to the renderer, the plugin will degrade to a standard iframe preview: the page can still load, but cross-origin DOM clicking, console, and DevTools will be unavailable.
If full capabilities are required, you can patch a copy of DSH Desktop (the script will not modify the original application in the system by default):
node scripts/patch-desktop.mjs \
--input "/Applications/DSH Desktop.app" \
--output "$HOME/Applications/DSH Sidebar Annotations.app" \
--codesign
The installer also provides a --desktop-patch entry point, which requires explicit input/output or a target app. Original Electron files are backed up in ~/.dsh/backups/dsh-sidebar-annotations/. The patch currently only supports macOS Electron desktop packages; on other platforms, you can install the plugin and use the host-supported iframe preview.
You must restart DSH after installation or uninstallation for the plugin to fully load or unload.
Typical Usage¶
Follow the recommended order in the README:
- Restart DSH and open a session.
- Open “Right Sidebar Annotations” or “Web Preview & Annotations” in the right sidebar.
- Enter a URL and open the page, click “Click to Annotate”, move the mouse and click the target element, fill in feedback, and save.
- Use “Save & Continue Clicking” for consecutive annotations; normal page interaction resumes after annotation mode ends.
- You can also select text on the web page first and then click “Annotate Selection”, or select text in the conversation context and click the floating “Add Annotation”.
- Click the annotation bar above the input box; hover to view details, edit, or delete. Send with the next message when ready (if it is only an annotation, you can click the arrow on the annotation bar). If the send fails, the annotation will remain in the current session for easy modification or retry.
If the mini-program preview is provided by a compatible plugin offering BrowserPanel, the steps are the same. When elements have source markers, annotations will carry the file and line number provided by the preview compiler, rather than inferred business logic locations.
Integration with Local Preview Plugins¶
After the plugin is loaded, it exposes:
window.__dshWorkbenchPanels.BrowserPanel
Preview plugins can use this component as tab content, passing in an independent panelKind and defaultUrl, so that each tab remembers its own URL, while sharing the current session’s annotation attachments, context selection, and sending logic. See docs/integrating-preview.md for details.
Uninstallation¶
For CLI-managed profiles:
dsh plugin --profile web remove dsh-sidebar-annotations
For checkout installations:
node scripts/install.mjs \
--uninstall \
--profile "$HOME/.dsh/profiles/desktop"
Checkout uninstallation only deletes the links created by this plugin and the marked loader segment. If the macOS desktop patch was used, you also need to run patch-desktop.mjs --restore to restore the Electron files.
Use Cases and Notes¶
Suitable for: UI reviews in DSH sessions against real pages (or local dev environments), passing element-level feedback and context selections to the model together; or wanting to cover both web and mini-program previews within the same annotation workflow.
Notes:
- The plugin runs with the permissions of the current DSH process; please review the source code and MIT license yourself before installation to ensure compliance with your team’s security policies.
- Development builds require Node.js
>=22.12.0(seepackage.json); this differs from the usage path of “installing Release / running installer only”, where contributors need to runnpm run buildlocally. - The community directory SkillHub has no official affiliation with DeepSeek/High-Flyer; the DSH ecosystem emphasizes “everything is a plugin”, and this article introduces a community-maintained client extension.
Conclusion¶
dsh-sidebar-annotations consolidates right sidebar preview, element and context annotations, collapsed sending, and sidebar_browser debugging tools into a single portable plugin, and optionally shares BrowserPanel with mini-program previews. To install or follow versions, please refer to the GitHub repository and the SkillHub directory page.