Introduction

DeepSeek Harness (DSH) agents usually run in a WSL environment, which isolates them from the Windows environment. When an agent needs to copy WSL paths, commands, or code snippets into Windows applications (such as Notepad or a browser), it usually requires manual handling, which is inefficient. The dsh-wsl-clipboard plugin solves this interaction bottleneck by calling PowerShell inside WSL to read from and write to the Windows clipboard.

Plugin Overview

This is a DeepSeek Harness tool named wsl_clipboard. It is part of the dsh-wsl-kit ecosystem and is released under the MIT license.

Features

The tool mainly provides the following capabilities:

  • Clipboard read/write: Allows DSH agents to operate the Windows clipboard from within WSL.
  • Action parameter: Supports two actions: get (read clipboard content) and set (write clipboard content).
  • Text handling: Supports UTF-8 text when writing to the clipboard.

Installation and Activation

The installation process has two steps.

  1. Run the installation command:
    dsh plugin --profile web add github:173787247/dsh-wsl-clipboard
  1. After installation, restart dsh web. In a new session, wsl_clipboard should appear in the tool list.

Typical Usage

When using this tool, specify the action and content through parameters.

  • Read the clipboard:
    Set action=get.
  • Write to the clipboard:
    Set action=set and provide the text parameter with the UTF-8 text to place on the clipboard.

Configuration and Limits

The tool timeout and text length limit can be adjusted in the configuration file.

- id: dsh-wsl-clipboard
  name: dsh-wsl-clipboard
  config:
    timeoutMs: 15000
    maxChars: 100000
  • timeoutMs: Tool execution timeout. The default is 15000 milliseconds.
  • maxChars: Maximum clipboard text length. The default is 100000 characters. Text longer than this limit will be truncated.

Notes

  • Version requirement: Ensure DSH version >= 0.1.2.
  • Security: Do not place sensitive information (such as passwords) on the clipboard unless explicitly requested by the user.
  • Ecosystem membership: This plugin is part of the dsh-wsl-kit suite. Check the source code and license before installation.