dsh-t3-model-picker: A Model Picker Ported from T3 Code

Introduction

The DeepSeek Harness Composer’s default model picker sits at priority 0. Plugins can register at a lower priority to take over that slot. dsh-t3-model-picker ports T3 Code’s ProviderModelPicker, providing features like provider rails, grouped search, and favorites.

Core Features

  • Provider Rail
    A 44px column on the left. Favorites are listed first, followed by tiles for each provider. Active providers have a primary color indicator.

  • Search
    Auto-focuses when opened. Uses hierarchical scoring (name, description, provider ID, provider name) for matching. Supports subsequence matching for queries longer than 3 characters. Results are grouped by provider.

  • Favorites
    Each row has a star. Stored in the browser under the key dsh.t3-model-picker.favorites.v1. The Favorites Rail is grouped by provider.

  • Jump Shortcuts
    Cmd/Ctrl+1 through 9 select the first 9 visible rows. The shortcut listener is only active when the card is open.

  • Toggle Shortcut
    Cmd/Ctrl+Shift+M opens the card when closed and closes it when open. The trigger shows the shortcut hint. The Shift key preserves the default Cmd/Ctrl+M binding.

  • Reasoning Effort
    The footer displays the reasoning effort levels supported by the provider. Hidden if the provider does not advertise that metadata.

Installation & Enablement

Install the plugin with:

dsh plugin --profile web add github:yusufameri/dsh-t3-model-picker

Or from the release tarball (no build step required):

dsh plugin --profile web add https://github.com/yusufameri/dsh-t3-model-picker/releases/latest/download/dsh-t3-model-picker.tgz

Once published to npm, the registry form is shorter:

dsh plugin --profile web add dsh-t3-model-picker

Installation merges a patch list into the config file and loads the client on next startup.

Typical Usage

  • Open the picker: Press Cmd/Ctrl+Shift+M.
  • Search: Type while open to search grouped by provider.
  • Favorite: Click the star. The Favorites Rail updates.
  • Quick jump: Press Cmd/Ctrl+1 to 9 while open to jump to the first 9 rows.

Technical Details and Limitations

  • Priority: The plugin registers at -1, lower than the default 0, so it overrides the default picker.
  • Data source: It reads the same session-scoped model directory (ctx.modelDirectories) as the /model command.
  • File structure:
  • index.js: Host side (empty).
  • client.js: Client side (React).
  • cordis.patch.yml: Patch for mounting.
  • Limitations:
  • Requires a session-scoped model directory. Subagent sessions don’t expose one, so the shortcut doesn’t work there.
  • Shortcuts only work when the card is open (except for the Cmd/Ctrl+Shift+M toggle).
  • The reasoning effort footer only shows for models where the provider advertises reasoning metadata.

Conclusion

This plugin implements T3 Code’s ProviderModelPicker. Licensed under MIT. The GitHub repository is at yusufameri/dsh-t3-model-picker.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye