Introduction¶
DeepSeek Harness (DSH) adopts a plugin-based architecture, breaking down model gateways, tools, and orchestration capabilities into pluggable modules. In agent development, a common challenge arises: within the same conversation, there are both decision-making tasks requiring judgment and pure execution work. If a single model handles both, you either waste compute (a weaker model struggling with complex reasoning) or get inconsistent quality (a stronger model being occupied by trivial tasks).
Existing routing solutions either require manually configuring multiple gateways with authentication, or demand an external orchestration layer to determine task type before switching. The JEV Tiered Scheduling plugin takes over in-conversation routing through a single master switch, letting JEV classify each instruction by tier and route it to Kimi (decision tier) or DeepSeek Flash (execution tier) accordingly—eliminating manual configuration and manual tier selection.
What It Is¶
JEV Tiered Scheduling is a plugin for DeepSeek Harness. Its core is a “tiered scheduler”: once the master switch is turned on, each instruction is first classified by JEV, and the task is then routed to the appropriate model. Users do not need to manually select a tier, nor is there a tier selection UI. The plugin does not require additional provider or authentication configuration within DSH—only the JEV classification gateway API key is needed.
Core Features¶
Master Switch & Routing Control¶
- Left sidebar panel: Once opened, the “JEV Tiered Scheduling” panel appears, containing the master switch, base URL / API key / model ID for each gateway, and a connectivity test.
- Composer toggle: A one-click toggle above the chat input field, taking effect immediately.
- Settings → Plugins → Global card: Shares the same configuration page as the panel.
When the master switch is off, the plugin completely steps aside, and all requests revert to DSH’s built-in model gateway.
Execution Mode Selection¶
Once the master switch is on, the “Execution Mode” card in the panel offers two paths:
- Via DSH gateway (default): DSH itself initiates requests to Kimi / DeepSeek, using its already-configured providers and models. The plugin only classifies the tier and forwards the request—it does not hold Kimi/DeepSeek credentials.
- The provider/model for the decision and execution tiers are filled by two dropdowns, sourced from DSH’s currently registered
ctx.llm.listProviders()/listModels(). Select “Refresh model list” to re-read from DSH. - By default, “Let DSH selector follow” is enabled: after JEV routes a task to a provider/model, the Host’s
agentDefaultModelis rewritten to that provider/model, so the DSH model selector above displays the model actually in use. Disable this option to prevent the rewrite. - If both dropdowns are left empty, it enters “auto” mode: within the same provider, models are sorted by name—the decision tier selects a model with a judge-like identifier (e.g., kimi/k3/pro/max/reason), and the execution tier selects a fast model (flash/mini/lite/fast). The panel prints the current provider/model pair in use, e.g.,
Currently using: titigate/kimi-k3.1-pro. - Direct mode: The plugin calls its OpenAI-compatible gateway endpoint directly, requiring API keys for both JEV, Kimi, and DeepSeek.
Traffic Dashboard¶
A real-time per-gateway traffic dashboard is provided at the top of the panel:
- Metrics:
- Request count: Each real HTTP call (including probes and failures) counts as 1.
- Tokens: The gateway’s own usage; failed calls count as 0.
- Success rate / Latency: Accumulated over the selected time window; latency is averaged.
- Chart: Grouped by gateway; 24 hours shown as hourly bars, 7 days as daily bars; hover for exact values.
- Three gateways: JEV classification gateway (
/systemone), Kimi decision gateway, and DSF execution gateway. Refreshes every 10 seconds. - Ledger: The log file is located at
<DSH_HOME>/jev-harness-usage.json(default~/.dsh/jev-harness-usage.json), accumulating by hour and day. It persists across restarts and stores only counts, tokens, and latency—no prompt text is saved.
Skill Routing (Optional)¶
When “Auto-mount skills” is enabled, harness_call additionally asks JEV before dispatch whether a relevant skill is available, selecting one from 39 skills in mattpocock/skills (or returning none). The content of the selected skill is prepended as a ## Skill: <name> block, guiding the routing model to follow the skill rather than improvising.
Available operations:
harness_call(skill="off"): Skip skill mounting.harness_call(skill="engineering/tdd"): Explicitly specify a skill.harness_skill(action="list"): List all available skills.harness_skill(action="pick", task="…"): Select only without executing.harness_skill(action="read", id="engineering/tdd"): Read a skill’s body.harness_skill(action="refresh"): Sync the upstream repository and update the skill catalog.
The catalog is packaged within the plugin by default, so no network access is needed for routing. Refreshing initiates one request (GitHub source archive) and writes to ~/.dsh/jev-harness-skills/catalog.json, caching all skill bodies. If the JEV gateway is unreachable, it falls back to local keyword matching.
Utility Functions¶
harness_call(tier=auto): Entry function. Defaults totier=auto; JEV classifies the tier and routes to Kimi (decision tier) or DeepSeek Flash (execution tier).harness_classify(task): Retrieves only JEV’s tier classification result without executing the task—useful for diagnostics.harness_review(): Second-model quality gate: decision drafts are reviewed by Flash; execution drafts are reviewed by Kimi.harness_skill(...): CRUD and sync operations for the skill catalog.harness_probe(): Probes gateway connectivity and discovers real model IDs via the OpenAI-compatibleGET /modelsendpoint.
Fallback & Degradation¶
- If the JEV gateway is unavailable, the plugin falls back to a local keyword heuristic strategy, with ties favoring the decision tier.
- “Traffic does not go through the DSH gateway” is a current convention, not a mechanical guarantee. The DSH provider layer ultimately determines which endpoint a request actually hits. See docs/ARCHITECTURE.md for the relevant boundary and convention guarantee table.
Installation & Activation¶
Run in the DSH terminal:
dsh plugin add @zrxparley/dsh-jev-harness
Or go to DSH Settings → Plugins → Add Plugin, and search for @zrxparley/dsh-jev-harness.
After installation, find the “JEV Tiered Scheduling” panel in the left sidebar, turn on the master switch, configure the JEV classification gateway’s base URL and API key, then refresh the model list and select the execution tier’s provider/model (or use the default auto mode) to get started.
Typical Usage¶
- Enable the plugin and turn on the master switch. Enter instructions normally in the conversation—the plugin routes them automatically by tier.
- Use
harness_classifyto diagnose whether a given instruction will be routed to the decision tier or the execution tier. - When a structured workflow is needed, call
harness_call(skill="engineering/tdd")to mount a skill template. - Monitor request volume, success rate, and latency across gateways via the traffic dashboard in the panel.
- To switch providers, refresh the model list, then manually select from the dropdowns or rely on auto mode.
Use Cases & Cautions¶
- Ideal for agent conversations that need a unified entry point handling both decision and execution tasks, reducing the cost of manually switching models.
- The plugin runs with the permissions of the current DSH process. Review the source code and license before installing.
- In DSH gateway mode, the plugin does not hold Kimi/DeepSeek credentials and only makes routing decisions. In direct mode, you must manage all three API keys yourself.
- “Traffic does not go through the DSH gateway” is a current convention. If a strong guarantee is needed, track the progress of the related issue.
Summary¶
JEV Tiered Scheduling integrates JEV classification, Kimi decision-making, and DeepSeek Flash execution into the DSH plugin ecosystem through a single master switch, achieving tiered scheduling by convention rather than complex configuration. It is suited for developers who want a unified routing strategy at the conversation level while keeping the DSH plugin ecosystem simple.
Catalog page: https://www.skillhub.cn/plugins/zrxparley/dsh-jev-harness
GitHub: https://github.com/zrxparley/dsh-jev-harness