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

@autods/dsh

v0.1.3

Published

AutoDS plugin for DeepSeek Harness: transparent per-turn DeepSeek V4 model routing on the llm/stream waterfall (plan→deepseek-v4-pro, ui→deepseek-v4-flash, image/browser→deepseek-v4-flash-vision-exp).

Readme

@autods/dsh

AutoDS 的 DeepSeek Harness 插件:按任务类型自动切换 DeepSeek V4 系列模型,模型选择对外无感。

核心价值

  • 自适应路由:每轮请求自动路由 —— 规划/核心算法 → deepseek-v4-pro,UI/实现细节 → deepseek-flash,图片/浏览器确认 → deepseek-flash。
  • 对外无感:只暴露一个虚拟模型 autods,内部切换对调用方透明,无需改 Agent 配置。
  • 成本优化:DeepSeek-V4-Pro 价格约为 deepseek-flash 的 4 倍;路由让 Pro 只用于高难规划,UI/实现走 flash(约 1/4 价格)。
  • 原生多模态:deepseek-flash(DeepSeek-V4.1-Flash)原生支持图像理解,图片/浏览器任务直接路由到它,无需单独的视觉模型。
  • 原生接缝:挂在 DSH 的 llm/stream 瀑布上,不侵入适配器;对 agent-loop 的 deep-frozen 请求安全(只读改写、重新派发)。

路由规则

| 信号 | 路由到 | |---|---| | 规划 / 架构 / 核心算法设计(plan、architecture、设计、架构、方案…) | deepseek-v4-pro | | UI / 前端 / 实现细节(react、css、组件、实现、编码…) | deepseek-flash | | 图片输入 / 浏览器·网页工具(screenshot、playwright、browser…) | deepseek-flash | | 显式指定具体模型 | 直通,不路由 | | 未命中 | 默认模型(deepseek-v4-pro) |

关键词规则可在 config.router.rules 自定义(中英文均可)。

模型粘性(成本优化)

默认开启「模型粘性/滞回」,避免同会话频繁切换模型导致的前缀缓存未命中(DeepSeek 缓存命中价约为未命中的 1/30):

  • 同一模型连续多轮 → 保持当前模型,缓存持续命中。
  • 弱信号(关键词命中数低于阈值)→ 保持当前模型,不切换。
  • 强信号(关键词命中 ≥ minSwitchScore)→ 才切换到目标模型。
  • 显式模型 / 图片 / 浏览器工具 → 始终切换(硬信号)。

配置(router.stickiness):

  • enabled:是否启用(默认 true)
  • minSwitchScore:plan/ui 切换所需最低关键词命中数(默认 2)

安装(三件套)

  1. 安装包(DSH profile 的 pnpm 转发)

    dsh plugin --profile <profile> add @autods/dsh
  2. 挂载插件:profile 的 cordis.patch.yml 追加

    - insert:
        - id: autods-dsh
          name: '@autods/dsh'
          config:
            provider: deepseek-official
  3. 设置默认模型:settings.yaml

    agent-default-model:
      provider: deepseek-official
      model: autods
      reasoningEffort: high

重启 DSH 生效。

配置

cordis.patch.yml 的 config 可调:

  • provider:要路由的 provider 路由(默认 deepseek-official)
  • router.defaultModel:未命中时的默认模型(默认 deepseek-v4-pro)
  • router.rules:自定义 plan / ui / vision 关键词
  • router.stickiness:模型粘性/滞回(enabled、minSwitchScore)

兼容性

面向 DeepSeek Harness 0.1.x(开发者预览期,上游可能有破坏性变更,请关注本插件版本更新)。

依赖:@autods/router;peer 依赖:@deepseek-ai/cordis、@deepseek-ai/dsh-llm。

相关

  • 独立网关版(Cursor / Claude Code 接入):@autods/gateway
  • 路由核心(无 I/O,可单测):@autods/router