Overview¶
DeepSeek Harness (DSH) extends functionality through a plugin mechanism. In Windows environments, developers often run tasks via WSL. During execution, an agent may sometimes have difficulty distinguishing between the “default WSL distribution” and the “distribution of the current session,” which can lead to path resolution errors. The dsh-wsl-distro plugin provides a standardized solution for retrieving WSL distribution information.
Plugin Overview¶
dsh-wsl-distro is an online tool plugin for DeepSeek Harness, maintained by user 173787247. It primarily addresses the problem of retrieving environment information in WSL environments.
Core Features¶
-
Current Distribution and System Information
The plugin can retrieve the specific name of the current WSL distribution and itsos-releaseinformation for environment detection. -
Structured
wsl -l -vOutput
It structurally processes the output ofwsl -l -v, focusing on distinguishing between two states:
- Default distribution: The default WSL distribution configured on the system.
- Session distribution: The WSL distribution where the agent is currently operating. -
UNC Path Safety
The plugin includes built-in UNC path safety mechanisms to prevent errors when handling interaction paths between Windows and WSL.
Installation and Activation¶
Install the plugin via the DSH CLI. Run the following command to add the plugin to the specified configuration profile:
dsh plugin --profile web add github:173787247/dsh-wsl-distro
Typical Usage¶
After installation, you can call the relevant interfaces in tasks or scripts. For example, in a testing scenario:
npm test
In addition, when configuring the model ID, you can use the ID from the example (Note: Configuring the Cloud Flash model ID is handled by the user; this plugin does not include this configuration):
# ~/.dsh/settings.yaml 或 llm-deepseek 配置段
model_id: deepseek-flash
Notes¶
-
Version Requirements
Ensure that the DSH version is 0.1.2 or later.
Ensure that the Node.js version in the runtime environment is 18 or later. -
License
This plugin is licensed under the MIT License. -
Model Configuration
The Cloud Flash model ID is not configured by this plugin and must be specified in the user-side settings file.
Conclusion¶
dsh-wsl-distro provides a standardized interface for retrieving WSL distribution facts in a DSH environment. For agent developers who need to run tasks in WSL, this tool helps avoid path resolution risks.
- Catalog page: https://www.skillhub.cn/plugins/173787247/dsh-wsl-distro
- Source code: https://github.com/173787247/dsh-wsl-distro