DeepSeek Harness Plugin: kaijia323/dsh-plugin-jev

Preface

DeepSeek Harness (DSH) is a model inference platform centered on plugins. When integrating the System One decision model (Jev) into DSH, developers face a structural challenge: Jev itself does not generate text. Instead, it receives state and typed questions, returning typed answers and confidence levels. Its interface is neither Chat Completions nor Anthropic Messages. This implies it cannot serve as a primary model and must be mounted as a tool.

kaijia323/dsh-plugin-jev solves this problem. It registers TypeSafe Jev as a native DSH tool named jev_decide, integrates with DSH’s mandatory JSON Schema subset via a zero-dependency approach, and automatically declares trigger policies.

Core Features

Native Tool Registration

The plugin registers a native tool named jev_decide via ctx.tools.register. This tool conforms to DSH’s mandatory JSON Schema subset (JsonSchemaNode) and bypasses the MCP registration path, registering directly into the tool catalog.

Zero-Dependency Implementation

The plugin does not rely on any @deepseek-ai packages, utilizing only the context API provided by DSH for registration. This ensures the plugin remains lightweight and independent.

Trigger Policy Declaration

To address the historical issue where “the plugin is installed and the tool is callable, but no one tells the model when to use it,” the plugin declares trigger policies at two levels:

  1. Side A (Tool Description): The jev_decide.description begins with the policy, encompassing usage, default trigger criteria, four exemptions, seven decision moments, budget limits, and the return shape.
  2. Side B (Resident Policy Segment): A prompt section named jev-decision-policy is registered via ctx.inject(['systemPrompt'], cb). This segment takes effect globally for every session in the web profile, eliminating the need for the model to actively “discover” the tool. Both are assembled from the same set of POLICY constants, ensuring consistency.

TypeSafe API Transport

The plugin supports only the official TypeSafe API as the transport layer. The configuration item transport must be set to typesafe. The plugin normalizes request parameters (state, questions) into noul types and calls the official endpoint POST {baseURL}/v1/systemone.

Installation and Activation

The plugin utilizes a bundle-layer installation mode. The package declares dsh.bundle.patch, activating automatically upon installation.

  1. Install Plugin:
    dsh plugin --profile web add /path/to/dsh-plugin-jev
  1. Configure Parameters:
    The plugin supports configuring transport type, keys, timeout, and other parameters. Configuration items include transport, baseURL, model, apiKeyEnv, keyFile, timeoutMs, toolTimeoutMs, retries, maxStateBytes, maxQuestions, and policySection.

Notes:
* Configuration Conflict: Before installation, you must delete any existing lines with the same ID (tool-jev) in the configuration layer to prevent duplicate ID entries.
* Service Restart: After installing via CLI (dsh plugin --profile web add), you must restart the dsh web process for changes to take effect, as the installation operation does not update running sessions in real-time.

Use Cases and Description

This plugin is suitable for scenarios requiring the embedding of System One decision logic into DSH workflows. Since Jev does not generate text, it is primarily used for decision-making tasks that require typed answers and confidence calibration.

  • Return Type: The plugin does not generate text; it returns typed answers and calibrated confidence levels.
  • Policy Activation: The Side B policy segment takes effect globally across every session in the web profile.
  • Static Policy: The policy is static text and does not initiate network requests.

Conclusion

kaijia323/dsh-plugin-jev provides a standard pathway for integrating TypeSafe Jev into DeepSeek Harness. Through native tool registration and automatic policy declaration, it resolves the integration challenges of decision models within the LLM Seam.

GitHub Repository | Plugin Directory

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

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

Xiaoye