npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-model-controller

v0.1.0-rc.1

Published

Semantic model routing plugin for DeepSeek Harness

Readme

dsh-model-controller

中文 | English

把本插件安装进 DSH profile 后,每个用户 turn 会自动选择一次模型:先按关键词做正则匹配,未命中再走语义分类。

当前版本要求 DeepSeek Harness 0.1.1-rc.2 或兼容版本。

默认路由

| 场景 | 模型 | Reasoning | | ---------------------------------- | ------------------- | --------- | | 复杂结构(v4pm、重构、设计) | deepseek-v4-pro | max | | Review(review) | deepseek-v4-pro | high | | 小脚本(v4fm) | deepseek-v4-flash | max | | 小方法(v4fh) | deepseek-v4-flash | high | | 处于 Plan Mode | deepseek-v4-pro | max | | 语义分类器(未命中时) | deepseek-v4-flash | off |

未命中时保留 Agent 的原始模型。选定路由在整个 turn 内有效。

设置开关

打开 设置 → 插件 → 插件配置。保存后从下一个用户 turn 起生效。

  • 全局匹配模式 — 混合模式(先正则,再语义)、仅 Semantic、仅 Regex。
  • Route 规则 — 增删改排序路由;可恢复内置默认表。
  • Semantic 分类器 — 仅在混合 / 仅 Semantic 需要分类时使用。
  • Plan Mode — 处于 Plan Mode 时强制使用专用 Pro/max 模型。
  • 路由元数据 — 在 reasoning 开头显示 provider、模型、推理强度和 Route id。

安装

dsh plugin --profile web add dsh-model-controller@next
dsh web

从本仓库安装时先构建,再安装当前目录:

pnpm install
pnpm run build
dsh plugin --profile web add .

卸载:dsh plugin --profile web remove dsh-model-controller。