dsh-persian-rtl:Automatic RTL Repair for Persian in DeepSeek Harness

When building multilingual agents in DeepSeek Harness (DSH), text direction and layout issues frequently arise in Persian (Farsi) scenarios. dsh-persian-rtl aims to resolve this by automatically handling text direction.

Positioning

dsh-persian-rtl is a plugin for DeepSeek Harness, maintained by ireza7. It provides automatic per-paragraph text direction correction, designed to address Persian (Farsi) RTL layout issues that are not fully supported by DSH natively.

Core Capabilities

The plugin implements the following features through CSS:

  • Automatic per-paragraph text direction: Using unicode-bidi: plaintext, each paragraph determines its direction based on the first character. Persian paragraphs render right-to-left, while English paragraphs remain left-to-right.
  • Coverage: Supports assistant responses, user messages and prompt bubbles, thinking/reasoning cells, tool call/result cells, and question boxes.
  • Intelligent mixed-language detection: When a Persian sentence starts with an English word or code (e.g., React 是一个库), the plugin dynamically analyzes the character composition and forces RTL base direction, supporting real-time streaming output.
  • Latin scripts remain intact: Code blocks (code), preformatted text (pre), keyboard keys (kbd), and links maintain their independent LTR direction without reordering issues.
  • Logical geometry fixes: Lists, blockquotes, and task checkboxes use inline-start, ensuring correct bullet and margin positions in Persian environments.

Installation and Activation

The plugin takes effect after installation without requiring a restart.

Web UI method:
Open Plugins in the sidebar, click install, and enter the specification:

github:ireza7/dsh-persian-rtl

Command line method:

dsh plugin --profile web add github:ireza7/dsh-persian-rtl

Notes

  • No settings or buttons: The plugin requires no additional configuration or interface buttons after installation.
  • Does not affect other areas: The plugin only adds CSS; the Composer, sidebar, and settings interface remain unchanged, without replacing any built-in renderers.
  • Real-time effect: Once configured, all affected areas (including streaming responses) immediately apply the RTL fixes.
羽毛球分组比赛记分
小程序二维码

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

Xiaoye