OhMyDSH: A Three-in-One DSH Client Plugin for Peak-Valley Dynamics, Prompt Candidates, and Input History

Introduction

When doing daily conversations in DSH, you often encounter a few types of repetitive configurations: switching models based on time slots requires a separate plugin, “suggestions for the next sentence” after a turn requires another one, and wanting to use the last sent message in an empty input box requires a third. Each package has its own cordis.patch.yml, its own settings page, and the bundle entries in the profile increase. oh-my-dsh consolidates the previous three community plugins (dsh-peak-valley-model, dsh-prompt-candidates, dsh-prompt-history) into a single installation and a single configuration block; the three capabilities still have separate switches in settings and remain independent. Below is an introduction to what it is, how to install it, how to configure it, and points to note when migrating from the old plugins.

What is it

OhMyDSH (repository liasece/oh-my-dsh) is released by maintainer liasece and is classified as a Client plugin: Peak-Valley Dynamics, Prompt Candidates, and Input History each handle one thing, and the interface and switch locations follow the conventions before the merge. Runtime requirements are DSH >=0.2.2-rc.1 <0.3.0, Node >=22; the current package version is 0.1.0, license MIT. The three functions only take effect in the client slots of DSH Desktop / Web; there is no corresponding interface in TUI.

Feature What it does Interface location Switch
Peak-Valley Dynamics In configured time slots, switch the session’s model slot to the time-slot route; use another route outside the slot (including weekends) Switch on the right side of the input box; Settings → Peak-Valley Dynamics Input box switch (per session) + “Feature Switch” at the top of the settings page
Prompt Candidates Generate several candidates after a turn ends using the current model, click one to fill into the input box Candidate bar above the input box; Settings → Prompt Candidates “Feature Switch” at the top of the settings page
Input History When draft is empty, press ↑ to flip back through own sent messages one by one, ↓ to go forward; Esc to dismiss, Enter to send No visible interface (pure keyboard); Settings → Input History “Feature Switch” at the top of the settings page

Core Features

Peak-Valley Dynamics

Within time slots defined in peakWindows, the plugin aligns to peak-time routes by rewriting the session model slot (sessionController.selectModel); outside the slot (including weekends) it uses offPeakRoute. The switch is maintained per session; new sessions are disabled by default, requiring the user to open the switch on the right side of the input box; lastToggle determines if new sessions inherit the last manual on/off. When the user manually switches the model in the current session, that session’s peak-valley switch will automatically turn off. Alignment happens on plugin start, every 15-second check, after each turn, or when the switch changes; it does not switch mid-turn, waiting for the current turn to end. Sub-agent sessions are not aligned.

Prompt Candidates

Only requests candidates from the current model (or optional provider/model override) when the session is stopped at an ended turn; deduplicates based on log length within the same session. Candidates are displayed above the input box; after clicking, they are written into the input box, not the session log.

Input History

Only takes over ↑/↓ when the draft is empty and the cursor is on the first/last line; in multi-line drafts, arrow keys are still used to move the cursor. The recalled content is the wire text of already sent messages in the session; those with file references appear as @[tag](dsh-file:...), images and attachments do not participate. History is isolated per session and read-only.

Installation and Enablement

The plugin is installed as a bundle into the current profile. Call plugin_manager in a DSH session:

{ "action": "install_bundle", "target": "/path/to/oh-my-dsh" }

Replace target with the absolute path of your local checkout. The repo is pure ESM, no build needed. If listed in the plugin marketplace, you can also install oh-my-dsh from there.

The newly installed bundle requires restarting DSH to load; after that, changing config or toggling features does not require a restart.

Installation and execution are based on the permissions of the current DSH process. It is recommended to read the repository source code and MIT license before installing to ensure the routing and candidate requests comply with your account and compliance requirements.

Configuration

Configuration is written in the profile’s cordis.patch.yml, with id as oh-my-dsh, and three sections peakValley, candidates, history each handling one item. Most fields that can be changed in the settings page are volatile, taking effect immediately.

- id: oh-my-dsh
  name: oh-my-dsh
  config:
    peakValley:
      enabled: true
      timeZone: Asia/Shanghai
      peakWindows:
        - { start: '09:00', end: '12:00', provider: deepseek-account, model: deepseek-flash }
        - { start: '14:00', end: '18:00', provider: deepseek-account, model: deepseek-flash }
      offPeakRoute: { provider: deepseek-account, model: deepseek-flash }
      sessions:
        <session-id>: true
      lastToggle: { on: false, at: 0 }
    candidates:
      enabled: true
      maxSuggestions: 2
      historyMessages: 12
    history:
      enabled: true
      limit: 100

The default peak and off-peak routes for peakValley are the same as offPeakRoute, so installing it equals no switching; you need to change the peak window in settings to another provider / model of yours. Common official registered names include desktop account deepseek-account and API Key route deepseek-official. maxSuggestions for candidates is 1–5, default 2; limit for history is 1–200, default 100. Static fields like timeZone, maxOutputTokens, timeoutMs require reloading the plugin after modification.

Typical Usage

  1. After installing the bundle and restarting DSH, configure peakWindows and offPeakRoute in Settings → Peak-Valley Dynamics, and open the switch on the right side of the input box in the sessions that need auto-routing.
  2. Keep the “Prompt Candidates” master switch on; after a turn ends, click the candidate above the input box to fill it in, then edit and send.
  3. When the input box is empty, press ↑ to review previously sent messages in this session, Esc to dismiss the preview, Enter to send the recalled content.

When migrating from the three old plugins: move the original peak-valley-model config under peakValley: (do not move the timeline from before 0.20); move candidate and history configs to candidates: and history: respectively; ensure lastToggle is migrated together, otherwise the peak-valley switch in new sessions will revert to default off. Delete old bundle dependencies, install oh-my-dsh, and restart DSH again.

Applicable Scenarios and Notes

Suitable for developers who already do daily conversations in DSH Desktop / Web, want to reduce the number of client bundles in the profile, and need per-function switches. Peak-Valley Dynamics is suitable for “fast model/account during working hours / another route for other times” needs based on time zone windows; Prompt Candidates is suitable for quickly getting the next sentence in multi-turn tasks; Input History is suitable for repetitive fine-tuning of similar prompts without copying the previous one manually.

Known limitations: Input history cannot restore the editing chip or paste images; Peak-Valley relies on the model directory, models not in the directory may not be selectable in the settings page; Candidates and History are read-only observers and will not send messages on behalf of the user. The DeepSeek Harness ecosystem follows the “everything is a plugin” philosophy. The community directory oh-my-dsh page on SkillHub and the GitHub repo are maintained by the community and have no official affiliation with DeepSeek / Huaxuan.

Conclusion

oh-my-dsh consolidates Peak-Valley Dynamics, Prompt Candidates, and Input History into one package and three settings pages, with each item independently toggleable, and allows smooth migration of configs from the old three plugins. For more information, visit the directory page https://www.skillhub.cn/plugins/liasece/oh-my-dsh and the source code https://github.com/liasece/oh-my-dsh.

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

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

Xiaoye