DeepSeek Harness 插件

dsh-auto-router

Configurable Auto model routing tier for DeepSeek Harness(英文原文)

跳到安装方式

来源信息

GitHub 仓库
ChaoYuZhang001/dsh-auto-router
最近更新
2026年8月20日
分类
模型与服务商
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/ChaoYuZhang001/dsh-auto-router
插件名:dsh-auto-router
作者:ChaoYuZhang001

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

@chaoyuzhang/dsh-auto-router

A configurable Auto model-routing tier for DeepSeek Harness. It registers a synthetic provider and delegates each request to a model on an existing provider route.

What it adds

The model picker receives an Auto Router provider with six choices:

  • Auto · 智能路由: classify each request
  • Auto · 快速: force light
  • Auto · 均衡: force medium
  • Auto · 深度: force heavy
  • Auto · 代码: force code
  • Auto · 视觉: force vision

The default classifier routes images to vision, code-like requests to code, longer/deeper tasks to heavy or medium, and short requests to light. With sticky: true, a session only upgrades its tier; this avoids oscillating between models during a task.

Installation

Install the exact package version into a DSH Desktop profile through the DSH Community Market or the managed plugin command. The package includes a dsh.bundle.patch entry and does not contain credentials.

The target provider must already exist. The default configuration expects a route named ciyuan2api with these model IDs:

gpt-5.6-luna, gpt-5.6-terra, gpt-5.6-sol,
kimi-k2.7-code, gemini-3.5-flash

Configuration

Override the inserted auto-router row in a profile patch:

- id: auto-router
  config:
    providerId: auto
    displayName: My Auto Router
    targetProvider: my-openai-gateway
    tiers:
      light: fast-model
      medium: balanced-model
      heavy: reasoning-model
      code: coding-model
      vision: vision-model
    sticky: true
    mediumThreshold: 300
    heavyThreshold: 1200
    contextWindow: 262144
    defaultMaxTokens: 32768

The router registers providerId as its synthetic route and delegates to targetProvider. The target route must advertise the configured model IDs.

The package does not store, read, or transmit API keys. Credentials belong to the target provider's normal DSH settings and credentials configuration.

Compatibility

  • Node.js >= 22.13.0
  • DSH rc.7-compatible LLM seam
  • @deepseek-ai/cordis ^4.0.1
  • @deepseek-ai/dsh-llm ^0.1.0-rc.7
  • @deepseek-ai/schemastery ^3.18.1

Security

This package inspects recent user text locally to choose a target model. The selected model receives the same request that the user intentionally sent through DSH. No telemetry, key handling, lifecycle scripts, shell commands, or external endpoints are included.

See [SECURITY.md](SECURITY.md).

License

MIT.