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-preset

v0.2.0

Published

DeepSeek Harness plugin with two default model-and-reasoning shortcuts above the composer and optional Settings customization.

Readme

dsh-model-preset

dsh-model-preset 默认会在 DSH 输入框卡片上方的整行区域放置两个平铺快捷按钮,Settings 中可以增加第三个按钮。每个按钮对应一组完整的「provider + model + reasoningEffort」,点击后直接切换当前会话下一次请求使用的模型组合。

不是 Agent preset,不会改变 Code Mode、Creator Mode、工具、提示词、权限、人格或 Agent 组合方式。

安装

在 DSH Web profile 中执行:

dsh plugin --profile <profile> add dsh-model-preset

插件会同时提供 Host 端和 Web 客户端制品。安装后启动或重启对应的 Web Host,再打开 Settings → Plugins → 模型预设 修改按钮。

配置

将插件加入 Web profile 并加载 cordis.patch.yml,或把其中的配置行复制到自己的 composition。下面是 composition 默认值:

- id: dsh-model-preset
  name: 'dsh-model-preset'
  config:
    presets:
      - label: 快速
        color: '#2F80ED'
        provider: deepseek-official
        model: deepseek-v4-flash
        reasoningEffort: high
      - label: 深度
        color: '#9B51E0'
        provider: deepseek-official
        model: deepseek-v4-pro
        reasoningEffort: high

presets 支持 0 到 3 项。labelcolorprovidermodel 必填;color 必须是六位 #RRGGBB。省略 reasoningEffort 表示使用供应商或模型默认值;填写时使用该模型目录公布的 effort id。

Settings 可视化配置

插件加载后,打开 Settings → Plugins → 模型预设。这里可以新增、删除按钮并修改全部字段,也可以直接使用颜色选择器,最多支持三个按钮。点击保存后当前页面立即更新,并将配置持久化到 $DSH_HOME/model-preset.json,重启后仍然保留。用户配置优先于 composition 默认值;删除该文件即可恢复 patch 默认值。

行为

  • 按配置顺序显示按钮,按钮文案和颜色由配置决定。
  • 当前按钮状态按生效后的完整模型组合计算,解析后的思考等级也必须匹配。
  • 点击复用内置模型选择器使用的当前会话模型目录。
  • 切换只影响当前会话下一次模型请求,不改写正在执行的请求。
  • addressed subagent 会话不显示这些按钮。
  • Host 拒绝切换时保留旧选择,并显示简短失败提示。
  • Host 通过同源 GETPOST /dsh-model-preset/config 接口提供配置读写。

Model Experience

插件只改变输入框上的用户界面,不向模型新增提示词、工具、事件或持久化数据。模型和思考等级仍通过 DSH 现有模型选择链路记录和生效。

已知限制与后续工作

  • 插件不会提前验证配置里的模型是否仍在目录中;模型或 effort id 过期时,点击按钮会收到 Host 拒绝。
  • 当前 Web Host 必须提供模型选择服务以及 conversation.input.docksettings.plugins.tab 插槽;插件只支持 Web。