Introduction¶
When running agent conversations in DSH (DeepSeek Harness), changes often land on workspace files: the model modifies code via write/edit tools, and you only see snippets or diff summaries in the conversation. It is difficult to open trees, jump lines, or compare block-level changes like you would in a local IDE. The native workspace focuses on sessions and may not provide a complete file tree and Monaco-level editing experience within the panel.
dsh-central-editor is a class of client plugins for the DSH desktop workspace: displayed as a “Resource Explorer” panel in the UI, attached next to the chat, loaded on demand with the Monaco kernel, and performing block-by-block review and rollback around conversation turns. The repository is maintained by roninni, license is MIT, package version is 0.3.0 in the docs. The README explicitly marks development incomplete, still testing, do not install randomly; features and interfaces may change, no official version released yet. The following introduces its positioning and capabilities to help you evaluate whether to integrate it after the official release.
What is this¶
The plugin npm package name is dsh-central-editor, categorized as DSH client (dsh.client.platform: web), depends on desktop workspace related injections (e.g., dsh-desktop-workbenches, @deepseek-ai/dsh-client-connection, @deepseek-ai/dsh-api-workspace-files). The server entry point is dsh/index.js, hooked into the plugin tree via cordis.patch.yml; the client build output is lib/client.js and chunked lib/client.monaco.js.
In a nutshell: complete the closed loop of “list directory → open file → edit → review/rollback by turn → jump references between chat and editor” on the side of the conversation, and handle edge cases like large file read-only, binary preview, narrow screen degradation, etc.
Community directory page: SkillHub · roninni/dsh-central-editor. Source code and description: GitHub · roninni/dsh-central-editor. SkillHub and DeepSeek/Huafang have no official affiliation, they are community plugin indices, not official app stores.
Core Features¶
File Tree and Monaco Editor¶
The panel provides a file tree and Monaco editing area. Monaco loads in chunks on demand: the first time a file is opened, it downloads about 2 MB (gzip) of kernel chunks; switching files afterward does not re-download or rebuild the editor instance. Text files over 1 MB fall back to read-only with an explanation; files over 10 MB do not return text within the panel. Binaries do not enter the edit surface: images are previewed as data URLs, others show the first 256 bytes in hexadecimal; symbolic links are rejected when read.
Block-by-Block Review and Rollback¶
The review queue is grouped by conversation turns; the file list shows +N −M and block counts. Clicking into a file allows viewing individual blocks (hunks), and selecting a block uses Monaco diff for comparison. There are two layers of data sources: summaries of workspaceChanges by turn (real-time), and tool/result.meta.diffs in the session transcript (write/edit block details, persisting after restart); when workspaceChanges is not enabled locally, files modified directly by the command line or sub-agent cannot be fully enumerated, and the interface will clearly indicate this.
“Keep” only changes the local review status, does not write to disk; “Rollback” goes through the unique write entry point, only replacing the target hunk, and rejects and refreshes if the version doesn’t match. Keyboard: n/↓ next block, p keep, r rollback, Esc exit.
Chat and Editor Jump¶
a.ts:10 or ./a.ts#L10 in the chat can jump to the corresponding file and line; editor selection can be sent to the chat input box with one click (same selection will not be inserted repeatedly).
Workspace and Session Entry Points¶
In workspace mode, native “New Session / Add Workspace / Workspace Selector” might be taken over by global logic from the desktop workspace plugin, leading to situations like “directory selection has no response”; therefore, the editor toolbar comes with its own workspace dropdown (service.newSession) and “+ Workspace” (service.newWorkspaceSession).
When the host switches workspaces, it might open recentSessions instead of the current session, and the top of the panel will show a hint “This workspace is opening another session”, allowing you to bind nativeLocation back to the current workspace using “Open with the previous session”.
Chat Drawer and Width¶
The drawer is attached to the right side of the workspace panel, default width min(460px, 58%). The left edge can be dragged to adjust (double-click to reset), range approx 240px to “panel width − 40px”; the width is saved in localStorage key dce.chatWidth.v1, preserved across refreshes. The drag process avoids re-rendering the entire UI tree every frame by using the CSS variable --dce-chat-width.
Write Channel and Security¶
The only entry point for disk writing is the server route /api/central-editor/applyPatch: the client only submits patch fragments, the server validates version, path guards, atomic write, rate limiting, and audit (metadata only). Version mismatch returns editor-file/stale and does not silently overwrite. The workspace root is parsed from session.header; if parsing fails, write is rejected.
Installation and Enablement¶
Prerequisites: DSH Desktop, and a version with dsh-desktop-workbenches. The README states the repository has submitted build artifacts lib/, so you can install directly without building locally first (if you modify src/, you need to run npm run build yourself).
The official recommendation is to use the profile installation script (Windows PowerShell example; on Linux/macOS, --profile points to the local DSH web profile path, or specified via the environment variable DSH_PROFILE):
git clone https://github.com/roninni/dsh-central-editor.git
cd dsh-central-editor
node scripts/install-local.mjs --profile "C:\Users\<你>\AppData\Roaming\dsh-desktop\harness\profiles\web"
Explanation of what this step does: the script registers dependencies and pnpm.overrides in the profile’s package.json (link: points to this repo), appends the package name to dsh.profile.bundles, and creates directory links under the profile’s node_modules; it is idempotent and can be run repeatedly. You can first add --dry-run to preview changes; --uninstall to uninstall (it will back up the profile’s package.json first). After installation, press Ctrl+R in the application window to reload.
Do not concatenate dsh plugin add github:owner/repo based on the plugin name — this installation method is not provided in the docs.
Typical Usage (Inside Panel)¶
- Open the “Resource Explorer” panel in the workspace and select or add a workspace from the toolbar (if the native entry is invalid, use the dropdown inside the panel and “+ Workspace”).
- Open a text file in the file tree; the first opening will pull the Monaco chunk, subsequent file switching should have no extra download.
- When file line number links appear in the chat, click to jump; select code in the editor and use the one-click operation provided by the panel to send the selection to the chat input box.
- After the conversation generates write/edit, view
+N −Mby turn in the review area, view block-by-block diff, perform rollback on unwanted blocks, and keep acceptable ones; after handling all pending blocks, the interface will prompt and exit review mode. - When you need to view the conversation side-by-side, drag the right drawer width; double-click the left edge to reset to the default width.
If you participate in development or modify source code, in the repository root:
npm install
npm run build
This will produce both lib/client.js and lib/client.monaco.js; the host only reads the build artifacts, do not modify lib/ directly to avoid being overwritten by the next build.
Suitable Scenarios and Notes¶
Who is it for: Developers who have already developed in DSH Desktop workspace mode and want to review agent changes side-by-side with the conversation in the same window; scenarios requiring Monaco experience, block-level rollback, and jumping between conversation and files.
Must Note:
- The README is currently in preview 0.3.0, clearly warning not to install randomly in production; please read the source code and MIT license before installing, and understand that the plugin accesses the workspace and disk write interfaces with DSH process permissions.
- The real-time layer of review depends on
workspaceChanges; if not enabled, only the diff in the transcript can be relied upon, which may not be complete. - Narrow screens (≤640px) do not load Monaco, only read-only text preview.
- The installation script example contains
git clone, which is from the upstream README original text; you should only operate this if you trust the maintainer and the license.
Conclusion¶
dsh-central-editor connects the “Resource Explorer” to the side of DSH conversations: Monaco loads on demand, block-level review and single write entry point, mutual pointing between conversation and editor, and panel-recovery entries for workspace session and workspace switching. Please refer to the warnings and version notes in the repository README before the official release.
- Directory page: https://www.skillhub.cn/plugins/roninni/dsh-central-editor
- Repository: https://github.com/roninni/dsh-central-editor