dsh-zspace: Native DeepSeek Harness Tool Plugin for JiSpace NAS

Preface

The DeepSeek Harness (DSH) plugin ecosystem brings flexibility to building agents. For developers using Z Space (ZSpace) NAS, traditional integration solutions are often constrained by network environments (e.g., WebDAV requiring the same network segment) or require running additional Python scripts. The dsh-zspace plugin integrates the NAS directly as a native agent tool. It does not rely on SSH, WebDAV, or Python, solving issues related to cross-network access and local permission isolation.

Plugin Introduction

dsh-zspace is a DeepSeek Harness plugin maintained by 439436269-ctrl. It transforms the NAS into a native tool for the agent — accessible across networks without requiring the same LAN, WebDAV, SSH, or Python. Authentication directly reuses the login session of the Z Space desktop client; as long as the desktop client is online, the service is available.

Installation and Activation

  1. Install the plugin using npm:
dsh plugin --profile desktop add dsh-zspace@latest
  1. After installation, restart DeepSeek Harness to load the new tools.
  2. Prerequisites:
    - The Z Space desktop client is installed, logged in, and running.
    - The account has permissions for the target space (Personal Space / Public Space).
    - No ports need to be opened on the NAS, nor is DDNS required.

Core Functions

The plugin provides the following tool capabilities:

Tool Function
zspace_status Liveness check: verifies the current channel (Direct/Relay), account, storage pool capacity, etc.
zspace_ls List directory: supports recursion and limits, automatically handling the NAS single-page limit of 50 items.
zspace_stat Metadata for a single file/directory (size, modification/creation time).
zspace_find Search by name: searches within the directory tree (case-insensitive).
zspace_read Read text files (default limit 256 KB).
zspace_download Download files locally.
zspace_upload Upload files to NAS.
zspace_write Write text files to NAS (Direct write).
zspace_mkdir Create directory.
zspace_rename Rename.
zspace_move Move to another directory.
zspace_copy Copy.
zspace_remove Delete file.

Typical Usage

Path Syntax

Paths support multiple formats:
- "": Personal space root.
- home:相册: 相册 under the personal space.
- public:公共分组/skills: Path under the public space.
- docs/2026: Relative to the personal space root.
- /<pool>/my/data/x.txt: NAS absolute path.

Delete Operations

Deleting files requires explicitly passing confirm: true, and the file will be moved to the NAS recycle bin.

Environment Variables (Direct Connection Mode)

To enable direct WebDAV connection on the same network, you can set environment variables:
- ZS_WEBDAV_URL: e.g., http://<nas-ip>:5005/
- ZS_WEBDAV_USER: NAS account
- ZS_WEBDAV_PASSWORD: Password

Use Cases and Notes

This plugin does not store any credentials; it reads the token on the fly from the desktop client’s vuex.json for every call. This means:
- It works on any network, provided the Z Space desktop client is online on the machine running DSH.
- It becomes invalid immediately if the desktop client logs out.

Known Limitations:
- Z Space has no official public API; this plugin utilizes community-organized desktop client interfaces, which may change with major client updates.
- zspace_find uses restricted directory traversal rather than web interfaces.
- A single list operation returns a maximum of 50 items.

Brief Conclusion

By reusing the relay capabilities of the desktop client, dsh-zspace allows agents to operate the NAS file system seamlessly, eliminating the hassle of configuring WebDAV or SSH. For related code and documentation, please refer to GitHub: https://github.com/439436269-ctrl/dsh-zspace.

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

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

Xiaoye