DeepSeek Harness Plugin: dsh-follow-edits

Preface

DeepSeek Harness (DSH) natively provides features such as previewing files in a sidebar, refreshing previews at the end of a turn, and opening files at specified lines. However, during actual agent-driven editing operations, there is currently no direct “follow” feedback. The dsh-follow-edits plugin leverages these existing APIs to automatically open the file in the right-side sidebar, jump to the modified lines, and highlight the differences at the moment an edit occurs, delivering a real-time follow experience similar to Cline.

Plugin Positioning

This is a client-side plugin for DeepSeek Harness (DSH), maintained by user zcr-133. It addresses the problem of “unable to perceive edits immediately when they happen” by highlighting differences in the preview (yellow for additions/modifications, red for deletions) to achieve precise following.

Core Features

  • Real-time Open & Jump: When an editing tool (such as str_replace_editor, write, or edit) is invoked, the sidebar automatically opens the corresponding file and jumps to the modified lines.
  • Difference Highlighting: Modified content is shown in yellow, while deleted content is shown in red.
  • Shell Write Support: Files written via terminal or Shell commands (such as pwsh or bash) will also be opened.
  • Following Strategy:
    • Provides precise following for editing tools (open + jump + highlight).
    • Provides degraded following for Shell commands (open file only, no jump or highlight).

Installation & Activation

Install via the official plugin manager:

plugin_manager  action: install_bundle  target: <absolute_path>

On the desktop client, you can also check via CLI first:

dsh web --patch ./cordis.patch.yml

Once installed, the plugin loads automatically when DSH starts.

Typical Usage

No additional configuration is required after installation. You can run agent tasks as usual, and the plugin will automatically capture editing actions and highlight them. The test command to verify the plugin logic is as follows:

pnpm install && pnpm test

Notes

  • Version Status: The current version is v0.3, with a status of working.
  • Terminal Limitations: Files written via terminal/Shell bypass ctx.fs, making it impossible to generate differences; the plugin only provides the degraded “open file” functionality.
  • Cold Read/Replay: In this scenario, the mapping may be empty.
  • Uninstallation: Uninstall or disable via the Plugin Manager’s set_bundle / remove_bundle commands.

Conclusion

By chaining calls to DSH’s existing native APIs, this plugin enhances the granularity of development feedback without altering core logic. The source code and documentation are available on GitHub.

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

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

Xiaoye