Introduction¶
In the “Models” settings page of DeepSeek Harness, configured providers are listed in catalog order or registration order. When there are many providers, the default order often makes it inconvenient to quickly select frequently used models. Manually adjusting card order can significantly improve workflow efficiency, but DSH does not natively support drag-and-drop reordering of provider cards on the settings page, and the plugin ecosystem lacks this capability either.
As a DeepSeek Harness plugin, dsh-model-reorder adds drag-and-drop reordering of provider cards in the “Models” settings page and syncs the order to the model selector, so that the next time you restart, the menu groups by your custom order.
What It Is¶
dsh-model-reorder is a model inference plugin designed for DeepSeek Harness, maintained by Foru-hue. It injects drag-and-drop interactions into the model settings page, allowing users to freely rearrange provider cards. The order is persisted in the plugin configuration and subsequently affects the grouping logic of the model selector.
Core Features¶
- Drag handles: A ☰ drag handle appears on the left side of each configured provider card;
- Real-time preview and save: While dragging with the ☰ handle, the card shows a drag ghost and other cards shift in real time; release to save. Dragging out of the list or pressing Esc automatically rolls back;
- Keyboard operation: After focusing the ☰ handle, use ↑/↓ arrow keys to move cards;
- Persistence: The order is stored in the plugin’s own volatile field and is not lost after refreshing or restarting DSH;
- Menu sync: After reordering is complete, the plugin syncs the
llm-pi-airoute key order into the user configuration layer. The model selection menu and/modeldialog will group by your order on the next DSH restart (the pi-ai adapter does not rebuild routes at runtime due to key order changes); - Restore default: When a custom order exists, a “Restore Default Order” button appears at the bottom of the list;
- Status notification: After each successful sync, a message “The model grouping order will update to the current order on next restart” appears at the bottom of the models page and auto-dismisses after 10 seconds.
Installation & Activation¶
Method 1: Local Directory Install (Recommended)¶
- Clone the repository locally:
git clone https://github.com/Foru-hue/dsh-model-reorder.git
- Open DeepSeek Harness (DSH) and navigate to Settings → Built-in Plugins → Plugin List → Add Plugin;
- Select the cloned
dsh-model-reorderdirectory; - Restart DSH. The plugin will take effect.
Method 2: Git Dependency (Advanced)¶
Edit package.json in your DSH profile and add the dependency:
"dsh-model-reorder": "github:Foru-hue/dsh-model-reorder"
Then add the following line to cordis.patch.yml:
- insert:
- id: model-reorder
name: dsh-model-reorder
Restart DSH to load the plugin.
Typical Usage¶
- Open DSH Settings → Models;
- Hover your cursor over the ☰ handle on the left side of any provider card, then press and drag to the target position;
- Hovering over the upper half of a card inserts before it;
- Hovering over the lower half inserts after it; - Release the mouse to save the order. To restore the default order, click the “Restore Default Order” button at the bottom of the list.
Use Cases & Caveats¶
- Ideal for developers and teams who frequently switch between multiple providers and want commonly used models to appear first;
- The plugin runs with the current DSH process permissions. Before installing, it is recommended to review the repository source code and license (this project is MIT licensed);
- Known limitations:
- Visual reordering on the settings page takes effect immediately; the model selector grouping order updates only on the next DSH restart;
- In the model selector, DeepSeek Account / DeepSeek is always pinned to the top (built-in client rule);
- Family group positions for adapters such as CodeArts are determined by their adapter registration order and cannot be moved by this plugin;
- When the settings document is in read-only mode (read-only deployment), the controls are automatically disabled;
- Newly added providers default to the end of the list; one drag incorporates them into the sorted order.
Closing¶
dsh-model-reorder adds intuitive drag-and-drop reordering to the DeepSeek Harness model settings page, reducing the operation path when manually switching models. If you need a clearer, more personalized provider and model selection order, refer to the links below for more information:
- Plugin directory page: https://www.skillhub.cn/plugins/Foru-hue/dsh-model-reorder
- GitHub repository: https://github.com/Foru-hue/dsh-model-reorder