Introduction

DeepSeek Harness (DSH) uses a plugin-based architecture and enhances its functionality through extensions. The default Web UI renders all blocks in a left-to-right (LTR) direction by default. For languages written from right to left (RTL), such as Hebrew, this causes three main problems: the overall paragraph reading order is reversed, the text flow inside input boxes is incorrect, and the Cmd + ←/→ shortcut-key logic is inverted. The dsh-hebrew-rtl plugin fixes these issues.

Core Features

The plugin is implemented in handwritten JavaScript and requires no build step. It mainly provides the following capabilities:

  1. Block direction based on the dominant script: The plugin removes code-like identifiers (such as URLs, Commit SHAs, paths, etc.) from block text, then counts Hebrew words and Latin words in the remaining text.
    • If Hebrew words outnumber Latin words, the block applies direction: rtl and text-align: right.
    • If Latin words outnumber Hebrew words, the block applies direction: ltr and text-align: left.
    • If the counts are equal, RTL is applied by default (treating the text as quoted text).
  2. Bidi-safe input boxes: For the Composer (writing area) and ask_user_question (custom answer) fields, the plugin ensures that the input layer and measurement layer have consistent Bidi (bidirectional text) metrics, preventing incorrect height calculations or cursor displacement.
  3. RTL-aware line navigation: The shortcut logic for Cmd + ←/→ includes an additional check. When the line containing the cursor is recognized as RTL, the key logic is swapped so the cursor moves according to its visual position.

Installation and Activation

When using the DeepSeek Harness Web Profile, you can install the plugin with the following command:

dsh plugin --profile web add github:kfirsch/dsh-hebrew-rtl

After installation, restart dsh web and refresh the browser page.

If you need to pin to a specific version to avoid unexpected behavior caused by later updates, specify a Commit SHA:

dsh plugin --profile web add github:kfirsch/dsh-hebrew-rtl#<commit-sha>

Applicable Scenarios and Notes

  • Scope: Supports Hebrew only. The author deliberately excludes other scripts, such as Arabic and Syriac, to avoid unverified rendering issues.
  • Compatibility: It must run under the dsh web profile.
  • Unmodified areas: The plugin does not modify contenteditable regions or code blocks; code always remains displayed in LTR.
  • No build step: The lib/ directory contains handwritten source code, which is loaded directly in its raw form and does not require the allowBuilds permission.
  • Dependencies: Depends on @deepseek-ai/cordis.

Conclusion

For developers who need to interact with Hebrew text using DeepSeek Harness, this plugin provides the necessary rendering fixes. For more details and source code, visit:
* GitHub repository
* DSH ecosystem catalog