Preface¶
In the development of DeepSeek Harness, the Agent often sends the same requests for every turn. Whether it’s a simple variable rename or complex race condition debugging, everything gets sent to the same model with the same level of reasoning effort. This unified approach results in unnecessary cost waste.
dsh-plugin-jev-router solves this problem by introducing a Jev choice question that decides the specific model and reasoning effort for each conversation turn.
What Is This¶
This is a DeepSeek Harness plugin maintained by YYTbit. It dynamically selects the most suitable model and reasoning effort for each conversation turn based on Jev’s routing decisions.
Core Features¶
The plugin provides the following capabilities:
- Per-turn routing: Dynamically selects the model and reasoning effort based on the specific content of each turn.
- Jev decisioning: Determines the routing target for each turn via a Jev choice question.
- Escalation mode: For difficult turns (such as stack traces, errors, or test failures).
- Fast path: For simple operations (read-only verbs).
- Sticky retention: Maintains the same routing decision across consecutive turns.
- Receipt logging: Generates receipts for replay and analysis without needing to re-invoke the model.
Installation and Activation¶
To install this plugin, run the following command:
dsh plugin --profile your-profile add dsh-plugin-jev-router
After installation, you need to configure Jev’s API Key and URL:
export JEV_API_KEY=...
export JEV_API_URL=https://api.typesafe.ai/v1/systemone
Typical Usage¶
In the configuration file, define the candidate list via YAML. For example:
config:
candidates:
- { model: deepseek-v4-fast, effort: low, costPerMTokIn: 0.07, costPerMTokOut: 0.14 }
- { model: deepseek-reasoner, effort: high, costPerMTokIn: 0.55, costPerMTokOut: 2.19 }
defaultCandidate: deepseek-reasoner@high
minConfidence: 0.5
stickyTurns: 1
When testing or debugging the Jev routing path, you can set stickyTurns to 0.
Use Cases and Notes¶
- This plugin relies on a Jev API Key and endpoint to function properly.
- Receipts only store summary hashes and byte sizes, not full text, making them suitable for log sharing and analysis without exposing conversation content.
- The plugin is written in TypeScript and licensed under MIT.
- Since the plugin runs with the current dsh process permissions, you should review the source code and license before installation.
Conclusion¶
This plugin implements per-turn model routing through Jev’s single choice question, aiming to optimize costs and improve inference efficiency. For more configuration details and source code, please refer to the plugin directory page or the GitHub repository.