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

@zim9729/dsh-subagent-model-picker

v0.2.3

Published

Per-conversation subagent model selection for DeepSeek Harness Desktop.

Readme

dsh-subagent-model-picker

DeepSeek Harness Desktop 的会话级子 agent 模型选择插件。

English Documentation

功能

  • 在对话输入区添加"子 agent 模型"选择器。
  • 列出 llm-pi-ai 设置中所有已配置的 provider/model 组合。
  • 默认选项"跟随主 agent"实时镜像主 agent 当前使用的模型。
  • 将所选 provider/model 应用于 subagentsubagent_fork 及 workflow 子 agent。
  • 当子会话被寻址时,覆盖值保留在根会话上。
  • 重启后从 DSH home 存储目录恢复覆盖值。
  • 提供 subagent_model_ctl 模型工具,支持 getsetclear 操作。
  • 使用同源 loopback API,包含会话、模型、方法和请求大小校验。

安装

命令行

dsh plugin --profile desktop add @zim9729/[email protected]

DSH Web

打开 DSH Web GUI(如 http://127.0.0.1:43120),进入 设置 → 插件,搜索 dsh-subagent-model-picker,点击 安装。Web 插件管理器会自动从 npm 解析包并添加到当前 profile。

安装后(无论哪种方式),按提示重启 DSH。包已声明 dsh.bundle.patchdsh.client,Host 和浏览器入口自动挂载。不要手动向 profile 的 cordis.patch.yml 添加重复行。

工作原理

| 选择 | 子 agent 模型 | |---|---| | 跟随主 agent(默认) | 镜像主 agent 当前使用的 provider/model | | 指定 provider/model | 当前会话所有子 agent 使用所选组合 |

主 agent 的模型始终由 GUI 主模型选择器控制,不受此插件影响。

存储

覆盖值存储在:

<DSH_HOME>/storages/subagent-model-overrides.json

文件为版本化 JSON 对象,以根会话 ID 为键。无效或过期记录会被忽略,对应会话销毁时自动清理。

兼容性

目标 DSH 0.1.1-rc.2 服务契约,Node.js 20+。包使用 DSH peer dependencies,不捆绑 Host 运行时。

开发

npm install
npm run check
npm pack

npm run check 构建可分发的 JavaScript 文件、运行全部测试、执行 npm dry-run 打包检查。

发布

  1. 将仓库推送到 GitHub。
  2. 从干净的 tag commit 执行 npm publish --access public
  3. 向 DSH 插件中心提交 npm 包/仓库地址。

插件中心目录与 npm 发布是两个独立操作。

安全

本地 API 仅接受 loopback 同源浏览器请求。模型凭据永远不会被此插件读取或返回。