dsh-system1: A DSH plugin delivering typed decision services for DeepSeek Harness
exoticknight/dsh-system1
A typed System One decision service for DeepSeek Harness plugins: consumer plugins call ctx.system1.decide() to get probability, choice and score results.
dsh-system1 is a typed decision service for DeepSeek Harness that packages structured model questioning into an interface consumer plugins can call directly. It removes the repetitive work of hand-building prompts, validating requests and responses, and managing timeouts or cancellation, so plugins receive probabilistic decision results and choose their own actions. The service offers the noul, choice, and score primitives, per-question results, cancellation and timeout control, and a bundled TypeSafe/Jev provider that others can replace via the public contract.
How to Install
dsh plugin --profile web add github:exoticknight/dsh-system1- Category
- Skills & Agents
- Platform
- DSH Plugin
- Author
- exoticknight
- Distribution
- Plugin
dsh-system1 Key Features
dsh-system1 Repo Summary
What Does It Do?
System One is a DSH plugin for DeepSeek Harness that turns structured model decisions into a typed service consumer plugins can call directly. It removes the need to hand-build prompts, validate requests and responses, and manage timeouts or cancellation yourself, letting you get probabilistic decision results inside the harness and choose your own actions from them. A built-in TypeSafe/Jev provider ships with it, while other providers can implement the same public contract.
Core Features
- Three decision primitives:
noulreturns the probability that a proposition is true,choicereturns a candidate key plus the full probability distribution, andscorereturns an expected level with probabilities ordered by criteria. - Request and response validation: malformed call structures throw an input error, while runtime failures are reported per question with an error status instead of failing silently.
- Lifecycle control: cancellation, timeouts, and execution metadata are supported, with an 800 ms total timeout by default that can be tuned to backend latency.
- Provider registration: the bundled TypeSafe provider works out of the box with a default model and provider id, and alternative providers can follow the public contract.
- Type augmentation: consumer plugins that import the package's type augmentation get full typing on
ctx.system1.decide()inputs and results.
How to Use This Plugin?
After enabling it in DSH, a consumer plugin declares the system1 injection and imports the type augmentation, then calls ctx.system1.decide() with a state description and multiple questions such as refund intent, topic choice, and urgency scoring. Branch on each question's status to handle results; because these are model outputs, your plugin picks its own thresholds and actions. To adjust behavior, tune the timeout setting and set the provider's required key in the DSH process environment. The plugin is maintained by exoticknight under the Apache-2.0 license and written in TypeScript.
How to Troubleshoot This Plugin?
A malformed call structure throws an input error, so first check that the state and question fields match the contract. Runtime failures do not abort the whole call; they come back per question with an error status, so inspect the error message for each affected question. If requests time out, follow the official guidance and raise the timeout setting to match backend latency; if the provider is unavailable, confirm the required key is set in the DSH process environment.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: exoticknight/dsh-system1. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
DSH Plugin FAQ
