Introduction¶
The default workspace of DeepSeek Harness is typically bound to a single root directory. In scenarios involving cross-repository collaboration, shared public libraries, or read-only specification references, this limitation leads to fragmented agent context, making it difficult to fully understand the project structure. The dsh-plugin-addir plugin addresses this issue by supporting the association of multiple external directories under the current workspace, combined with graphical management, context injection, and read-only protection.
Plugin Overview¶
dsh-plugin-addir is a DeepSeek Harness plugin that supports multi-root workspaces and dynamic context injection, maintained by keatsyh. It allows users to mount multiple additional folders to the workspace and configure aliases, descriptions, and read-only flags, enabling the agent to collaborate across directories.
Core Features¶
- Multi-root Association & Graphical Management: Supports mounting multiple additional folders to any workspace and configuring aliases and descriptions for each directory.
- Dynamic Context Injection: Automatically injects the currently active directory tree into the LLM context during each conversation turn, supporting path shorthand via aliases (e.g.,
[backend]/src/app.ts). - Fine-grained Read-only Protection: Directories marked as read-only will have write/edit operations intercepted by the file tool guard, while read/grep remain allowed.
- Cross-session Persistence: Associations are isolated by the workspace root path and persisted to local storage, automatically restoring after application restart.
- Built-in Agent Tools: Provides
addir_list,addir_add, andaddir_removetools, supporting autonomous directory management by the agent.
Installation and Activation¶
- Install Plugin: Run the following command under the Web Profile to install.
dsh plugin --profile web add dsh-plugin-addir
- Desktop Activation: For desktop clients, you must completely exit the application after installation for it to take effect.
Configuration and Usage¶
After installing the plugin, relevant features must be enabled in the plugin settings.
- Enable Tools: Set
enableToolstotrue; the agent will gain permissions foraddir_*tools, allowing it to add or remove directories autonomously. - Directory Management: Click “…” in the workspace list and select “Edit”, click “Add Folder” to select a local directory, set an alias (e.g.,
backend), and save. - Typical Instruction Example:
> Please read the routing definitions under the [backend] directory and generate corresponding API request functions in the current frontend project.
Notes¶
- Scope of Read-only Protection: Read-only protection only intercepts write/edit operations and allows read/grep, without restricting code reading or searching.
- Alias Isolation: Alias storage is isolated between different workspaces.
- Permission Control: Once
enableToolsis disabled, the agent will no longer possessaddir_*tools, allowing only manual management by the user in the UI.
Ecosystem Background¶
The DSH philosophy is “Everything is a plugin”. This plugin is included in the community directory (https://www.skillhub.cn/plugins/keatsyh/dsh-plugin-addir) and has no official affiliation with DeepSeek or High-Flyer.