Introduction¶
When developing agents with DeepSeek Harness (DSH), a common state is having the DSH Web UI in a browser and VS Code open side-by-side: you have to switch back to the browser page to click approve when tools require permissions, and you have to manually copy paths or snippets if you want the agent to know which file or selection you are currently viewing. While the community has scattered capabilities like selection insertion, file jumping, and ACP bridging, the two high-frequency actions named in the README—responding to approvals in your current editor and handing editor context to the agent—often still require switching back and forth.
dsh-editor-link, released by maintainer ferrisching, is categorized as a client plugin in the DSH community directory. It integrates a DSH plugin with a VS Code extension, communicating via a local loopback, token-authenticated JSON-RPC channel; its brief description reads: handle approvals, questions, and editor context in the editor via the same authenticated loopback bridge.
What is this¶
dsh-editor-link is one product with two halves: a DSH-side host plugin (npm package name dsh-editor-link) and a VS Code extension (Marketplace identifier ferrisching.dsh-link). DSH in the browser and VS Code can be online simultaneously; for approvals and questions, the answer given first on either side takes effect, and late answers will be explicitly rejected (error code -32002) rather than silently succeeding.
The license is MIT; the GitHub repository ferrisching/dsh-editor-link currently has 1 star. The npm package version in package.json is 0.1.1.
Core Features¶
The following capabilities are drawn from the project README, organized by use case.
Keeping Approvals and Questions in the Editor¶
- When a tool call requires permission, VS Code pops up a native notification with Allow once / Reject options, eliminating the need to switch windows solely for approval.
ask_user_questionis displayed as a card in the sidebar: click for single choice, check and submit for multiple choice, or enter a custom answer; it does not pop up a QuickPick outside the sidebar.- Corresponding cards will still appear on the Web UI side; in a race between the two sides, the first to answer wins.
Editor Context and Selection¶
- The
ide_contexttool can read the current active file, diagnostic information (file:line:col), and the current selection. - The command
DSH Link: Send Selection to Composersends the selection to the DSH composer in the form ofpath:linesplus a fenced code block. - You can say “@ file I am viewing”, providing context via
ide_context; or select code and run the above command to send only the snippet.
Navigation, Sidebar, and Sessions¶
- Status bar items can open the file and line number most recently read or written by the agent; file tool cards in the Web UI have an
↗button with consistent behavior (host routePOST /editor-link/open, body{ filePath, line }). - Activity Bar DSH view: live transcript, inline approvals, and a composer that can send/steer/stop a turn.
- Sessions are grouped by DSH workspace and scoped to the current VS Code folder; archived and blank sessions are hidden, and switching folders re-scopes the list.
- The sidebar allows switching the session’s model, reasoning effort, and permission preset; after a turn ends, the composer can predict the next message (Enter to cancel,
Tabto accept,↻to re-roll,Escto close). - You can open the full DSH Web UI tab within VS Code using an authenticated URL.
Bridging Mechanism (For Troubleshooting)¶
- The Host plugin listens on ports 7410–7419 on loopback addresses and writes a discovery file
~/.dsh/editor-link/<pid>.json(permission 0600), containing the port and token. - The extension reads the discovery file, maintains a JSON-RPC 2.0 connection for each DSH process, and handles
approval/request,user-questions/request. - The browser half subscribes to events (like
composer.insert,editor/reveal) viaGET /editor-link/events(SSE), coordinating with the extension.
Environment and Dependencies¶
| Component | Requirement |
|---|---|
| DSH | Verified with 0.2.0-rc.2, 0.2.1-rc.1, 0.2.1-rc.2 |
| VS Code | 1.85 and above |
| Node | 20 and above (plugin side) |
Installation and Activation¶
Installation consists of two steps: the DSH plugin and the VS Code extension; installing only the npm package will not automatically load the profile bundle.
1. Install DSH Plugin¶
GUI: Open Plugins → Add plugin → Paste dsh-editor-link → Install.
CLI (command from original source):
dsh plugin --profile desktop add dsh-editor-link
Note: The CLI only installs the package and does not register the profile bundle; you need to manually append dsh-editor-link to dsh.profile.bundles in ~/.dsh/profiles/<profile>/package.json. GUI installation completes the registration for you.
2. Install VS Code Extension¶
Install from Marketplace:
code --install-extension ferrisching.dsh-link
For offline use, download dsh-editor-link-extension-<version>.vsix from Releases, then run:
code --install-extension <file>.vsix --force
After reloading the VS Code window, the DSH view will appear in the Activity Bar.
Typical Usage¶
The shortest path provided in the README is as follows.
- Start DSH. The bridge connects automatically; after the agent touches a file for the first time, the relevant status bar items will appear.
- Open the Activity Bar DSH view. Sessions will load the DSH workspace “containing the current VS Code folder”.
- Ask a question in the composer. When a tool requires permission, answer in the VS Code notification—the corresponding card on the Web UI will disappear synchronously.
- When file context is needed, mention the currently open file (via
ide_context); or select code and run DSH Link: Send Selection to Composer.
Common commands:
| Command | Function |
|---|---|
DSH Link: Send Selection to Composer |
Push selection to composer |
DSH Link: Open Last File Touched by the Agent |
Jump to the file most recently read/written by the agent |
DSH Link: Open Active Session in Browser |
Open the DSH Web UI for the current session in the system browser |
The sidebar toolbar also provides model, effort, and permission selectors, plus a + menu (/goal, /plan, /feedback, /compact, /export, etc.) and send/stop controls.
Use Cases and Notes¶
Suitable for developers who are already using the DSH desktop profile, code in VS Code daily, and want to reduce the switching between “approving permissions in the browser” and “pasting file context manually”.
Security and Cost (README Security and cost): The bridge only listens on loopback, requires the token from the discovery file for every request, and the token rotates after DSH restarts; the project declares no telemetry and no outbound network calls. It is still recommended to read the source code and the MIT license yourself before use.
Known limitations are subject to the Known limitations section in the repository README; the truncated material does not fully include this section, so you can read the full text on GitHub before installation.
The plugin runs under DSH process permissions; the community directory skillhub.cn is an independent site and has no official affiliation with DeepSeek / High-Flyer, so it should not be treated as an official app store.
Conclusion¶
dsh-editor-link consolidates DSH and VS Code into a single local authenticated channel: approvals, questions, IDE context, sending selections to the composer, and file navigation can all be completed on the editor side while maintaining the same set of session states as the Web UI.
- Directory Page: https://www.skillhub.cn/plugins/ferrisching/dsh-editor-link
- Source Code and Documentation: https://github.com/ferrisching/dsh-editor-link