dsh-opencode-go-model-list: Fix opencode-go Model List Issue on DeepSeek Harness

Preface

The core design philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” When using the built-in opencode-go provider routing, developers often encounter the issue of an outdated model list: built-in snapshots usually lag behind the models actually provided by upstream sources. This makes it impossible to use the latest models, and manually adding or overriding the model list through configuration files incurs configuration overhead and may even break the existing routing configuration. The dsh-opencode-go-model-list plugin aims to solve this pain point by directly contributing models to the built-in catalog, enabling synchronized updates to the model list.

Plugin Overview

  • Name: dsh-opencode-go-model-list
  • Description: Fixes the opencode-go model list issue in DSH
  • Maintainer: xiaobbl
  • Category: Model Inference
  • License: MIT

Core Features

This plugin mainly provides the following features:
1. Routing List Expansion: Extends the opencode-go provider routing to include the latest model list.
2. Built-in Catalog Contribution: Contributes models to the built-in catalog without manually editing settings.yaml.
3. Caching and Offline Support: Supports background cache refresh and access in offline environments.

Installation and Enablement

Installing this plugin requires satisfying environment dependencies. After installation, DSH must be restarted for the plugin to take effect.

Option 1: Use the dsh plugin command (requires pnpm)

dsh plugin --profile web add .

This command links the plugin into the dependencies of the current profile and automatically registers the bundle.

Option 2: Use the PowerShell script (requires PowerShell)

powershell -ExecutionPolicy Bypass -File .\install.ps1

This script copies the plugin to $DSH_HOME/profiles/<profile>/node_modules/ and registers it in dsh.profile.bundles.

Notes

  1. Restart Required: DSH must be restarted after installation for the plugin to take effect.
  2. Environment Dependencies:
    • Option 1 requires pnpm to be installed and configured in the system PATH.
    • Option 2 requires PowerShell.
  3. License: The plugin is licensed under the MIT License.

Summary

By directly contributing models to the DSH built-in catalog, this plugin resolves the outdated model list issue in opencode-go routing and avoids cumbersome manual configuration. For users who need to use the latest models, this is a practical tool.

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

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

Xiaoye