Skip to content
dsh.fish
Bundle

@jxiansen/dsh-model-switcher

DSH Model Switcher — searchable palette that overwrites the composer model seat (Cmd+K).

Source
jxiansen
License
MIT
Updated
Updated 4 hours ago

Readme

# dsh-model-switcher

Searchable model switcher palette for DeepSeek Harness composer.

- `Cmd+K` / `/` to open, searchable by name/id/description
- Provider rail, per-row capability/context badges
- Memory-only icon cache (80 LRU) + official CDN (`@lobehub/icons-static-svg`), no localStorage trace

## Install

```bash
dsh plugin --profile web add "github:jxiansen/dsh-model-switcher#main"
# restart dsh --profile web
```

## Develop

```bash
pnpm install
pnpm build        # bundle src/client -> lib/client.js (Harness web factory)
pnpm test         # node:test suites (utils, filter, built-bundle smoke)
pnpm lint         # eslint
pnpm check        # build + test + lint
npx dsh-plugin-doctor check .   # full check incl. isolated Web startup (needs dsh)
```

`src/client` is the ESM source, `lib/client.js` is the committed build
artifact that DSH loads (do not edit by hand). Regenerate the icon index
with `node scripts/build-icon-toc.mjs`, then rebuild.

Install

dsh plugin --profile web add github:jxiansen/dsh-model-switcher

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source