dsh-computer-use-compat: Making Legacy Hosts Compatible with the Official Computer Use Plugin

Introduction

In the DeepSeek Harness (DSH) ecosystem, the plugin system follows the “everything is a plugin” philosophy. The official Computer Use plugin (@deepseek-ai/dsh-computer-use@0.1.6-alpha.1 and @deepseek-ai/dsh-experimental-computer-use-cua-driver-native@0.1.6-alpha.1) retrieves the section order table via systemPrompt.section() during the apply phase of the native provider. When the host core version is below 0.1.6-alpha, the SECTION_ORDERS table in dsh-system-prompt is missing the TOOL_COMPUTER_USE key, causing getSectionOrder to return undefined, which in turn triggers a TypeError, rolls back the entire provider, and prevents tool registration.

What Is This

dsh-computer-use-compat is a compatibility patch plugin for DSH core 0.1.5-rc.2 and earlier versions, maintained by jipika and categorized as a workflow plugin. Its core value is backfilling the missing keys in the system prompt section order table so that the official Computer Use plugin can load properly on older hosts.

Core Functionality

The plugin does one thing: it monkey-patches the ctx.systemPrompt.getSectionOrder method to return the officially defined values for missing keys.

Key Value
TOOL_COMPUTER_USE 3000
MCP_SERVERS 3100

All other keys are passed through as-is. The plugin uses Symbol.for('dsh-computer-use-compat.patched') to prevent duplicate patching, and restores the original method on uninstall via ctx.effect. This approach does not modify application artifacts or touch the DSH core itself—removing the plugin fully reverts the change.

Installation & Activation

Install via npm (recommended):

dsh plugin --profile <profile> add dsh-computer-use-compat

Or install from GitHub source:

dsh plugin --profile <profile> add github:jipika/dsh-computer-use-compat

After installation, insert the following line into ~/.dsh/profiles/<profile>/cordis.patch.yml:

- insert:
    - id: dsh-computer-use-compat
      name: dsh-computer-use-compat

Ordering requirement: this line must appear before the computer-use / computer-use-native provider entry so that the patch takes effect before the provider’s apply phase. The plugin executes its patch after becoming ready in the inject = ['systemPrompt', 'tools'] stage.

The desktop profile is exclusively owned by Electron, and CLI subcommands will be rejected. If manual installation is needed, you can modify the profile’s package.json (add github:jipika/dsh-computer-use-compat to dependencies), run pnpm install, insert the same configuration line, and then restart the application.

Debugging

Enable debug mode:

DSH_CU_COMPAT_DEBUG=1

The plugin will print tool registration status once after 5 seconds of startup, probing schemas / sdkSchemas / view / names / list in sequence, and writing the results to the host log.

Use Cases & Notes

This plugin is suitable for scenarios where you need to use the official Computer Use plugin but your host core version is below 0.1.6-alpha. Known limitations include: the section order values are hardcoded official values (3000/3100) and must be updated in sync if the official values change; it relies on the internal API ctx.systemPrompt.getSectionOrder and the provider’s apply timing; it only resolves the “missing key in section order table” category of incompatibility. Starting from core 0.1.6-alpha, the official build already includes these keys, and this plugin will become a harmless pass-through.

The plugin runs with the current DSH process permissions. It is recommended to review the source code and license before installing.

Conclusion

dsh-computer-use-compat uses a simple patching mechanism to enable older hosts to load the official Computer Use plugin, reducing the cost of version upgrades. For more details, refer to the plugin directory page and the GitHub repository.

  • Plugin directory: https://www.skillhub.cn/plugins/jipika/dsh-computer-use-compat
  • GitHub: https://github.com/jipika/dsh-computer-use-compat
羽毛球分组比赛记分
小程序二维码

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

Xiaoye