Introduction

When developing and using DeepSeek Harness, manual intervention is often required after a task (conversation turn) ends to handle follow-up actions, such as opening the official website for a specific language. For users who frequently visit the official Genshin Impact site, manually selecting the correct language region is both tedious and error-prone. This plugin aims to solve this pain point. It automatically listens for task completion events and, based on the display language of the current Windows system, directly opens the corresponding Genshin Impact official website in the default browser.

What Is This

This is a DeepSeek Harness Web plugin developed by maintainer tianhanly. Essentially, it is a workflow plugin that triggers actions after task completion, automating the two steps of “detect system language” and “open the matching website,” thereby reducing manual operations.

Core Features

  • Trigger mechanism: Triggered after each task (conversation turn) completes successfully.
  • Language detection order: Detects the current language environment with the following priority:
    1. Windows display language
    2. Regional format
    3. Harness language preference settings
    4. Configured default language
  • Automatic redirect: Opens a new tab in the system default browser and redirects to the matching Genshin Impact official website.
  • Configurable items: Supports setting the cooldown duration (to prevent frequent browser pop-ups caused by concurrent tasks) and the default language via configuration files.

Installation and Enabling

Before use, make sure the environment meets the following requirements:
- DeepSeek Harness Web mode (dsh web)
- Node.js version ^22.19.0 || >=24.0.0

The installation and enabling steps are as follows:
1. Add the plugin to the web configuration file:

dsh plugin --profile web add "github:<your-username>/dsh-genshin-redirect"
  1. Add the entry "dsh-genshin-redirect" to the dsh.profile.bundles field in package.json.
  2. Restart the Web server:
dsh web

Typical Usage

If you need to adjust the plugin’s behavior (such as limiting the opening frequency or specifying a default language), modify the configuration file cordis.patch.yml. Add or modify the following configuration in the corresponding line:

- insert:
    - id: dsh-genshin-redirect
      name: dsh-genshin-redirect
      config:
        cooldownMs: 15000   # 两次打开浏览器之间的最小间隔(毫秒),0 表示无限制
        defaultLang: en     # 当未检测到支持的语言时使用的回退语言

Applicable Scenarios and Notes

  • Target users: Developers using DSH for automated workflow development who need to redirect to a language-specific official website after tasks end.
  • Process scope: In multi-session deployments, this plugin operates at the process level (globally), and task completion from any session triggers detection.
  • Browser behavior: The plugin only opens a new tab in the system default browser and does not cause the DSH page to navigate away from the current window.
  • Fallback mechanism: If the detected language has no corresponding official website, it will default to redirecting to the English official website.

Short Conclusion

This plugin provides automatic language environment adaptation through simple configuration, making it suitable for scenarios that frequently access the official Genshin Impact site in different languages. For more details, refer to its GitHub repository or the SkillHub directory.