When developing role-playing (RP) features for the web side of DeepSeek Harness (DSH), user input often mixes three components: dialogue, actions, and inner thoughts. Plain text input can cause AI to misidentify these components, such as making NPCs hear unspoken inner thoughts, or misinterpreting actions as dialogue. TriComposer (dsh-rp-composer) solves this issue through structured input.
dsh-rp-composer is an input enhancement plugin for RP on the DSH web side. It provides three fill-in fields (dialogue, action, and inner thoughts), allowing users to combine them freely; empty fields are automatically omitted. The plugin automatically assembles input using an agreed-upon template, remains compatible with the RP input parsing protocol, and eliminates AI misidentification of player speech or behavior from the source.
Core Features¶
- Three fill-in fields: Provides independent input boxes for dialogue, action, and inner thoughts, supports arbitrary combinations, and automatically omits empty fields.
- Template assembly: Automatically annotates each component with Chinese labels and maintains compatibility with the RP input parsing protocol.
- Dual views: Brief mode uses a horizontal single-line layout for quick short phrases; Detailed mode uses a vertical multiline layout for long paragraph input and supports sending with Ctrl+Enter.
- Collapsible panel: Collapses into a title bar, with UI state (view/collapsed) persisted in the browser.
- Non-intrusive: Mounts to the official
conversation.input.dockslot, does not replace the default input box, and does not affect other plugins. - Standard pipeline: The assembled result follows the standard “write draft + submit” path, matching manual input behavior.
Installation and Enablement¶
- Run the installation command:
dsh plugin --profile web add /path/to/dsh-rp-composer
- Restart
dsh webafter installation. - Enter any conversation; a panel will appear above the input box.
Typical Usage¶
- Brief mode: Input boxes are arranged horizontally, suitable for entering short phrases quickly.
- Detailed mode: Input boxes are arranged vertically, suitable for long paragraphs, and support sending with Ctrl+Enter.
- Empty fields omitted: Unneeded components (such as action or inner thoughts) can be left empty and will be automatically omitted by the plugin.
Applicable Scenarios and Notes¶
- This is a pure client-side plugin, loaded in the browser via the
dsh.clientdeclaration. - The plugin does not replace the default input box and is compatible with other plugins (such as Agent RP and Portable Tavern).
- Review the source code and license (MIT) before installation.
dsh-rp-composer reduces the risk of AI misidentification in RP scenarios through structured input, making it suitable for developers who need precise control over input formatting. For more details, refer to the plugin directory or the GitHub repository.