Preface¶
In the development practice of DeepSeek Harness (DSH), agents often need to process structured JSON data. Whether extracting specific fields from API responses or dynamically modifying data structures within a session, directly manipulating strings is often inefficient and error-prone. dsh–query provides standardized JSON path query and set capabilities, helping developers manage data more safely and efficiently.
Plugin Introduction¶
dsh–query is a DSH plugin implemented in pure Node.js, without relying on external network services. It focuses on solving JSON data path query and assignment problems, is maintained by developer istone, and follows the MIT license. The plugin registers specific tools to integrate JSON path operation capabilities into DSH sessions.
Core Features¶
- JSON Path Query: Supports extracting data based on JSON path expressions.
- JSON Path Set: Supports modifying or adding data based on JSON paths.
Installation and Activation¶
Run the following command in the terminal to install the plugin:
dsh plugin add dsh--query
After installation, add "dsh--query" to the dsh.profile.bundles field in the profile’s package.json file.
The plugin depends on the following environment:
* @deepseek-ai/cordis (^4.0.1)
* @deepseek-ai/dsh-tools (>=0.1.0-rc.6)
Typical Usage¶
After installation, you can invoke the tools registered by the plugin in DSH sessions. The specific usage depends on the interface definitions of the tools.
Applicable Scenarios and Notes¶
This plugin is suitable for scenarios that require complex JSON data processing in a DSH context.
Security Notice: Installing the plugin runs third-party code on your local machine. Please review the source code before installing.
Conclusion¶
dsh–query provides a lightweight JSON data processing solution for the DSH ecosystem. Through path query and set features, it can simplify data interaction logic.
- Plugin directory: https://www.skillhub.cn/plugins/uckkk/dsh–query
- Source repository: https://github.com/uckkk/dsh-json-query