AI Agent Hub
Back to plugins
🖥️

dsh-editor-selection

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install yingzaicc/dsh-editor-selection

Paste the following prompt into your AI chat to install this plugin:

Install the plugin in DeepSeek Harness using the command `dsh plugin install yingzaicc/dsh-editor-selection`, with the full source address at https://github.com/yingzaicc/dsh-editor-selection.

About this plugin

When programming, we often need to explain code or seek assistance from AI helpers, but manually copying and pasting code snippets is tedious and can lose context. The dsh-editor-selection plugin addresses this pain point by automatically detecting the code region you have selected in the editor. Its core capability is to capture the absolute path and line range of the selection in real-time, injecting this information into DSH conversations through a lightweight mechanism without dumping file contents, thereby keeping conversations concise and ensuring the AI focuses on the current code. Moreover, the plugin offers privacy controls like an eye toggle and multi-window compatibility, making it ideal for developers who frequently use DSH for code assistance, especially VS Code users, as it enhances the intelligence and efficiency of AI interactions.

Use Cases

  • After selecting code in the editor, DSH conversation automatically focuses on that area
  • Right-click selected code and choose 'Explain Code' for DSH to automatically start explaining
  • In multi-window setups, each window's selection is independently passed to DSH

Best For

  • Developers who frequently use DSH for code assistance
  • Programmers using VS Code or other supported editors
  • Software engineers looking to enhance AI conversation efficiency