dsh-cursorlike-sidebar: File, Edit, and Agent Change Review in the DSH Right Sidebar

Preface

When collaborating with agents in DeepSeek Harness (DSH), the common workflow is: conversations happen in the host window, while the file tree, editor, terminal, and Git diffs are scattered across external IDE or terminal windows. Bringing context into the session requires copying paths and pasting code snippets, and after the agent finishes editing files, you have to switch out to compare the diff line by line.

dsh-cursorlike-sidebar is a client-side plugin for DSH that embeds file browsing, code editing, Markdown preview, Git diff, native terminal, side conversations, and split panes into DSH’s native right sidebar, with themes that follow DSH’s switching. Maintained by Oxygen-Wang, it is categorized as a client-side plugin in the SkillHub community directory; it has no affiliation with Cursor / Anysphere and is an independent DSH ecosystem plugin.

The sections below cover the plugin’s positioning, core capabilities, installation steps, and typical usage.

What Is This

dsh-cursorlike-sidebar (npm package name dsh-cursorlike-sidebar) addresses the problem of letting conversations and project files collaborate within the same workspace—browse files, bring code into chat, and review the agent’s edit results inside DSH without repeatedly switching to external tools.

The README states: the plugin evolves from Better Sidebar v0.28.0, references dsh-diff-approval for diff review interaction changes, and is released under the MIT license. Before installing, you must disable the original dsh-better-sidebar—both cannot be enabled simultaneously.

Core Features

Three File Browsing Views

The same workspace can switch between views via the file panel toolbar:

  1. Desktop icon grid (default): arranged in three columns, the first cell navigates to the parent directory; suitable for intuitive browsing.
  2. Tree list: expands directory hierarchies, suitable for locating source code.
  3. Miller multi-column: expands directories side by side level by level, suitable for deep paths.

Right-click to open files, create new tabs, open in the sidebar, add references, or copy paths; supports multi-select, copy/cut/paste, rename, delete, and operation history. In the grid, Ctrl + scroll wheel adjusts icon size (24–160px); the tree view supports 10–32px icon scaling.

Ctrl+L and Drag-Drop: Bring Context into Conversation

Select a file or code and press Ctrl+L to add the context to the current conversation:

  • File browser: adds a file reference.
  • Code editor: if there is a selection, adds the line range; if no selection, adds the current line.
  • Markdown preview: selected text maps to source code line numbers.

Reference example: @src/app.ts line 12-18. You can also drag file references or selected code into the chat input area.

Root .ignore Hides Unrelated Files

Create a .ignore file in the workspace root with gitignore-style glob rules; only root-level files are read, and ! negation is not supported. You can also drag files or folders onto the .ignore eye icon in the toolbar to automatically append rules. Hiding only affects display; files on disk are not deleted.

node_modules
.cache
*.log

Review Agent Changes in Blocks

  • The native “Round N Changes” page defaults to a single-column comparison and can switch to a left-right split; consecutive changed lines are merged into a single block, supporting agree/disagree, agree all/disagree all, Ctrl+K / Ctrl+J / Ctrl+Z.
  • Editor inline display shows agent edits: keep / revert per hunk, with the option to automatically jump to the next location.
  • The “Changes” page reviews this round’s write/edit operations in blocks; rejecting a change writes it back to disk immediately. When the complete old content cannot be reconstructed or the disk does not match, the diff becomes read-only with an explanation.

Unhandled editor review states are saved locally per session and file, and can be restored after restart if the file still matches the pending review version.

Editing, Terminal, Split Panes, and Optional Integration

The plugin provides code editing, Markdown preview, search, Git diff, native terminal, and side conversations; split panes facilitate side-by-side viewing. If dsh-diff-approval is installed, it also provides right sidebar dock integration and Keep/Revert shortcut forwarding.

The plugin preserves DSH’s original Ctrl+B behavior; no additional desktop software or Python runtime is required, and it does not include PDF dependencies.

Installation and Activation

Compatible with DSH 0.2.1-rc.1 and compatible versions. The currently published npm version is 0.28.0-cursorlike.4-beta.1 (latest points to this beta). After installation or update, you must fully exit and restart DSH.

Do first: Disable dsh-better-sidebar.

Then: Choose one of the following methods based on your profile (Web users replace desktop with web).

Install or update to latest via npm (recommended):

dsh plugin --profile desktop add dsh-cursorlike-sidebar

Pin a specific version:

dsh plugin --profile desktop add dsh-cursorlike-sidebar@0.28.0-cursorlike.4-beta.1

You can also enter the package name dsh-cursorlike-sidebar in DSH’s “Add Plugin”. Only npm / GitHub sources can be checked for updates by the DSH Plugin Market; local link: and pinned tag tarballs will not auto-update.

Typical Usage

1. Reference Selected Code into a Session

Open the target file in the right sidebar, select a line range, and press Ctrl+L. The input area will show an @file reference with a line number suffix. Then just ask the agent your question—no need to manually copy paths.

2. Review One Round of Agent Changes

After the agent finishes editing, use ↑ / ↓ in the “Round N Changes” or “Changes” page to jump between change blocks, Ctrl+K to agree, Ctrl+J to disagree; use Ctrl+Z to undo the last decision if needed. After all changes are processed, the editor returns to normal view.

3. Narrow Down File Tree Noise

Create a .ignore in the project root with entries like node_modules, build directories, or *.log, then refresh the file browser (F5) to keep only tree nodes relevant to the current task.

Common Shortcuts (Context-Dependent on Focus)

Shortcut Action
Ctrl+L Add file, selection, or current line to the conversation
Ctrl+K / Ctrl+J Agree / disagree with the current change block
Ctrl+Alt+K / Ctrl+Alt+J Agree all / disagree all
F5 Refresh the file browser

For the complete list, see GitHub README · Shortcuts.

Use Cases and Notes

Who it’s for: Developers who want to complete “view files → reference context → run terminal → review agent diff” within a single DSH window; especially those who need Miller columns, Markdown preview line number references, or split-pane side conversations.

Permissions and security: DSH plugins access the workspace and execute related operations with the current DSH process permissions. Before installing, you should read the repository source code and LICENSE to confirm compliance with your team’s policies.

Ecosystem notes: DSH follows the “everything is a plugin” philosophy; the SkillHub plugin directory is a community site with no official affiliation with DeepSeek / High-Flyer.

Compared to similar plugins: This plugin replaces and extends the use cases of dsh-better-sidebar; if dsh-diff-approval is already installed, you get optional dock and shortcut integration, but it is not required.

Closing

Through the steps above, dsh-cursorlike-sidebar brings a Cursor-style right-side workspace into DSH: file tree, editing, Git, terminal, and Ctrl+L references all happen in the same sidebar, and agent changes can be reviewed block by block within the host.

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

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

Xiaoye