In the development workflow of DeepSeek Harness (DSH), structurally validating input data or tool return results is key to ensuring controllable agent behavior. Manually writing validation logic increases maintenance costs and is prone to introducing errors. The dsh--schema plugin aims to provide a lightweight solution by constraining data formats through the JSON Schema specification.

This is a DSH plugin maintained by uckkk, focused on JSON Schema validation. It is a pure Node implementation and does not depend on the network or external services.

Core Features

  1. JSON Schema Validation: Supports format checking of input data against the JSON Schema standard.
  2. Local Execution: All logic runs locally, with no network requests and no external service dependencies.

Installation and Enablement

  • Installation command:
    dsh plugin add dsh--schema
  • Enablement configuration: After installation, configure dsh.profile.bundles in the profile’s package.json and add "dsh--schema".

Typical Usage

After installation and enablement in the configuration, you can use it by directly invoking the tools registered by the plugin in a DSH session.

Use Cases and Notes

  • Use Cases: Use it when you need to enforce that tool return results conform to a specific JSON structure, or when validating the JSON format of user input.
  • Notes: Installing it means running third-party code on your local machine. Please review the source code yourself to ensure it meets security and licensing requirements.

The plugin provides a local validation capability without network interactions. For more details, refer to the GitHub repository.