dsh-aide: Adding a VS Code-style Local IDE Layer to DeepSeek Harness

Preface

In DeepSeek Harness (DSH), when developing agents or plugins, the common practice is to conduct conversations within DSH, but switch to a local editor or another window for code modification, repository searching, Git operations, or opening terminals. This requires moving context back and forth between tools, and it is difficult to align workspace state with the current session.

The community plugin dsh-aide (npm package name dsh-aide, repository PrismScopes/dsh-aide) integrates the explorer, Monaco editor, search, Git, terminal, and the right-hand DSH chat into a unified VS Code-style interface. It belongs to the client class of plugins in the DSH ecosystem and is maintained by PrismScopes. DSH itself adheres to the philosophy that “everything is a plugin”; community directories (such as entries on SkillHub) are aggregated by third parties and have no official affiliation with DeepSeek / High-Flyer.

What is this

AIDE = AI + IDE: It provides a local development workbench within the DSH host, rather than installing a separate desktop IDE.

The plugin mounts via DSH’s shell.overlay, main, sidebar.panellist, and settings.section extension points; main and sidebar.panellist are registered as a pair, can switch between each other, and do not replace or uninstall ui-layout. The color scheme follows the DSH theme, and the right side directly reuses DSH conversation capabilities.

The current npm version is 0.9.3 (MIT License). package.json declares compatibility with DSH 0.2.1-rc.2; on-demand previewing of PDF / Word additionally requires DSH 0.2.1-rc.2 or higher (client require.async on-demand chunk).

Core Features

The capabilities listed in the README are described below by module to help you determine if you need to install it.

Files, Editing & Preview

  • Lazy-loaded directory tree: create, upload, drag-and-drop, rename, delete, and display Git status.
  • Monaco multi-tab: dirty state, atomic save, version validation, and conflict prompts; external changes are pushed via WebSocket.
  • Direct opening of text, Markdown, images, PDF, and Word; Markdown supports source code, outline, and relative links; PDF supports page turning and zooming, DOCX can be rendered, and DOC/ODT can be downloaded for local opening.

Search & Replace

Based on @vscode/ripgrep, supporting case sensitivity, whole words, regex, and path filtering; results are grouped by file with highlighted hits. Supports single/global replace and case preservation; F4 / Shift+F4 jumps between results; previous search criteria are retained across sessions.

Source Control

Covers staging, unstage, discard, commit, branches, diffs, and commit files; the panel menu structure is similar to VS Code (view and sort, commit, changes, pull/push/sync, etc.). The Commit Graph opens in a separate editor tab (icon and interaction reference the Git Graph extension), supporting commit details, comparison, branch filtering, checkout/cherry-pick/reset, etc. Git operation logs can be viewed in “Show Git Output”.

Terminal & Output

Terminal based on node-pty and xterm: up to 8 sessions, supporting rename, split screen, and ANSI; the host can pre-warm the default shell when the panel is opened (can be disabled via environment variable DWV_TERMINAL_PREWARM=0). There is also a Output view at the bottom with the same structure as VS Code (language services, Git, etc. channels).

Language Services & Inline Completion

Built-in TypeScript/JavaScript language services (reads tsconfig.json, workspace node_modules types), and automatically discovers common LSPs on the PATH (such as pyright, pylsp, rust-analyzer, gopls, clangd, etc.); custom servers can also be added via settings files. The editor supports go to definition, references, rename, symbols, quick fixes, hover, and completion; the Problems panel and F8 / Shift+F8 navigate diagnostics.

Inline completion displays ghost text at the cursor, using either configured DSH models or a local fallback; settings are located in “DSH Settings → AIDE → AI Completion”. Changes on the host side require an application restart to take effect (pure client parts only require a page refresh).

Integration with DSH

  • Layout: Left views, bottom terminal, and right DSH chat bar can be displayed independently; drag the divider to adjust width, double-click to restore default.
  • Editor right-click: When text is selected, a DeepSeek Harness submenu appears at the top (Add to Conversation, Explain/Fix/Refactor, Generate Test, etc.); except for “Copy as Quote”, other actions only insert text into the chat input box and do not auto-send.
  • Workspace Restore: Locally saves directory expansion, panel layout, and last opened tabs by workspace root directory; unsaved drafts are not restored across sessions.

Installation & Activation

On a machine with DSH CLI installed, add the plugin for the web profile (command from the repository README):

dsh plugin --profile web add dsh-aide

Terminal Support for First-time Installation

The terminal depends on node-pty. pnpm 11 may intercept its build script, causing dsh plugin ... add to display Ignored build scripts and end in failure; the README explains that the dependency is often already written to the profile at this point, and the build needs to be approved on the machine where DSH is located:

cd ~/.dsh/profiles/web
pnpm approve-builds --all

Restart dsh web after completion. If it still fails to load, you can execute:

cd ~/.dsh/profiles/web
pnpm approve-builds --all && pnpm rebuild node-pty

npm versions released less than 24 hours ago may be blocked by pnpm’s safety waiting period; simply wait and retry.

Typical Usage

After installing and restarting dsh web, enter the AIDE workbench from the DSH sidebar or main entry (main / sidebar.panellist and overlay are registered by the plugin). Common operations can rely on default shortcuts (can be searched, recorded, and restored to default in “DSH Settings → AIDE → Shortcuts”):

Shortcut Action
Ctrl+Shift+E Open Explorer
Ctrl+Shift+F / Ctrl+Shift+H Search / Search and Replace (expanded)
Ctrl+Shift+G Source Control
Ctrl+S Save current file
Ctrl+Alt+B Show or Hide DSH Chat Bar
Ctrl+\`` /Ctrl+Shift+`` Show or Hide Terminal / New Terminal
F12 / Ctrl+click Go to Definition

Details regarding the editor, AI completion, language services, terminal font size, etc., are concentrated in the single-page scrolling groups of DSH Settings → AIDE. To send selected code to the conversation, use the DeepSeek Harness submenu via right-click in the editor, complete the description in the input box, and then send it manually.

Use Cases & Notes

Who it is for: Developers who want to complete the closed loop of “View Repo → Edit Code → Git → Terminal → Ask Model” within the same DSH session; especially those already using DSH to manage workspaces and familiar with VS Code interactions.

Runtime Permissions: The plugin runs with the current DSH process and workspace session, possessing the path and shell capabilities accessible by that session. It is recommended to read the repository source code and the MIT license before installation; the “Security” section of the README explains: paths are restricted within the session’s working directory, saves include version validation, Git/ripgrep are launched as parameter arrays, and the terminal removes some sensitive environment variables.

Other Notes:

  • When closing tabs, batch closing, or returning to the DSH main interface, a confirmation dialog similar to VS Code will pop up for unsaved files; it will not silently leave on save failure.
  • The corresponding client chunk will not be downloaded if PDF/Word is not opened; on outdated DSH versions, these two previews will prompt that on-demand loading is not supported, but other features remain available.
  • Developing this plugin requires Node.js ^22.19 || >=24, pnpm 11.7, system Git, and a native build environment for node-pty (see the “Development” section of the README).

Conclusion

dsh-aide combines the Monaco editor, repository browsing, ripgrep search, visual Git (including commit graph), multi-session terminal, and DSH chat bar into a single workbench. It also adds LSP, inline completion, and workspace layout restoration, reducing the cost of switching between DSH and external IDEs.

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

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

Xiaoye